AI agent & knowledge base

Sep 30, 2026

Reading Time: < 1 minute

AI agent & knowledge base

Upload your FAQs, policies, and product docs. The AI agent answers customer questions in your tone and cites the source.

Last updated: September 30, 2026

 

 

 

 

 

 

 

How the agent works

When a customer sends a free-text question, the AI agent:

  1. Embeds the question into a vector with OpenAI's small-text-embed model.
  2. Retrieves the top-k chunks from your knowledge base.
  3. Hands the question + retrieved chunks to Claude (zero-data-retention configured) with your system prompt.
  4. Returns the answer + the source documents it leaned on.
  5. If confidence is below your threshold, it hands off to the configured fallback (live agent or canned reply).

Round-trip latency is typically 800ms-2s. Tokens are billed against your plan's AI quota — see Plans & entitlements.

Setting up the knowledge base

  1. From the bottom-left avatar menu, open Settings, then AI Agent (Growth+ plan).
  2. Upload PDFs, Markdown, or plain text. We split each file into semantic chunks (~500 tokens each) and embed them.
  3. Re-upload or delete documents anytime — the index updates in the background within ~60 seconds.

Supported file types

  • PDF — text-extracted with OCR fallback for scanned pages.
  • Markdown / plain text — preserved structure (headings boost retrieval).
  • HTML — stripped to text content; links are kept inline.
  • DOCX — auto-converted to Markdown server-side.
  • Per-file size limit: 20 MB. Per-org corpus limit: depends on plan.

The system prompt

In Settings → AI Agent, the system prompt controls voice and refusal behavior. Default:

You are the customer support agent for {{org.name}}.
Answer questions strictly from the provided context.
If the context doesn't cover the question, say so and offer to connect a human.
Match the tone of the source documents. Keep replies under 80 words.

Customize it to your brand voice. Don't try to override safety guarantees — the agent will still refuse to invent product details that aren't in the docs.

Confidence + escalation

Every reply carries a confidence score (0-100). In Settings → AI Agent set:

  • Auto-reply threshold — default 70. Above this, the answer goes straight to the customer.
  • Escalation threshold — default 40. Below this, the agent skips the reply and hands off to your fallback.
  • Between thresholds — the reply goes out but is tagged uncertain for review.

Source citation

Every reply includes the source document and chunk it relied on. Customers see a compact footer: Source: returns-policy.pdf · Section 2. The audit log keeps the full chunk text + retrieval scores for 90 days.

Wiring AI into a journey

In the Builder, drop an AI reply node. Connect it after a Trigger that catches free-text questions:

  • Trigger: keyword regex .* (catch-all)
  • AI reply node — uses your knowledge base + system prompt.
  • Branch on {{ai.confidence}} — route low-confidence runs to a human handoff node.

Choosing where AI is used

Admins decide which parts of DialogPlus use AI in Settings → AI Agent → Workspace → Where AI is used:

  • AI replies on WhatsApp — the AI and knowledge steps in your journeys, and intent routing. When off, those steps take their fallback path, so conversations keep flowing.
  • Inbox assist — suggested replies, summaries and triage for your team.
  • Template writer, Journey assistant and Broadcast suggestions.

Switching one off hides it for everyone, and the server refuses it too. The same page sets how the AI Agent answers (length, language, how much of a chat it remembers), what it always knows about your business (Memory), which tools it may use and which ask before running (Tools & approvals), and how long chats are kept (Data). Each person's chat preferences and saved / prompts live under Chat and Prompts.

Privacy

  • Anthropic Claude is run in zero-data-retention mode — your message bodies and uploaded documents are never used for training.
  • OpenAI embeddings are also configured zero-retain.
  • Embeddings live in our Postgres in your tenant's region (Mumbai by default).
  • Document originals stored in S3-compatible object storage with per-org encryption keys.

What's next

Industry reference

Background reading on the Meta-side AI agent product (a sibling to ours that businesses can also opt into) and the official WhatsApp Business Premium offering it sits inside: