Skip to main content
Describe your agent, gateway, and channel platforms in a single YAML file — no Python required.
The user defines a bot.yaml; the gateway loads it and connects the agent to every configured channel.

How It Works

Config Structure

Quick Start

1

Install

2

Set credentials

3

Create bot.yaml

4

Start the gateway with your YAML

The gateway registers the agent and starts all configured channel bots automatically.

Config Options Reference

agent section

gateway section

platforms section

Each key under platforms is a platform name. Use ${VAR_NAME} for environment variable interpolation. Supported platforms: telegram, discord, slack, whatsapp, and any platform registered via entry points.

Environment Variable Interpolation

Values in the form ${VAR_NAME} are resolved from the current environment at startup:
Tokens stored in ~/.praisonai/.env (written by praisonai-bot onboard) are loaded automatically before interpolation.

When to Pick YAML vs Python


Common Patterns

Multi-platform setup

Custom port from environment

Or set the GATEWAY_PORT environment variable — the CLI reads it automatically when --port is not passed.

Best Practices

Never hardcode tokens in YAML. Use environment variables and store them in ~/.praisonai/.env (written by praisonai-bot onboard) or your secrets manager.
This validates every channel token before starting, so a bad token fails fast instead of silently reconnecting.
Keep dev.yaml, staging.yaml, and prod.yaml — each referencing different environment variables. Pass the right one with --config.

Standalone Bot Gateway (Python)

Python API equivalent — register agents programmatically

Gateway CLI

Full list of gateway CLI commands

BotOS

Multi-platform bot orchestration

praisonai-bot SDK

Full bot-tier SDK reference