I need some help to send customer notifications via API. I am receiving a notification from an external service everytime our customers get paid. I would like to send customers a WhatsApp notification about payments they received, incl. the amount.
I have done this succesfully with https://api.manychat.com/fb/sending/sendContent for Instagram notifications, but I can’t seem to make it work for WhatsApp notifications. I also tried to solve this with templates, but I can’t trigger templates from external APIs.
Does anyone know how to send a custom message to a WhatsApp contact via API?
Page 1 / 1
i need more details about that
You cannot do ‘sendContent’ with business-initiated Whatsapp Messages.
The alternative is do use ‘sendFlow’ and trigger a specific flow, which has the template message setup.
If you need to add dynamic information to it, add custom fields to the template, and do a ‘setCustomFields’ before, so they have the correct values before sending the template message.
I’ve done this multiple times, so if you need help setting this up feel free to book a call at gusboregio.com and I can help you ;)
Jumping into the conversation here if you don’t mind.
If I want to send an audio file, would that require a flow with a custom field?
I really need to send the audio file as an audio file, rather than a link.
@tomaz309 in what channel?
If I'm not mistaken, only Messenger and Telegram will allow to send dynamic audio files through a custom field or the sendContent API.
If the 'audio' bubble in the flow builder accepts a custom field, then yes you can set a custom field with the audio URL and use that to send it.
How to send pdf using API this is not working
{
"subscriber_id": 1212,
"data": {
"version": "v2",
"content": {
"type": "whatsapp",
"messages":
{
"type": "file",
"url": "https://s.com/letter_154697.pdf"
}
],
"actions": ],
"quick_replies": "]
}
},
"message_tag": "POST_PURCHASE_UPDATE"
}
@sarinme94 sending files through the API is not supported for Whatsapp.