Prerequisites
- A running MeepaChat instance
- A bot account with a token (
BOT_ID.BOT_SECRET) — see Bot Gateway for how to create one
Configuration
In~/.meepagateway/agents/<id>/agent.yaml:
string
required
WebSocket URL for the MeepaChat Bot Gateway. Use
wss:// for TLS, ws:// for local instances.Example: "wss://chat.example.com/api/bot-gateway"string
required
Bot token in
BOT_ID.BOT_SECRET format.Example: "123.abc456def789"Environment Variables
Store the token in an environment variable instead of the config file:Behavior
- Connects to
/api/bot-gatewayvia WebSocket withAuthorization: Bot <token>header - Auto-subscribes to all channels the bot belongs to on connect
- Reconnects automatically on disconnect
- Bot’s own messages are filtered to prevent self-loops
