Skip to main content
Solved

How can I pass values to the user's custom fields when the user goes to a bot from the website?

  • February 13, 2024
  • 4 replies
  • 636 views

Hey everyone,

1. We would like to create a user profile (new Contact) with custom field values when a user moves from our website to a chatbot. We plan to pass the custom field values through the URL parameters to our chatbot. Is this possible? If so, could you please guide us on how to implement it?
2. Each user will have unique values. We want to include them in the URL parameters that the bot shares in the chat. Is this possible?

Best answer by Gustavo Boregio

You can use the Ref URL with Custom Payload on the URL:

https://support.manychat.com/support/solutions/articles/36000003002-messenger-ref-url

 

You can only pass 1 parameter, so if you need more you'll need some logic and to split them. I've done it, for example, by splitting the data with ";", and then having an external tool split up the values for me.

 

For example, something like this:

https://m.me/page?ref=xxxx--value1;value2

 

Hope this helps!

4 replies

Gustavo Boregio
Forum|alt.badge.img+6
  • Manychat Community Moderator
  • Answer
  • February 13, 2024

You can use the Ref URL with Custom Payload on the URL:

https://support.manychat.com/support/solutions/articles/36000003002-messenger-ref-url

 

You can only pass 1 parameter, so if you need more you'll need some logic and to split them. I've done it, for example, by splitting the data with ";", and then having an external tool split up the values for me.

 

For example, something like this:

https://m.me/page?ref=xxxx--value1;value2

 

Hope this helps!


  • Author
  • Up-and-Comer
  • February 13, 2024

Thank you very much! Will this method work with Telegram and WhatsApp?


Gustavo Boregio
Forum|alt.badge.img+6
  • Manychat Community Moderator
  • February 14, 2024
  • Telegram: Yes
  • WhatsApp: No
  • Instagram: Yes

You could create a workaround with WhatsApp + a keyword with a custom payload, but it's more complicated and your user would see weird content on the first WhatsApp message they'd have to send the bot - which is not good...


NicoMoney
  • Up-and-Comer
  • May 5, 2025

Hi I need to pass clickid and different utm to track and optimize my campaigns on meta... How can I do it?

Thanks in advance