The nao WhatsApp bot brings your analytics agent directly into WhatsApp, allowing your team to ask questions and get insights without leaving their workspace.Documentation Index
Fetch the complete documentation index at: https://docs.getnao.io/llms.txt
Use this file to discover all available pages before exploring further.

- Responds to messages in WhatsApp conversations and group chats
- Processes questions using the same agent as the web chat interface
- Returns answers with SQL queries, data tables, and visualizations
- Maintains conversation context within threads
The WhatsApp bot uses the same agent context, rules, and capabilities as your
web chat interface. Any improvements to your agent automatically benefit
WhatsApp users.
Setup
Step 1: Create a Meta App
- Go to developers.facebook.com/apps
- Click βCreate Appβ
- Fill in your app name and contact email
- Select βWhatsAppβ as the use case
- Link a business portfolio to the app
- Click βReview and Createβ
Step 2: Open the WhatsApp Integration in nao
- In nao, click on your profile β βProjectβ β βWhatsAppβ
- Keep this page open β you will paste your credentials here in the next steps
Step 3: Get App Credentials
- From your app dashboard, click βPersonalize WhatsAppβ
- Go to βAPI Configurationβ
- Click βGenerate access tokenβ β copy it and paste it as Access Token in nao
- Copy the Phone Number ID and paste it in nao
The default access token expires in 24 hours. For production, generate a
permanent System User Token via Meta Business Settings.
- Go to App Settings β βGeneralβ
- Copy the Secret Key and paste it as App Secret in nao
- In nao, fill in a Verify Token of your choice, then click βSaveβ
Step 4: Configure the Webhook
- Go back to βPersonalize WhatsAppβ β βConfigurationβ
- Paste the Webhook URL and Verify Token from nao, then click βVerify and Saveβ
- Subscribe to the
messageswebhook field
Step 5: Link WhatsApp accounts to project users
Before a user can message the bot, their WhatsApp identity must be mapped to a nao project user. nao uses a per-user linking code for this. Admin side- In nao, go to Settings -> Project -> WhatsApp -> Users.
- For any project user, click Generate linking code. Each code is single-use and scoped to that user.
- Share the code with the user through a secure channel.
- Open WhatsApp and message the botβs phone number.
- Send
/login <linking_code>using the code their admin generated. - The bot confirms that their WhatsApp account is now linked to the matching nao project user.
Persistent memory and Redis
WhatsApp conversations share the same user memory as the web chat: preferences, definitions, and notes the user has asked nao to remember are preserved across WhatsApp sessions and across channels. On self-hosted deployments, enabling Redis improves reliability under load and is recommended when you expect several WhatsApp users in parallel. See the deployment guide for Redis configuration.Usage
Ask Questions Message the bot directly:- Process your question using the same agent as the web interface
- Generate SQL queries based on your context
- Execute queries against your connected databases
- Return results in a formatted WhatsApp message
- Send you the link to the full conversation to open it in the browser UI
Admin Setup
Configure authentication, models, and messaging integrations
Chat Overview
Learn how the main chat interface works