Send WhatsApp using an Infobip MCP server and an AI client
This tutorial will teach you how to prompt an AI client to send a WhatsApp message. In this example, we use Claude Desktop but you can use any AI client that supports MCP integrations.
Prerequisites
- Infobip account. If you do not have one, create a free trial account.
- If using API key authorization, an Infobip API key with the
whatsapp:message:sendscope. Find out more about API keys and scopes. Skip this step for OAuth. - An AI client (e.g., Claude Desktop) with the Infobip WhatsApp MCP server. For integration details, see the MCP integration guide.
- Sender. If in a free trial, use the Infobip test sender
447860099299and activate it. If you want to configure a custom sender, request a new number or an alphanumeric sender through the Infobip account or use the Infobip Numbers API. - Destination - a phone number to which the message will be sent. If in a free trial, you can only send messages to a verified phone number.
Integrate the Infobip WhatsApp MCP server with your AI client
Navigate to your AI client's MCP settings and add the Infobip WhatsApp MCP server.
Restart your AI client and you should see the Infobip WhatsApp MCP server on the list of available tools. For more integration details, see the MCP integration guide.
Send a WhatsApp message
In your AI client, write a prompt to send a WhatsApp message.
Key points about the prompt:
- Specify the sender and destination(s).
- Specify additional features you wish to include. Ask AI to show you available features or call the MCP server directly.
- Describe your use case so that the AI can craft an adequate message.
- Include limitations (e.g., one message, specific delivery window) and personalized details (e.g., specific URL, image, etc.); otherwise, the AI will use made-up details to fill in the gaps.
The AI will choose an endpoint and create a request based on your specifications. Review and change it if need be. Once approved, the AI will send the message.
In this example, since the prompt specified an image, the AI chose an endpoint that allows for sending images over WhatsApp.
Report status
Once the AI sends the message, it will return a summary of what it did and if prompted will retrieve a delivery report, if available.
And that's it! You have successfully sent a WhatsApp message using AI and an Infobip MCP server.
Useful links
- Infobip MCP docs
- Infobip MCP Servers GitHub repository
- WhatsApp API reference
- Response status and error codes