Your agent file

Reuse your instructions

Point the bot at a YAML file instead of the built-in assistant.

The name and instructions match what you would pass to Agent in Python.

Example

name: support-bot
instructions: |
  You are a customer support assistant.
  Be helpful and concise.
llm: gpt-4o-mini

Start with that file

The –agent flag loads the file before the bot listens for messages.

Example

praisonai bot telegram --token $TELEGRAM_BOT_TOKEN --agent agents.yaml

Reference: documentation