Sending messages
WhatsApp allows you to send messages easily to users via chatbots so that customers can receive specific news in numerous formats through their friendly message channel as outbound messages.
By posting this given API and using different parameters in your body request you can write a text, set a message type, and finally send it to a WhatsApp user. You can also identify the required and optional parameters. After your request is submitted, you will receive a response to observe the outcomes.
Sending messages is extremely powerful when we want to reach many users simultaneously. This is possible by creating common templates and customizing variables for each user in such a way as to send them all messages in one shot as outbound traffic. You can create suitable templates by using High Structured Messages (HSM).
Moreover, outbound communication can deliver targeted messages and orchestrate subsequent user interactions with precision through webhooks, enabling businesses and organizations to customize their outreach more effectively in various contexts.
There are two main approaches to sending messages on WhatsApp. The first is Automatically Opened Interactions, which includes messages like broadcast messages, template messages, quick replies, and autoresponders. These are initiated by a WhatsApp Business Account when a user interacts with the brand for the first time.
On the other hand, we have Manually Initiated Interactions, where brands can respond through simple messages or interactive buttons, use targeted ads, request feedback, or send surveys. These interactions provide a more proactive way for brands to engage with their audience.
This endpoint will only deliver messages to chatbot users who have sent a message to the bot in the past 24 hours.
Sending a message
POST
https://api.jelou.ai/v1/whatsapp/messages
Send a message individually and choose the message type (text, audio, image, etc.).
Request Body
userId*
string
Client's phone number. (Without the "+" sign)
type
string
The message type to be sent. Can be text, image, file, location.
botId*
string
Bot id
Additional arguments are needed depending on the message type, please check Message Types to know more about different kinds of messages.
Last updated