WhatsApp Agent with Claude Code and Kapso: Full Guide

Build a WhatsApp business agent with Claude Code and Kapso. Covers setup, costs, a test sandbox, booking prompts, number options, and WhatsApp rules.

Illustration for the guide: WhatsApp Agent with Claude Code and Kapso: Full Guide

A few weeks ago I kept seeing the same messages come in on WhatsApp: "Do you have a slot tomorrow?", "How much is a beard trim?", "Where are you located?" Each one takes a minute, and together they take the whole day. This guide shows how I would set up a WhatsApp agent that answers these messages, books appointments, and sends you a summary, using Claude Code and Kapso.

In short: You can build a WhatsApp business agent with Claude Code and Kapso without writing code. Kapso gives you a WhatsApp number connected to the official Meta API, and Claude Code builds the agent from plain instructions. Start with a free Kapso plan and test on the Sandbox before you connect a real number.

Key takeaways

  • Claude Code is not included in the free Claude plan, so you need a paid Claude subscription (Pro, Max, Team, or Enterprise).
  • Kapso's free plan includes 2,000 messages per month, which is about 1,000 back-and-forth conversations.
  • Kapso's Pro plan includes 100,000 messages per month and 3 connected numbers.
  • Starting October 1, 2026, each number gets 1,000 free service messages per month. Above that, Meta charges based on its service pricing.
  • Sandbox codes expire after 15 minutes. Sandbox only talks to the phone you registered.
  • Since January 15, 2026, Meta bans general-purpose chatbots on the WhatsApp Business API. Business agents are allowed.

What do you need before you start?

You need a computer, a paid Claude subscription, a free Kapso account, and Node.js. To go live with a real number, you also need a Facebook account with Meta Business access, full business details, and an active website. You do not need to know how to program. You need to copy a command and describe what you want.

  • A computer with Mac, Windows 10 or later, or Linux
  • A paid Claude subscription (Pro, Max, Team, or Enterprise). Claude Code is not included in the free plan
  • A Kapso account, which you can open for free at app.kapso.ai
  • Node.js installed (needed for the skills install command). Download it from nodejs.org
  • To go live with a real number: a Facebook account with access to Meta Business, full business details, and an active website

How much does it cost?

Kapso has a free plan, and you pay Claude and, in some cases, Meta. You can build and test everything without paying more than your Claude subscription. Costs start to matter when you have a lot of customers.

Kapso plans

FreeProPlatform
Messages per month2,000100,0001,000,000
Connected numbers1350
Media storage1GB100GB1TB

Kapso counts both incoming and outgoing messages, including templates, media, and reactions. Read receipts are not counted. So 2,000 messages is roughly 1,000 back-and-forth conversations. For a small business, that is enough to start and test.

Meta costs (on top of Kapso)

  • Template messages cost money for each message delivered. The price depends on the template type and the customer's country.
  • Regular messages within the service window: starting October 1, 2026, each number gets 1,000 free service messages per month. Beyond that, Meta charges based on its service pricing.
  • Reactions are free.

Claude

You already have the Claude subscription. Claude Code uses it while you build. You can build and test everything without paying anything beyond the Claude subscription. Costs start when you have many customers.

How do you install Claude Code and Kapso?

Install Claude Code, create a Kapso project, install the Kapso CLI, add the Kapso skills to Claude Code, and set your environment variables. Each step runs in a terminal. The whole setup takes about one evening.

Step 1: Install Claude Code

Open a terminal and run the command for your computer.

Mac or Linux:

curl -fsSL https://claude.ai/install.sh | bash

Windows (in PowerShell):

irm https://claude.ai/install.ps1 | iex

After installing, open a new terminal and check:

claude --version

If a version number appears, everything is working. Run claude and sign in with your Claude account in the browser.

Tip: If you do not like the terminal, you can use the Claude desktop app, which runs Claude Code with a graphical interface.

