Skip to main content
Start messaging bots with a single command. Supports Telegram, Discord, and Slack with full capability options.

Quick Start

# Telegram
praisonai bot telegram --token $TELEGRAM_BOT_TOKEN

# Discord
praisonai bot discord --token $DISCORD_BOT_TOKEN

# Slack (requires both tokens)
praisonai bot slack --token $SLACK_BOT_TOKEN --app-token $SLACK_APP_TOKEN

Command Reference

praisonai bot <platform> [OPTIONS]

Platforms

PlatformRequired Tokens
telegram--token
discord--token
slack--token + --app-token

Capability Options

Enable agent capabilities via CLI flags:

Model & Agent

OptionDescription
--agent FILEAgent YAML configuration file
--model, -m MODELLLM model (e.g., gpt-4o, claude-sonnet-4-20250514, gemini/gemini-2.0-flash)
--thinking MODEThinking mode: off, minimal, low, medium, high

Browser

OptionDescription
--browserEnable browser control tool
--browser-profile NAMEBrowser profile name (default: default)
--browser-headlessRun browser in headless mode
OptionDescription
--webEnable web search with provider-specific tools
--web-provider PROVIDERSearch provider: duckduckgo, tavily, serper

Tools & Skills

OptionDescription
--tools TOOL...Enable additional tools by name (e.g., DuckDuckGoTool WikipediaTool)
--skills SKILL...Enable specific skills
--skills-dir DIRCustom skills directory path

Memory & Knowledge

OptionDescription
--memoryEnable persistent memory
--memory-provider PROVIDERMemory provider (default: default)
--knowledgeEnable knowledge/RAG
--knowledge-sources SOURCE...Knowledge sources to load
--session-id IDSession ID for conversation continuity
--user-id IDUser ID for memory isolation

Execution

OptionDescription
--sandboxEnable sandbox execution mode
--execEnable exec tool explicitly
--auto-approveAuto-approve all tool executions (skip confirmation prompts)

Audio (TTS/STT)

OptionDescription
--ttsEnable TTS tool for text-to-speech
--tts-voice VOICETTS voice: alloy, echo, fable, onyx, nova, shimmer
--tts-model MODELTTS model (default: openai/tts-1)
--auto-ttsAuto-convert all responses to speech
--sttEnable STT tool for speech-to-text
--stt-model MODELSTT model (default: openai/whisper-1)
Default Tools (Always Enabled):
  • execute_command - Run shell commands
  • search_web - Web search with auto-fallback providers
The --exec and --web flags add additional provider-specific tools on top of defaults.

Examples

Basic Bot

praisonai bot telegram --token $TELEGRAM_BOT_TOKEN

With Custom Agent

praisonai bot slack --token $SLACK_BOT_TOKEN --app-token $SLACK_APP_TOKEN --agent agents.yaml
agents.yaml:
name: support-bot
instructions: |
  You are a customer support assistant.
  Be helpful and concise.
llm: gpt-4o-mini
tools:
  - search_web

With Full Capabilities

praisonai bot telegram --token $TOKEN \
  --agent agents.yaml \
  --browser \
  --web \
  --memory \
  --model gpt-4o

With Specific Tools

praisonai bot discord --token $TOKEN \
  --tools DuckDuckGoTool WikipediaTool GitHubTool

With Knowledge Base

praisonai bot slack --token $SLACK_BOT_TOKEN --app-token $SLACK_APP_TOKEN \
  --knowledge \
  --memory

With Auto-Approve (Trusted Environment)

# Auto-approve all tool executions - useful for trusted environments
praisonai bot slack --token $SLACK_BOT_TOKEN --app-token $SLACK_APP_TOKEN \
  --auto-approve \
  --exec \
  --web
Use --auto-approve only in trusted environments. This skips all confirmation prompts for tool executions.

With TTS/STT (Voice)

# Enable TTS tool - agent can convert text to speech
praisonai bot telegram --token $TOKEN --tts

# Auto-convert all responses to speech
praisonai bot telegram --token $TOKEN --auto-tts --tts-voice nova

# Full voice capabilities
praisonai bot telegram --token $TOKEN --tts --stt --memory

Environment Variables

VariableDescription
TELEGRAM_BOT_TOKENTelegram bot token from @BotFather
DISCORD_BOT_TOKENDiscord bot token
SLACK_BOT_TOKENSlack Bot User OAuth Token (xoxb-...)
SLACK_APP_TOKENSlack App-Level Token (xapp-...)
OPENAI_API_KEYOpenAI API key for LLM

Agent YAML Schema

name: my-bot
instructions: |
  You are a helpful assistant.
  Be concise and friendly.
llm: gpt-4o-mini
tools:
  - search_web
  - DuckDuckGoTool
memory: true
knowledge:
  - ./docs/