Skip to content
GUIDES#Claude API#MCP#SupabaseUpdated: July 2, 2026

Build a Hebrew AI Customer Service Agent in 5 Steps (2026 Guide)

A step-by-step guide to building an AI agent that responds to customers in natural Hebrew: Claude API + MCP + Supabase + Webhook. Includes a Hebrew System Prompt, WhatsApp and Telegram integration, and conversation logging to your CRM.

Yaakov Tzedek
Yaakov Tzedek · AI expert·11 min read
Build a Hebrew AI customer service agent, step-by-step guide
THE BOTTOM LINE
  • Build an AI agent that handles Hebrew customer support on WhatsApp in 1-2 days: Claude API, Supabase, and MCP. Includes real code and a ready-to-use System Prompt.
88%Early adopters reporting positive ROI
66%Service organizations running AI agents (2026)
45%+Inquiries handled automatically
75%Prefer a human agent for complex issues
DID YOU KNOW?

66% of service organizations are already running AI agents in 2026, up sharply from 39% in 2025 (Salesforce, State of Service).

An AI customer service agent is a system built on a language model that receives a message from a customer, retrieves information from the business's knowledge sources, and returns a natural Hebrew response, or performs an action such as checking an order status. Unlike a script-based AI agent, it understands free-form phrasing and knows when to escalate to a human representative. This guide shows you how to build one yourself, step by step.

Demand for agents that speak natural Hebrew is growing fast among small-to-medium businesses and Israeli startups, yet practical Hebrew content on the subject is still scarce. Here you will find a clear architecture, real code, and steps you can implement today, with no dependency on a prebuilt chatbot and full control over tone and knowledge sources.

According to Google Cloud ("The ROI of AI 2025"), 88% of early AI agent adopters report a positive return on investment, and customer service leads adoption. According to Salesforce, 66% of service organizations are already running AI agents in 2026, up from 39% in 2025.

What you need to build it (the full stack)

An AI customer service agent in Hebrew is built from four components: a language engine (Claude API), a knowledge base (Supabase or Airtable), an actions layer (MCP), and a communication channel connected via Webhook. Each component is accessible through simple API calls, and the separation between them is what makes it possible to swap a provider or channel without rewriting the entire system.

ComponentRoleRecommended option
Language engineUnderstanding the question and composing the Hebrew responseClaude API (Haiku 4.5 / Sonnet 4.6) or OpenAI (GPT-4o mini / GPT-4.1 nano)
Knowledge baseStoring FAQs, policies and conversationsSupabase (or Airtable for beginners)
Actions layerConnecting the agent to the CRM and external systemsMCP (Model Context Protocol)
Communication channelReceiving and sending messages to the customerGreen API (WhatsApp) / Bot API (Telegram)

What is MCP? MCP (Model Context Protocol) is an open standard from Anthropic for connecting language models to information sources and external tools. Instead of writing a custom integration for every system, you define an "MCP server" that exposes actions (such as "save conversation" or "check order") that the agent can call on its own during a conversation.

Two engines, the same architecture: The stack is identical whether you choose Claude or OpenAI, you only swap the API call. With Claude, start with Haiku 4.5 (fast and cheap) and reserve Sonnet 4.6 for complex conversations. With OpenAI, GPT-4o mini is cheap but now a legacy model, and the most affordable option is GPT-4.1 nano. In both cases, the "cheap model by default, escalate to the stronger one only when needed" strategy saves the most.

Step 1: Setting up the database, FAQ and policies

Create at least two tables in Supabase: one for frequently asked questions (question, answer, category) and one for policies (returns, shipping, business hours). This is the "source of truth" the agent draws from, making it the number-one factor in answer accuracy. Before you write a single line of code, organize the content into short, clear paragraphs.

-- FAQ table
create table faqs (
  id          bigint generated always as identity primary key,
  question    text not null,
  answer      text not null,
  category    text,
  updated_at  timestamptz default now()
);

-- Business policy table
create table policies (
  id          bigint generated always as identity primary key,
  topic       text not null,   -- 'returns' / 'shipping' / 'hours'
  content     text not null
);
  • Keep answers short and self-contained. Every FAQ row should stand on its own.
  • Add categories. They help you later analyze which topics come up most often.
  • Airtable as an alternative. Want to start without SQL? Airtable provides a friendly tabular interface with a built-in API, great for an MVP.

Step 2: Writing a System Prompt in Hebrew

The System Prompt is the fixed instruction that defines who the agent is, what tone it uses, and what it may and may not do. Write it in Hebrew. Claude handles Hebrew excellently when guided properly. Explicitly define when to escalate to a human, and prohibit the agent from inventing information not found in the knowledge base. According to Salesforce, 89% of customers want to know whether they are talking to a person or to AI, so do not impersonate a human representative.

