Skip to main content
Every PraisonAI bot comes with built-in chat commands. Just type a command in your chat — no setup required.

Available Commands

/status

Shows agent name, model, platform, session ID, and uptime.

/new

Resets the conversation session. Starts a fresh chat with the agent.

/help

Lists all available commands with descriptions.

Quick Start

1

Install PraisonAI

pip install praisonai
2

Set Your Bot Token

Set the token for your platform as an environment variable:
export TELEGRAM_BOT_TOKEN=your_token_here
3

Start the Bot

praisonai bot telegram --token $TELEGRAM_BOT_TOKEN
4

Send a Command

Open your bot chat and type:
/status
You’ll see the agent name, model, and uptime.

Platform Examples

praisonai bot telegram --token $TELEGRAM_BOT_TOKEN

Command Details

/status

Shows current bot information:
FieldDescription
AgentName of the AI agent
ModelLLM model being used
Platformtelegram, discord, or slack
SessionCurrent session ID (if set)
UptimeHow long the bot has been running

/new

Resets the conversation:
  • Clears all previous messages from the agent’s memory
  • Replies with a confirmation message
  • Next message starts a completely new conversation

/help

Lists all available commands with their descriptions. Useful for discovering what your bot can do.
Commands work the same way on all platforms — Telegram, Discord, and Slack. The / prefix is the default command prefix.

Python Usage

You can also start bots programmatically with the same built-in commands:
from praisonai.bots import TelegramBot
from praisonaiagents import Agent

agent = Agent(name="assistant", instructions="Be helpful")
bot = TelegramBot(token="YOUR_TOKEN", agent=agent)

import asyncio
asyncio.run(bot.start())
# Commands /status, /new, /help are available automatically
Bot tokens should never be hardcoded. Use environment variables or a .env file to store them securely.