Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel Flex Up to 60% OFF on Premium Upgrade & Whitelabel 03: 00: 00: 00 Claim

#2708-Webhook: include message text from phone replies

lakshit ukani
IMPLEMENTED
#1
lakshit ukani

 lakshit ukani

Hi BotSailor team,


We use BotSailor’s incoming webhook to send WhatsApp conversations to our own CRM. Business users can reply to customers from two places:

  1. The BotSailor platform (live chat inbox)
  2. Their phone (the WhatsApp Business app)


The webhook fires in both cases, but the data it sends is different:

  • Reply typed in BotSailor: the webhook includes the full message content.
  • Reply typed on the phone: the webhook only tells us a message was sent. It doesn’t include what the message says.


Request: Please include the message content in the webhook payload when a reply is sent from the phone, the same way you already do for replies sent from BotSailor. As far as we understand, Meta sends the content of these phone-sent messages through its message echo webhooks (smb_message_echoes for Coexistence numbers), so the data should be available to forward.


Why this matters: Anyone connecting BotSailor to their own CRM depends on this webhook to keep a complete conversation history. Right now, any reply sent from the phone shows up in the CRM as an empty message. The conversation record is incomplete, and the integration doesn’t look reliable to our clients.


Question about Click-to-WhatsApp ads: When a contact first messages us from a Click-to-WhatsApp ad, does the webhook include the ad referral data? Meta provides this in the referral object, including ctwa_clid, source_id, source_url, source_type and headline.

  • If it does, could you confirm which fields are included and where they appear in the payload?
  • If it doesn’t, please consider adding them. We’d like to send ctwa_clid back to Meta through the Conversions API to track conversions from our ads.


Thank you. We’re happy to share sample payloads or help test.

#2
lakshit ukani

 lakshit ukani

Hello,


I tested this, but still its not receiving the message

Please check once.


Also can you please answer this:-  When a contact first messages us from a Click-to-WhatsApp ad, does the webhook include the ad referral data? Meta provides this in the referral object, including ctwa_clid, source_id, source_url, source_type and headline.


Thanks

#3
Mamuduzzaman Ronok

 Mamuduzzaman Ronok

Hi there,


We have now added the incoming webhook payload to include the message content for replies sent directly from the phone, matching the behavior for replies sent via the live chat inbox, on next updated


Please check the integration and let us know if everything looks correct.

#4
lakshit ukani

 lakshit ukani

Still not getting the message, I just tested it and here is the reply I am getting


PIjKB3IrxBgAAAAASUVORK5CYII=

#5
Mamuduzzaman Ronok

 Mamuduzzaman Ronok

Thank you for testing and sharing the screenshot. I've logged the issue with our team and we are looking into it. As today is the weekend, we will investigate this first thing on sunday. We will get back to you as soon as we have an update.

#6
Mamuduzzaman Ronok

 Mamuduzzaman Ronok


1. We have just deployed an update for the phone-replissue. Could you please test sending a reply from your WhatsApp Business app again? If has still not come please inform use


2. Regarding Click-to-WhatsApp ads: Currently, BotSailor captures and displays the referral data in the live chat inbox, but we do not yet forward the Meta `referral` object (ctwa_clid, source_id, etc.) inside the third-party webhook payload. However, we have logged this feature request and are planning to include the referral data in the webhook payload in an upcoming update!

#7
lakshit ukani

 lakshit ukani

Yes now the message is coming but is it possible to add one more parameter which define that this message is coming from Platform or mobile phone


This would be of great use

PMdmxHBAgQIECAAAECBAgQIECAAIEJBf4HDzPMrrDFyfIAAAAASUVORK5CYII=

#8
Mamuduzzaman Ronok

 Mamuduzzaman Ronok

I have added this . Now it should see the platform where the message come form. Please have a check and let me confirm

#9
lakshit ukani

 lakshit ukani

Thanks for reply, but i checked the platform related information I am not getting

#10
lakshit ukani

 lakshit ukani

Thanks for reply, but i checked the platform related information I am not getting

#11
Mamuduzzaman Ronok

 Mamuduzzaman Ronok

For incoming . Please show the response what is now showing ?

#12
lakshit ukani

 lakshit ukani

Here is the response, its same as before there is no attribute related to platform

rw7CZAACZAACZAACZAACdR7Av8P9P1q2ks6GA0AAAAASUVORK5CYII=