Skip to main content

WhatsApp for AI agents

Connect your AI agent to WhatsApp

Your agent gets every customer message as a signed webhook, reads the conversation, shows "typing..." and answers with text, media, buttons or lists. Your team sees every reply in the Vibrate inbox and can take over at any moment.

  • One command for Claude Code, Codex and Cursor
  • Your model, your prompt, your code
  • Official WhatsApp Business API

Last updated:

Claude Code · Codex · Cursor
$ npx skills add lightup-team/vibrate-agent-skills
> Build a WhatsApp agent that answers order questions

https://api.vibrate.co.il/v1/whatsapp/messages

01

How it works

Four steps from a customer's message to your agent's answer.

  1. 01

    A customer writes

    Vibrate receives the message on your WhatsApp number and posts a signed message.received event to your server.

  2. 02

    Your agent reads

    It marks the message read with "typing...", and loads the conversation history and its state from the API.

  3. 03

    Your agent answers

    Text, an image or document, up to 3 buttons or a list of up to 10 rows. A tapped button comes back with its id.

  4. 04

    Your team stays in charge

    Every reply appears in the Vibrate inbox with an AI badge. When a rep takes the conversation, the agent sees it and steps back.

02

Three ways to build it

The same API underneath. Pick the one that fits who is building.

Agent Skills

Let your coding agent build it

npx skills add lightup-team/vibrate-agent-skills teaches Claude Code, Codex or Cursor the whole flow: webhooks, replies, templates, chatbots and debugging, with ready scripts and a runnable agent server.

REST API

Write it yourself

POST /v1/whatsapp/messages to reply, /read for the typing indicator, /conversations for history, and webhooks or REST hooks for incoming messages. Documented with examples in JavaScript, Python, cURL and C#.

MCP server

Work from a chat

Connect ChatGPT, Claude, Claude Code or Cursor to the Vibrate MCP server to read conversations and answer customers from a chat, with your approval before every send.

03

What your agent can do

  • Receive every incoming WhatsApp message as a signed webhook, or through Zapier and Make
  • Reply with text, images, videos, audio and documents
  • Send up to 3 reply buttons or a list of up to 10 options, and get the tapped id back
  • Show blue ticks and "typing..." while it thinks
  • Read the conversation history and whether the 24-hour window is open
  • Know when a rep took over, and stay quiet
  • Reach people outside the window with approved templates
  • Work with sub-account keys limited to their own numbers
04

Agent skills: WhatsApp for AI agents

One command teaches your coding agent to put WhatsApp into your product or AI agent: receive messages, reply with text, buttons and lists, build chatbots and debug delivery. Each skill comes with ready scripts and the full API reference.

Install in your project
npx skills add lightup-team/vibrate-agent-skills
  • integrate-whatsapp

    Connect an AI agent or your app to WhatsApp: signed webhooks for incoming messages, replies in text, media, buttons or lists within 24 hours, read receipts and "typing...", templates. Includes a runnable agent server built on Claude.

  • automate-whatsapp

    Describe a conversation and get a Vibrate chatbot: menus, buttons, questions that save answers, calls to your API. Saved as a draft with a test link, published only when you approve.

  • observe-whatsapp

    Number health, why a message failed (Meta error codes explained), whether it was delivered or read, and whether your webhooks are alive.

Works with Claude Code, Codex, Cursor, GitHub Copilot and other tools that read SKILL.md files.

The skills on GitHub(lightup-team/vibrate-agent-skills)
05

The whole loop in a few lines

A webhook in, an answer out. The full runnable version is in the agent skills.

agent.ts
// POST /vibrate/webhook  (message.received)
// 1. verify X-Vibrate-Signature over the raw body, answer 200 at once
const { conversationId, messageId } = event;

// 2. blue ticks + "typing..."
await vibrate("POST", `/v1/whatsapp/messages/${messageId}/read`, { typing: true });

// 3. the conversation so far (and stop if a rep took over)
const { messages } = await vibrate("GET", `/v1/whatsapp/conversations/${conversationId}/messages`);

// 4. your model writes the answer
const text = await yourModel(messages);
await vibrate("POST", "/v1/whatsapp/messages", { conversationId, type: "text", text, aiGenerated: true });
06

The 24-hour rule

WhatsApp lets a business send a free-form message only within 24 hours of the customer's last message. That is Meta's rule, for every provider.

Inside the window your agent answers freely. Outside it, or to start a new conversation, it sends an approved template, and when the customer replies a new window opens. The API tells your agent in advance whether the window is open and when it closes.

SituationWhat can be sent
The customer wrote in the last 24 hoursAnything: text, media, buttons, lists
The last message is older, or they never wroteOnly an approved template
07

Built to be safe

  • Every webhook is signed with HMAC-SHA256 over the raw body, with a timestamp against replays.
  • Sending needs an access key in the Authorization header. A browser session alone can never send.
  • A sub-account key sees and answers only the conversations of numbers assigned to it.
  • Customer messages are marked as untrusted data for AI tools, and reading conversations through ChatGPT or Claude needs its own permission.
08

Frequently asked questions

Yes. Vibrate sends every incoming WhatsApp message to your server as a signed webhook, and your agent answers through the API with text, media, buttons or lists. You choose the model, the prompt and the logic; Vibrate handles WhatsApp, the number and the team inbox.

A free, open pack of skills for coding agents. Run npx skills add lightup-team/vibrate-agent-skills and Claude Code, Codex, Cursor or GitHub Copilot learn how to connect an agent to WhatsApp, build Vibrate chatbots and troubleshoot delivery, with ready scripts and the full API reference.

Any. Vibrate does not run your model: your code receives the message and calls whichever model you like (Claude, GPT, Gemini or your own). The example agent in the skills uses Claude.

WhatsApp allows free-form messages only within 24 hours of the customer's last message. Outside that window the API answers WHATSAPP_WINDOW_CLOSED and your agent sends an approved template instead.

Yes. Every message, from the customer, the agent or a rep, appears in the Vibrate inbox. When a rep takes over a conversation the API marks it as assigned, so the agent knows to stay quiet.

Use one or the other on a number. Once your agent answers, the conversation is marked handled and a published chatbot stays out of it. To let the agent answer every message from the first one, pause the chatbot on that number.

The API, the webhooks, the MCP server and the agent skills are included in a Vibrate WhatsApp plan at no extra charge. Your AI provider bills you for your model separately.

Put your agent on WhatsApp today

Open an account, connect a number, and install the skills. Your agent can answer its first customer in minutes.

WhatsApp API docsVibrate MCPDevelopers

We use cookies that are strictly necessary to run this site, plus analytics cookies to understand how it's used. Analytics cookies are loaded only with your consent, per Israel's Privacy Protection Law. Learn more in our privacy policy