You are "Noam," a customer service representative for [business name]. You respond in Hebrew only, in a warm, professional and concise tone.

  1. Answer only on the basis of information retrieved from the knowledge base (FAQ and policies). If you do not have an answer, say so honestly and offer to transfer the customer to a human representative.
  2. Do not invent prices, dates or policies. "I'll check and get back to you" is better than a wrong answer.
  3. Escalate to a human representative when the customer is angry, requests a refund, or asks something outside your scope.
  4. Keep answers to 2-4 sentences. Do not overwhelm the customer with text.
  5. Do not impersonate a human. If asked, state that you are an AI assistant for [business name].
  • Dynamic knowledge injection. With every message, retrieve the relevant FAQ from Supabase and add it to the conversation context, so the agent answers based on current information rather than the model's "memory."
  • Define the escalation boundary. A clear condition ("angry," "refund," "out of scope") that triggers a handoff to a human is what prevents frustration.

Step 3: Connecting to WhatsApp/Telegram

Connect the agent to a channel via Webhook: every incoming message triggers your code, which passes it to the language engine and returns a response. For WhatsApp, Green API is commonly used (see Connecting Claude Code to WhatsApp with Green API); for Telegram, use the official Bot API. In Israel most leads come through WhatsApp, so it is the natural channel to start with.

Message flow: the customer sends a message, Green API sends a Webhook to your server, the code retrieves the relevant FAQ and sends the conversation to the language engine, and the response is sent back via sendMessage.

// The agent's response is returned to the customer via Green API
import whatsAppClient from "@green-api/whatsapp-api-client";

const restAPI = whatsAppClient.restAPI({
  idInstance: process.env.ID_INSTANCE,
  apiTokenInstance: process.env.API_TOKEN_INSTANCE,
});

await restAPI.message.sendMessage(
  "972500000000@c.us",  // the customer's chatId
  null,
  replyFromAI            // the text returned from Claude or OpenAI
);

Tip: In Green API, recipients are identified in the format <number>@c.us (for example 972500000000@c.us). With Telegram, the official Bot API provides a built-in Webhook with no QR scan required.

Step 4: Adding MCP to the CRM for saving dialogues

Define an MCP server that exposes an action such as "save conversation" to a CRM (Notion, Airtable or a Supabase table). This way the agent logs every dialogue automatically, providing the foundation for analysis, iteration and tracking of requests that need human attention. Without an organized log it is impossible to know which questions the agent failed on.

// Tool definition that the agent can call
{
  "name": "save_conversation",
  "description": "Saves a customer dialogue to the CRM for tracking and analysis",
  "input_schema": {
    "type": "object",
    "properties": {
      "customer_id": { "type": "string" },
      "summary":     { "type": "string" },
      "needs_human": { "type": "boolean" },
      "topic":       { "type": "string" }
    },
    "required": ["customer_id", "summary"]
  }
}
  • Flag escalation requests. The needs_human field lets you automatically filter conversations that require a human representative.
  • Notion or Airtable as a lightweight CRM. For small businesses, a Notion/Airtable table is enough as an initial CRM, and both connect via MCP.
  • Topic field. Tagging the topic of every conversation builds a picture of which questions come up most often, golden data for improving the FAQ.

Step 5: Testing and iterating based on real conversations

Collect the saved conversations, flag incorrect or "cold" responses, and update the System Prompt and FAQ accordingly. An agent does not "finish" being built at launch, it improves with every wave of conversations, and the data you saved in Step 4 is exactly the material for doing that.

  1. Collect. Take 50-100 real conversations from the CRM.
  2. Classify. Mark each response: correct / incorrect / wrong tone / missed escalation.
  3. Fix. Every recurring failure gets a new FAQ row or a correction in the System Prompt.
  4. Repeat. Run through the same conversations again and confirm the fix worked without breaking anything else.

The data supports this: according to Gartner/Freshworks, AI agents filter more than 45% of incoming requests (over 50% in retail and travel), and according to McKinsey, cost per conversation drops by roughly 50% in contact centers that have deployed agents. However, according to ISG, about 75% of customers still prefer a human representative for complex issues, so a smooth escalation to a person is part of the system, not a failure of it.

Common mistakes to avoid

  • Letting the agent "make things up." Without an explicit instruction against it, a model will try to answer even when it has no information. Prohibit this in the System Prompt.
  • Forgetting the escalation path. An agent without an "escape hatch" to a human frustrates customers at the most sensitive moments.
  • Launch and forget. Without an iteration loop on real conversations, the agent's quality stays frozen at launch level.

New: Want the agent to answer by phone as well? OpenAI has brought GPT-Live-1 to the API, a voice model that listens and speaks simultaneously and passes the reasoning to a background model. The complete guide to GPT-Live-1.

The bottom line

An AI customer service agent in Hebrew is within reach of any small-to-medium business today: four components (Claude, Supabase, MCP, Webhook), five steps, and an iteration loop that improves it over time. The secret is not the technology but the quality of the knowledge base, the right tone in the System Prompt, and a smooth escalation path to a human. Start small: a basic FAQ, one channel (WhatsApp), and expand based on real conversations. And if you would prefer to build this with someone alongside you, this is exactly the kind of project we do in AI automations for businesses and AI implementation for organizations.

Continue reading: What is an AI agent and how to build one · The complete MCP guide in Hebrew · AI automations for businesses · Free Claude Code course

Related: The agent you are building here is exactly what will sit behind "click to chat" ads in ChatGPT. See The next ChatGPT ad format: click to chat with the brand's agent.

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →