KosmoKrator

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_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

WhatsApp Business MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for WhatsApp Business.

WhatsApp Business CLI Matrix

Use these pages for direct WhatsApp Business CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.