Introduction
AI Settings control both Inbox assistance and automatic AI Bot behavior. The tab opens with a readiness strip and quick actions so admins can see setup status before going deeper into the Default API, Inbox behavior, AI Training Campaigns, knowledge sources, intent routing, setup, and test/monitor.
Configure Default API
| Field | Purpose |
|---|---|
| Provider | Selects the AI provider such as OpenAI, DeepSeek, or Gemini. |
| Model Name | Defines which provider model is used. |
| Chat Endpoint URL | Optional custom chat-completions endpoint. Leave blank for provider default when appropriate. |
| API Key | Provider credential. Manage carefully and restrict admin access. |
| Temperature | Controls response creativity. Lower values are more predictable. |
| Max Tokens | Limits response length. |
| Business Context | Describes tone, products, policies, and agent response style. |
AI Bot Setup Steps
| Step | What to configure |
|---|---|
| Overview | Default landing section showing API, selected campaign, knowledge, intent, governance, and test readiness. |
| Inbox AI | Enable or disable AI suggest reply for Inbox agents and configure Language Translation, Auto Default Language, and chatbot/auto-message translation behavior. Inbox suggestions use the Default API. |
| Readiness strip | Shows API status, default AI Training Campaign selection, connected knowledge-source count, intent-routing state, governance readiness, and last preview status in two compact rows of three status cards on desktop. |
| Save AI/Bot Settings | Appears beside the AI/Bot Setup Flow heading. It saves Setup, the default AI Training Campaign, automatic-reply behavior, and the related bot controls on this workspace. |
| Quick actions | Create AI Campaign, Add Knowledge Source, Add Intent Router, Run Test, and Open Inbox AI in one compact row when space allows. |
| Step 1. AI Training Campaigns | Create reusable knowledge campaigns with clear prompts. |
| Step 2. Knowledge Sources | Choose a campaign, then add URL, file, FAQ/content, Google Sheet, or API knowledge sources. Each row keeps the source name, reference, generation mode, status, and actions together. On smaller screens, sources appear as labelled records and action buttons wrap when needed. Use Open source workspace to review content, Edit source to change its setup, or Delete source only when you intend to remove it. |
| Step 3. Intent Routing (Optional) | Select the owning training campaign and map customer intentions to flows, assignments, or dedicated AI response campaigns. |
| Step 4. Setup | Enable AI Bot, choose the default training campaign, and decide automatic reply mode. |
| Step 5. Test & Monitor | Run safe previews and review live runtime activity. |
API IP Security Layers
API requests can be restricted by two independent address controls. Security > IP Manager provides the account-wide API policy, while each API key can keep its own IP allowlist. When both apply, the request must pass both layers.
Only an authorized Super Admin can manage account-wide API IP rules. Add the calling server address and complete a controlled Auth Check before activating a restrictive whitelist.
- Open Security Settings > IP Manager as an authorized Super Admin.
- Add the external server exact IPv4 or IPv6 address, select Whitelist and API, and save the rule after identity confirmation.
- Open Settings > API Integration and add the same address to the API key when per-key separation is required.
- Run Auth Check from the external server and confirm a successful response before adding other restrictive rules.
Expected Result
- Requests from approved addresses continue, while blocked or non-whitelisted addresses receive an API IP not allowed response.
| Layer | Result |
|---|---|
| Account API blacklist | A matching active blacklist blocks the request even when the API key allowlist contains the address. |
| Account API whitelist | When at least one active whitelist exists, the caller must match an active account whitelist. |
| API key IP allowlist | When the selected key has addresses saved, the caller must also match that key list. |
| No active account rule and empty key list | Normal API key, scope, status, and rate-limit checks continue without an address restriction. |
Enable Rules For Automatic Replies
- Do not turn on AI automatic replies until a default AI Training Campaign is selected.
- If fallback-only behavior is off, the selected AI Training Campaign must have at least one Knowledge Source before the settings can be saved.
- Use the readiness strip and quick actions first, then save the AI/Bot workspace only after API, profile, and knowledge readiness all show correctly.
Campaign Lifecycle Webhook
- Open Settings > API Integration and find Trigger Webhook For Campaign Lifecycle.
- Enter the trusted HTTPS receiver URL and save the signing secret in the receiving system.
- Enable the webhook and keep API Webhook Retry enabled in Cron Worker.
- Verify X-WAPI-Signature before accepting campaign.start, pause, resume, approval, test-send, completion, or other lifecycle events.
Expected Result
- Campaign events leave the durable outbox through signed, retried deliveries without exposing recipient lists, mappings, or credentials.
Inbox Translation Rules
| Control | What operators should expect |
|---|---|
| Auto Default Language | When enabled, each Inbox conversation can store its own default language. New inbound text in that conversation can auto-translate into that saved language under the original message. If you later turn this setting off, previously saved conversation languages remain stored but the Inbox language badge and Default Language control stay hidden until you enable the setting again. Each new or reopened session clears the old saved conversation language first, so the next session does not silently inherit a stale language. |
| Default Language in Inbox | This is the per-conversation target language used for inbound auto-translation and for outbound draft translation before send. |
| Translate link under a message | Opens the language picker so the agent can choose a target language for that one stored message. It is not limited to the conversation default language. |
| Language Translation for Chatbot flows/Auto messages | When enabled, chatbot, AI handoff/system confirmations, CSAT/review automation, and other automatic outbound text are translated into the conversation default language before WhatsApp delivery. |
| Auto-detect customer language on chatbot | When enabled, the first customer text that starts a chatbot flow is detected automatically, saved as that conversation default language, and reused by chatbot translation for the rest of that conversation. |
AI Training Campaign Guidance
- Create one AI Training Campaign per business persona, department, product line, or knowledge area.
- Write a clear base prompt that states what the AI should and should not do.
- A campaign with no Knowledge Sources is not ready for grounded answers unless you intentionally rely on fallback-only behavior.
- Use Manage Sources to attach content before selecting the campaign as default.
Intent Routing Guidance
Intent routes match customer phrases such as demo request, pricing question, order status, or complaint. Each intent belongs to a selected AI Training Campaign, while its optional response campaign can be different. A matched intent can trigger a bot flow, assign a user/team, or use a dedicated AI response campaign.
- Select the AI Training Campaign that owns the intent.
- Create an intent with a clear name.
- Add example phrases customers are likely to use.
- Choose whether it should trigger a flow.
- Choose whether it should assign an agent or role.
- Choose whether it should use a dedicated AI response campaign.
- Test the sample customer message in Test Console before live use.
Test And Monitor
| Tool | Use it for |
|---|---|
| AI Bot Test Console | Runs a safe admin preview without sending WhatsApp messages. |
| Preview Campaign dropdown | Tests a specific training campaign or the saved default campaign. |
| Sample Customer Message | Simulates a real customer question. |
| Last Preview Result | Shows restricted-topic match, intent match, selected campaign, generated reply, retrieved knowledge, and prompt snapshot. |
| Recent AI Bot Runtime Activity | Shows live automatic AI decisions, actions, conversations, providers, models, and filters. |
| Activity filters | Uses a compact two-row layout: level, action, and conversation on the first row; date range, rows per page, Apply, and Reset on the second row. |
| Activity date range and rows per page | Narrows history by date and shows 12, 25, 50, 100, 500, 1000, or 2000 rows per page. |
| Runtime activity table | Keeps detailed messages and provider context in full table columns. Scroll horizontally inside the table area when the available screen width is smaller than the table. |
| Delete selected / all matching | Deletes either checked history rows or the complete explicitly filtered result after confirmation. |
Inbox AI Session Rules
| Setting | What it changes |
|---|---|
| Default AI Training Campaign | Defines which saved knowledge campaign is used for unmatched live AI replies. If this is empty, live AI replies can fail even when Test Console preview works against a manually selected campaign. |
| Fresh inbound priority rule | Fresh customer messages are checked against active custom chatbot keyword and default flows first. Automatic AI reply should take ownership only when no chatbot flow matches that fresh message. |
| Enable Contextual Memory | Allows live AI replies to include recent non-system chat history from the same subscriber so follow-up and recall-style questions can use short-term context more reliably. |
| Previous Conversations With Subscriber | Controls how many recent non-system messages from the same subscriber are included in AI memory across recent conversations. |
| AI Session Inactivity Timeout (Minutes) | Defines how long AI keeps ownership of one conversation after its last active reply. When that timeout expires, the conversation closes automatically and the next customer message starts fresh routing. |
| AI Session Customer Message Limit | Optional. When set above 0, AI stops and hands the conversation to a human agent after the customer exceeds this many inbound messages in one AI session. |
| AI Session Reply Limit | Optional. When set above 0, AI stops and hands the conversation to a human agent before sending another reply after it has already used the allowed reply count in one AI session. |
| AI Customer Message Max Length (Characters) | Optional. When set above 0, oversized customer prompts skip AI and move directly to human handoff. |
| AI Customer Rate Limit (Messages Per Minute) | Optional. When set above 0, rapid customer bursts above this per-minute limit stop AI and move the conversation to a human agent. |
| Close Conversation When Chatbot Runtime Finishes | Optional. When enabled, a chatbot flow that naturally finishes its runtime path closes the conversation automatically unless the flow has already handed ownership to AI or a human agent. |
| AI Exit To Menu Flow | Defines which chatbot flow should open when the customer types menu-style exit words during an active AI chat. |
| AI Exit To Human Handoff | Defines whether a human request should use team queue / role routing or a fixed agent assignment. |
| Agent Inactivity Auto Close (Minutes) | Optional. When set above 0, agent-owned conversations close automatically after the chosen inactivity window and a system note records that reason. |
| AI reply language when Default Language is Off | When no conversation default language is saved, live AI now starts in the customer message language and keeps a temporary AI-session language during that active AI chat. If the customer later writes in another language, AI can follow that new language for the active AI session without rewriting the saved Inbox Default Language field. |
| Language Translation fallback behavior | If auto-translation for one chatbot/AI/feedback message fails, the original auto message should still be sent instead of being dropped completely. |
Help Assistant Model Entry
The internal Help Assistant model field supports both selecting a known model from suggestions and typing an exact provider model ID manually. The visible suggestion label is friendly, while the saved value must be the real provider model ID.
- Use a suggested model when you want the app to fill provider and endpoint defaults automatically.
- Type a custom model ID only when your provider account supports it and the endpoint URL is correct.
- Use Test Connection after changing the model or endpoint.
FAQs & Troubleshooting
Should AI Bot be enabled before training data exists?
No. Configure provider and training data, then test with the console before enabling automatic behavior.
What is the difference between Inbox AI and AI Bot?
Inbox AI assists agents with suggestions. AI Bot can take automatic actions in chatbot/runtime flows depending on settings.
Why does Inbox show Bot Reply Off or Paused when AI Bot is enabled here?
This page controls whether Bot Reply and AI Reply automation are available globally and whether agents can manage them in Inbox. The live state is still stored per conversation. The Default Bot Reply For New / Reopened Conversations setting decides how fresh sessions start. Assigned chats, handoff flows, manual takeovers, or a temporary pause can still turn one conversation off without disabling AI Bot for the whole app. If AI Reply is Off on one ready conversation, that conversation should not start a fresh AI-owned session until AI Reply is turned back On.
What does Bot / AI Reply Auto Enable Time do?
It restores temporary per-conversation pause states after the configured number of minutes. It does not unlock active bot flows, active AI sessions, or agent-owned conversations.
Why did live AI reply fail but Test Console generated a good answer?
The most common reason is that Test Console used a chosen preview campaign while live Inbox AI had no saved Default AI Training Campaign. Save the default campaign first, then test a fresh conversation again.
Why did a fresh message go to AI instead of my chatbot keyword flow?
Professional Inbox behavior should check active custom chatbot keyword and default flows before unmatched AI reply takes ownership. If a fresh keyword message still goes to AI first, review the active flow keyword, confirm the flow is custom rather than sample-only, and confirm the latest runtime fix is deployed.
Do Enable Contextual Memory and Previous Conversations With Subscriber still work after one conversation closes?
Yes. When contextual memory is enabled, live AI can now use recent non-system messages from the same subscriber across recent conversations, not only from the currently open conversation id.
What happens after AI Session Inactivity Timeout?
The active AI-owned conversation closes automatically with a system note. The next customer message starts a fresh session and routing begins again from the start.
What language does live AI use when Default Language is Off?
When no conversation default language is saved, live AI starts in the customer message language and keeps a temporary AI-session language for that active AI chat. If the customer later writes in another language, AI can follow the new language for the active session without changing the saved Inbox Default Language field. If a conversation default language is already saved, AI should follow that saved language unless the customer explicitly asks AI to continue in another language for the active AI session.
What happens if a customer changes language during AI chat?
If Inbox Default Language is already saved by an agent, AI should continue in that saved language unless the customer explicitly asks AI to continue in another language for the active AI session. If no Inbox Default Language is saved, AI may follow the customer current language during that active AI session. In both cases, AI should not automatically overwrite the saved Inbox Default Language field.
How can chatbot continue in the customer language automatically?
Enable Language Translation, turn on Language Translation for Chatbot flows/Auto messages, and then enable Auto-detect customer language on chatbot. The first customer text that starts the chatbot saves the conversation language automatically, and later chatbot text can follow that language during the same conversation.
What does Chatbot Inactivity Auto Close do?
It closes a waiting bot-flow conversation automatically after the configured number of minutes if the customer stops replying in the middle of the chatbot journey.
What happens when an AI session guard limit is reached?
If a configured AI session customer-message limit, AI reply limit, message-length limit, or per-minute rate limit is reached, the app stops the live AI path and hands the conversation to the configured human-assignment route instead of generating another AI reply.
What happens if AI Exit To Menu Flow is not selected?
When the customer asks for the menu during AI chat and no exit flow is selected, the app now hands the conversation to a human agent instead of continuing the AI conversation.
What are Additional AI Menu Exit Phrases and Additional AI Human Handoff Phrases?
They let admins extend the built-in menu and human-handoff words with their own business-specific wording, one phrase per line or separated by commas. The live AI exit matcher now first checks the original customer text and then tries one canonical English normalization through the translation layer before routing, so these extra phrases are for business wording and edge cases rather than for hardcoding every language manually. AI handoff confirmations should follow the active AI session language when possible, but they must not auto-save the Inbox Default Language field during AI-to-human handoff.
What does Allow Super Admin Force Close During Active Bot Flow control?
It decides whether a Super Admin can manually force-close a conversation while a bot flow is still active. Normal agents still cannot close an active bot flow directly.
Why are Bot Reply / AI Reply sometimes visible but locked in Inbox?
They lock whenever that conversation already has an active owner. Agent Active locks until close, AI Active locks until takeover or expiry, and Bot Flow Active locks until the chatbot finishes its current runtime path.
Troubleshooting Checklist
- If AI replies are blank, check provider, model, endpoint, API key, and max token settings.
- If answers are generic, add better training sources and improve campaign prompt.
- If intent routing does not match, add more realistic example phrases and test again.
- If live behavior differs from Test Console, compare Recent AI Bot Runtime Activity with the preview result.
- If live Inbox AI returns fallback or no reply after AI setup looks correct, confirm that a Default AI Training Campaign is selected and saved, then start a fresh conversation and test again.