
- 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 - Open WhatsApp and send
/login <linking_code>to your bot’s phone number — you can find your Linking Code in the project settings page
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
Chat Overview
Learn about the web chat interface
Self-Hosting Guide
Deploy nao with Docker or on your own Cloud Run instance