communication
WhatsApp Business MCP, CLI, and Lua Integration for AI Agents
WhatsApp Business integration docs for AI agents: MCP gateway setup, WhatsApp Business CLI commands, Lua API reference, credentials, and function schemas.
6 functions 4 read 2 write Bearer token auth
WhatsApp Business for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
whatsapp- route_slug
whatsapp- package
whatsapp- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. WhatsApp Business CLIHeadless setup and direct function calls. WhatsApp Business MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
WhatsApp Business MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for WhatsApp Business.
Claude Code WhatsApp Business MCP setup for Claude Code. Cursor WhatsApp Business MCP setup for Cursor. Codex WhatsApp Business MCP setup for Codex. OpenAI Agents WhatsApp Business MCP setup for OpenAI Agents SDK. Claude Agent SDK WhatsApp Business MCP setup for Claude Agent SDK. Vercel AI SDK WhatsApp Business MCP setup for Vercel AI SDK. LangChain WhatsApp Business MCP setup for LangChain. LangGraph WhatsApp Business MCP setup for LangGraph. CrewAI WhatsApp Business MCP setup for CrewAI. MCP clients WhatsApp Business MCP setup for Generic MCP Clients.
WhatsApp Business CLI Matrix
Use these pages for direct WhatsApp Business CLI workflows in scripts, CI, cron, and agent wrappers.
CI WhatsApp Business CLI for CI. Cron Jobs WhatsApp Business CLI for cron jobs. Shell Scripts WhatsApp Business CLI for shell scripts. Headless Automation WhatsApp Business CLI for headless automation. Coding Agents WhatsApp Business CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
whatsapp.whatsapp_send_message | Write write | 3 | Send a text message to a WhatsApp recipient. Use this for replying within an existing 24-hour customer service window. For new conversations, use the send_template tool instead. |
whatsapp.whatsapp_get_message | Read read | 1 | Retrieve a specific WhatsApp message by its ID. Returns the message content, status (sent, delivered, read), and timestamps. |
whatsapp.whatsapp_list_templates | Read read | 2 | List approved WhatsApp message templates. Templates are required to initiate new conversations outside the 24-hour service window. |
whatsapp.whatsapp_list_contacts | Read read | 2 | List WhatsApp contacts for the business phone number. Returns WhatsApp IDs and profile names. |
whatsapp.whatsapp_send_template | Write write | 4 | Send a template-based WhatsApp message. Use this to initiate new conversations outside the 24-hour window. The template must be pre-approved in the WhatsApp Business Manager. |
whatsapp.whatsapp_get_current_user | Read read | 0 | Get the authenticated WhatsApp Business user info — name, email, and business ID. Useful for verifying which account is connected. |