Skip to main content
Connects to a self-hosted or hosted MeepaChat instance via the Bot Gateway WebSocket.

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:
Then reference it in the config:

Behavior

  • Connects to /api/bot-gateway via WebSocket with Authorization: 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

Self-Hosted URL Examples

Self-Signed Certificates

For instances with a private CA:
Or disable TLS verification (not recommended for production):