Your agent file
Python before YAML
Match the YAML instructions in Try it Yourself first.
Example
from praisonai import Agent
agent = Agent(
name="support-bot",
instructions="You are a customer support assistant. Be helpful and concise.",
llm="gpt-4o-mini",
)
print(agent.start("How do I get started?"))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-miniStart 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.yamlReference: documentation