FREE COURSE · MODULE 4 · LESSON 4.3 🧠PILLARS 3 + 4
WhatsApp AI Agent Mastery

Multilingual Prompts + Knowledge Base

Pillars 3 and 4 become real code. Wire each language to its own system prompt and its own KB shard. The agent doesn't just respond in Swahili — it responds with Swahili-native business facts. Same stack, 5 distinct customer experiences. Under $300 marginal to go from 1 to 5 languages.

Native KB shards
System prompts
< $300Marginal cost

The 5 Steps You'll Execute

Each step is concrete. By the end: 5 native brains running on the same agent. Same code. 5 distinct customer experiences.

1

Native System Prompts

One system prompt per language. Same agent personality, expressed natively. FR: polite local idioms. SW: greeting opens a small conversation. RN: honorifics for elders. Store as PROMPT_FR, PROMPT_EN, PROMPT_SW, PROMPT_AR, PROMPT_RN. NEVER translate the EN prompt with Claude — write each from scratch.

2

KB Shards Per Language

For each language, build a separate set of documents (FAQs, product specs, policies) — written or reviewed by a native, NOT auto-translated. Chunk into 500-token pieces, embed with text-embedding-3-small or Voyage AI, store under per-language namespace (Pinecone) / metadata column (Supabase) / collection (Chroma).

3

Router (5-Line Function)

Detected language code → matched system prompt + matched vector namespace. Configuration is data, not branching code everywhere. Adding a new language = adding one config entry, not a code rewrite. The detector decides; the router looks up.

4

Scoped RAG

Same retrieval-augmented generation pattern from Lesson 3.3 — but constrained to a single language shard. Embed customer question → search vector DB scoped to matched namespace ONLY → top 3 chunks → inject into matched system prompt → Claude generates. Native answer, native tone, native facts.

5

Quality Loop

Ship one language at a time. Pick your strongest market first. Send 10 real customer questions to your native reviewer. Catalog: off tone, wrong fact, broken idiom. Patch prompt + KB + re-test. 5 languages over 5 weeks > 5 languages in 1 week (all mediocre).

Marginal cost — 1 to 5 languages
< $300 one-time
KB embedding $1 · Native reviewers $200-500 · Vector DB free tier · Reach 4× more customers for less than 1× a freelance translator.

Want a multilingual AI agent shipped for your business?

Top AI Africa deploys the full stack — language detection, native prompts, native KB per language. WhatsApp agents sounding native in French, English, Swahili, Arabic, Kirundi. Free 15-min strategy call.