Step 2: Create a Kapso account and project

  1. Go to app.kapso.ai and create an account.
  2. Create a new project. You must do this step yourself, not the agent.
  3. In the menu, go to Integrations, then API keys. Create an API key and save it somewhere safe.

Step 3: Install the Kapso CLI and connect a number

Mac or Linux:

curl -fsSL https://kapso.ai/install.sh | bash
kapso setup
kapso whatsapp numbers list

On Windows, run these inside WSL or Git Bash.

The kapso setup command connects you to your project and helps you connect a number. The last command lists the numbers connected to your account.

Step 4: Add the Kapso skills to Claude Code

Go into the folder where you will work on the agent and run:

mkdir whatsapp-agent && cd whatsapp-agent
npx skills add gokapso/agent-skills

These skills teach Claude Code how to work with Kapso:

SkillWhat it teaches Claude
integrate-whatsappConnect WhatsApp, set up Webhooks, send messages and templates, manage Flows
automate-whatsappBuild automations with Workflows, agents, functions, and databases
observe-whatsappSearch logs, find message delivery problems, and check health
integrate-whatsapp-callingConnect a voice agent that answers WhatsApp calls

Note: The skills are still in Alpha and change often. If something stops working, run the install command again to get the latest version.

Step 5: Set environment variables

The skills need to know which project to connect to:

export KAPSO_API_BASE_URL="https://api.kapso.ai"
export KAPSO_API_KEY="the-key-you-created-in-step-2"

If you signed in with kapso login, the skills will use the CLI instead, and you will not need much more than that.

Step 6 (bonus): Add Kapso docs to Claude Code

This lets Claude search the official docs while it builds:

claude mcp add --transport http kapso-docs https://docs.kapso.ai/mcp

Now run claude inside the folder, and you are ready to build.

How do you test the agent safely?

Test on the Sandbox first. Sandbox is a Kapso test number that only talks to your own phone, so no customer sees a mistake. Everything you build should be checked from your phone.

  1. In Kapso, go to WhatsApp, then Sandbox.
  2. Click Add Test Number and enter your phone number.
  3. Click Create. You will get a 6-character activation code.
  4. Click Open WhatsApp and send the code from your phone.

Keep these rules in mind:

  • The code expires after 15 minutes and is case sensitive.
  • Only the phone you registered can talk to the Sandbox.
  • In Sandbox you can send text and interactive messages, but not templates.

What can a WhatsApp agent do for a business?

An agent can book appointments, send reminders, answer common questions, qualify leads, give quotes, check order status, request reviews, take sign-ups, send a daily summary, and answer voice calls. Start with the task that takes the most of your time each day. For most businesses, that is bookings or repeated questions. Run that agent for a week, then add another.

Each example below starts with a prompt. Copy it into Claude Code and change the details to match your business. Every prompt starts with "Use the Kapso skills and build on my Sandbox."

1. Appointment booking

Good for: barbershops, beauty salons, fitness coaches, clinics, private tutors.

Build an agent that books, moves, and cancels appointments. If a customer cancels, offer them an alternative time and update me.

2. Reminders before appointments (fewer no-shows)

Good for: any business with appointments.

Build an automation that sends a reminder 24 hours before each appointment, with buttons: I'm coming, I need to reschedule, I'm cancelling.
Based on the reply, update the calendar and notify me about cancellations.
Use a Utility template and prepare it for Meta approval.

3. Answers to common questions

Good for: shops and service providers who answer the same questions every day.

Here are the 20 questions I get most often and my answers: [paste].
Build an agent that answers them. If a question is not on the list, have it say it is checking and pass the question to me.

4. Lead filtering

Good for: service providers who give quotes, real estate, renovations, consultants.

Build an agent that receives new inquiries and asks 4 questions: what you need, where, when, and what the budget is.
Save each lead in a table, and send me an immediate message for hot leads (budget above X and high urgency).

5. Automatic quotes

Good for: moving services, cleaning, events, printing.

