Bot

A bot is an agent that listens in a chat app. Telegram, Slack, Discord, and WhatsApp are supported.

You already ran an agent in your terminal. Here the user sends a message in the chat and the reply comes back there.

Tokens and long-running processes stay on your machine. The University sandbox cannot start a bot.

Same helper, different surface

This is still one Agent. You are not learning a second product.

Press Try it Yourself if you want to see the class name again. Starting a Telegram bot needs a token and your own terminal.

Example

from praisonai import Agent

agent = Agent(instructions="You are a helpful assistant.")
print(type(agent).__name__)

Try it Yourself

Example explained

  • Agent — The same class you used in Agents. The bot command wraps it.

Next

Quiz · Reference