How to send templated Whatsapp messages via API? #7891
Replies: 4 comments 2 replies
-
Has anyone been successful in using the APIs to sent out templated WA messages to new customers? |
Beta Was this translation helpful? Give feedback.
-
Also, has anyone been able to send message templates with buttons, header and buttons, all these components with parameters to WhatsApp through Chatwoot API? |
Beta Was this translation helpful? Give feedback.
-
Any docs or examples? |
Beta Was this translation helpful? Give feedback.
-
Here are some example API calls and payloads, to send a whatsapp message via API, courtesy discord: https://discord.com/channels/647412545203994635/1148618372146274415/1148619067289260134 |
Beta Was this translation helpful? Give feedback.
-
Can someone confirm the basic steps to send a templated Whatsapp messages via API.
With reference to these guides,
#5958
https://www.chatwoot.com/docs/product/channels/api/send-messages
#6704 (Link is broken)
As I understand it:
Step 1. Create the contact
https://www.chatwoot.com/developers/api/#tag/Contacts/operation/contactCreate
Step 2. Create the conversation (using contact_id from Step 1)
https://www.chatwoot.com/developers/api/#tag/Conversations/operation/newConversation
Step 3. Create the message
https://www.chatwoot.com/developers/api/#tag/Messages/operation/create-a-new-message-in-a-conversation
With message payload:
"content": "WRITE YOUR CONTENT HERE", "template_params": { "name": "template name", "category": "TRANSACTIONAL", "language": "en_US", "processed_params": { "1": "write your field value here", "2": "Write your field value here" } }
Beta Was this translation helpful? Give feedback.
All reactions