In the following docs https://collect.chat/article/show/88766-capture-utm-parameters-from-urls this is mentioned:
“Once they are defined in the Settings, the chatbot will be able to pick it up and send it along with the rest of the conversation that the user had with the chatbot. You will be able to see these data points in the Response section, in the email notifications, and in the webhooks.”
Hi @utkarshs
As the article says, when you add utm_source and utm_campaign as custom fields, these 2 fields will be captured by the chatbot and send along with webhook data.
When you say, “But I’m unable to add the api fields in the webhook”, we assume you are talking about the same 2 fields, utm_source and utm_campaign.
If you are trying to troubleshoot the data send by webhook, we recommend the method described here – https://collect.chat/article/show/130684-webhook-in-my-chatbot-is-not-working
Test the webhook with above method and if you are still not getting the data as expected, please write to [email protected] with the following:
1. Detail out what you are trying to achieve
2. Send screenshot of webhook settings
3. Send screenshot of what you are receiving on your side
Thanks and Regards,
Collect.chat Team
As you can see in the images, I have added the two api fields to be captured utm_source & utm_campaign. The webhook is sending the data properly, but in the webhook section there is no option to add the api fields. Because of this I’m unable to send the api fields to the api endpoint.
Also, there is no document or video on how to send api fields through webhook. Please add one if possible.
We are discussing this issue with the tech team and will get back to you, here.
Regards,
Collect.chat