docs/guides/chat-app-ai-agent.md
nanobot can run as a self-hosted chatbot or AI agent in Telegram, Discord, Slack, WeChat, Email, Mattermost, and other chat apps. The gateway receives chat messages, runs the agent, and sends replies back to the same channel.
Use chat apps when the agent should live where users already communicate: private DMs, team channels, group chats, email threads, or bot workspaces.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot webui
Send Hello! in the WebUI before adding a channel. Then choose one platform guide for the bot/account prerequisites:
Use the guided channel setup:
If your installed release does not show Settings → Channels, use the full Chat Apps reference to configure the channel manually.
Check status from the terminal when you need a lower-level confirmation:
nanobot channels status
The nanobot webui command already runs the gateway. For a chat-only or server deployment, start it directly:
nanobot gateway
Use the full Chat Apps reference when you manage config.json directly or need platform-specific advanced settings.
allowFrom: ["*"] outside
an intentional sandbox.nanobot channels status does not show the channel, the config key or
optional dependency is likely missing./pairing approve <code> from an authorized chat.nanobot gateway --verbose and compare
platform credentials, event permissions, and allow lists.