Distinguishing User Responses to HSMs and User-Ini...
# 🤝help
a
I'm implementing the bulk sending of HSMs via Botpress and also through code, consuming WhatsApp APIs directly. Could you advise me on how to differentiate between user responses to these HSMs and messages initiated by them? Specifically, I need to understand how to identify if an incoming message is a response to an HSM or the start of a conversation from the user. Additionally, how can I identify the status of sent messages (delivery)?
t
Hey @adamant-toothbrush-90110 , I was reading the Cloud API documentation When you send a template message, you can save the
wamid.ID
(first image) https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates/#text-based And you will receive, in your webhook, the status. You need to filter by the
wamid.ID
you saved earlier https://developers.facebook.com/docs/whatsapp/on-premises/webhooks/outbound/#status--message-read I didn't found about the incoming message, but I think you will receive it in the webhook, and need to filter by the
wamid.ID
too https://cdn.discordapp.com/attachments/1222049992756170802/1222912885185843291/image.png?ex=6617f160&is=66057c60&hm=08d99ee4a2e6dfa23e520b47cb6c2ad44fc7d6703b7211913f077409837c5369& https://cdn.discordapp.com/attachments/1222049992756170802/1222912885575909406/image.png?ex=6617f160&is=66057c60&hm=a60441158fd96ea3cb4b8a3890bf38d97ce49944b08385eb32bc7817ebb8cf24&