Here is my price list: [paste]. Build an agent that asks the required questions, calculates a quote,
and sends it to the customer with a button to approve and a button to talk to me.

6. Order status

Good for: online stores, restaurants with delivery.

Build an agent where a customer sends an order number. The agent checks the status in [my system] and replies.
If an order is delayed more than two days, pass it to me.

7. Review request after service

Good for: any business that relies on referrals.

One day after each appointment, send a message asking how it went from 1 to 5.
For a 5, send a link to a Google review. For a 3 or lower, pass it to me before it reaches the public.

8. Form inside WhatsApp (WhatsApp Flows)

Good for: course sign-ups, client intake, intro questionnaires.

Build a WhatsApp Flow for a workshop sign-up: name, email, preferred date, and track choice.
Save each sign-up in a table, and the customer gets a confirmation.

9. Daily summary for the owner

Good for: anyone who wants to know what happened without reading 80 conversations.

Every day at 20:00, send me a WhatsApp summary: how many inquiries came in, how many appointments were booked,
which leads are hot, and what is waiting for my reply.

10. Voice call answering

Good for: businesses that get many WhatsApp calls.

Use the integrate-whatsapp-calling skill and build a voice agent that answers WhatsApp calls,
asks what the customer needs, and books an appointment or passes the call to me.

Tips for a better agent

  • Give it a personality. Write how you talk to customers, and give 2 or 3 sample conversations.
  • Set boundaries. Say what it does not do, such as no discounts and no promises that are not written down.
  • Ask it to summarize the day's bookings each evening.

Example booking prompt

This is the full prompt I would use for a barbershop. Replace the details with your own.

I want to build a WhatsApp agent for my business with Kapso. Use the Kapso skills.

Business details:
- Name: Dani's Barber Shop
- Services: men's haircut, 30 min, 80. kids' haircut, 20 min, 60. beard trim, 15 min, 40
- Hours: Sunday to Thursday 9:00 to 20:00, Friday 8:00 to 14:00, Saturday closed
- Address: 10 Herzl Street, Ashkelon

What the agent does:
1. Replies to customers in their language, short and friendly
2. Asks which service they want and when it suits them
3. Offers the 3 nearest free time slots
4. Books the appointment and saves it (name, phone, service, date, and time)
5. Sends a confirmation with all the details
6. If the customer asks for a person, or the agent is not sure, it passes the chat to me

Start by testing on my Sandbox number. Explain each step to me before you do it.

Claude Code will build a Kapso Workflow with an Agent node, a place to save bookings, and connect everything to your test number. Then send a

Questions people ask

Do I need to know how to code to build a WhatsApp agent with Kapso?

No. Claude Code builds the agent from plain instructions, and you only need to copy a command and describe what you want. The guide covers the setup from install to first test.

How much does it cost to start?

Kapso has a free plan with 2,000 messages per month. You still need a paid Claude subscription, since Claude Code is not included in the free Claude plan, and Meta charges separately for some message types.

Can I test the agent before using a real phone number?

Yes. Kapso provides a Sandbox test number that only talks to the phone you register, so you can check everything before going live. Sandbox does not support templates, so template messages only work on a real number.

Can I keep using my current WhatsApp number?

Yes, with the Coexistence option. You keep using the WhatsApp Business app while the agent runs alongside it, and you connect by scanning a QR code. The number must be in the WhatsApp Business app, not regular WhatsApp.

Can I build a general chatbot that answers any question?

No. Meta has banned general-purpose chatbots on the WhatsApp Business API since January 15, 2026. A focused agent that serves your business, with a way to reach a person, is allowed.

WhatsApp agentClaude CodeKapsoWhatsApp Business APIAI automation
I rest. The agents work. A relaxed panda on a beanbag while a small robot carries its paperwork

One email a week. One agent you can copy.

Every week I send the setup I actually used: the tools, the prompts and the steps. Short enough to read on your phone.

No spam. Unsubscribe with one click.