How to transfer subscriber data from website widgets to chatbots

You can link subscription forms, buttons, or social media elements to your chatbot and keep the conversation going. On top of that, save subscriber data, including UTM tags, client IDs, session IDs, email addresses, phone numbers, and names, as chatbot variables. These data points can be used for webinar signups, sharing lead magnets, or subscribing to company newsletters.

Add widgets to your website

You can add your chatbot’s links to specific website widgets so that users can subscribe to it. This applies to the following widgets:

  • Buttons, Socials, and Chatbots — triggered when users click your widget and subscribe to your chatbot;
  • Form and Payment — triggered when users take a target action and subscribe to your chatbot on the confirmation page.

To do this, add a widget in the website builder. If you're using the Form and Payment widgets, you can customize their fields in the editing panel.

Once users subscribe, their data from your website will appear in your chatbot audience automatically.

To copy your chatbot flow link, in the Chatbots section, go to your chatbot and click its flow. Under the flow name, click the three dots and select Link to launch the flow.

To transfer UTM tags to your chatbot audience, add them to your copied flow link. This link may look like this:

https://t.me/ChatBot?start=chatbot_idutm_source=website&utm_medium=homepage

Here, ChatBot is your chatbot name, chatbot_id is your flow ID, and utm_source=website&utm_medium=homepage are two manually added tags.

WhatsApp does not support variable transfer, so WhatsApp chatbots can only facilitate subscriptions.

In the Buttons and Socials widgets

Go to your widget settings, then click the pencil icon next to the button or social media platform name. Select a type from the dropdown list and paste your chatbot link.

In the Chatbots widget

Go to your widget settings, then click the pencil icon next to the messaging app. In the Subscribe to field, select Specify a link and paste your link in the next field.

Make sure you’ve pasted a link instead of only selecting a chatbot from the dropdown list.

In the Form and Payment widgets

Go to Additional form settings. In the Action after subscription field, select Go to page. In the field below, paste your chatbot flow link.

Click Save.

Once you finish customizing your page, click Publish to make your form or button visible to visitors.

Add variables to your chatbot

Go to your chatbot and select the Audience tab. Add variables with names matching your form fields. To do this, click Create variable and type in a variable name. You can copy the names from your published website page.

Values ​​will be transferred to created variables as text (the String type) regardless of your form’s field types.

The email and phone field types will be mapped to your chatbot system variables even if you don’t create dedicated variables in the Audience tab. To transfer client and session IDs, create the utm_clientid and utm_sessionid variables. UTM tags don’t require any extra setup — relevant variables will be created automatically.

All subscriber data from your website form will be available in your chatbot. If an existing chatbot subscriber lands in your bot through a website link, their data will be updated in the Audience tab.

Transferring subscriber data to chatbots allows you to analyze your audience more thoroughly and personalize conversations. Beyond that, you can create a dedicated flow where users can learn more about your product or event.

    Rate this article about "How to transfer subscriber data from website widgets to chatbots"

    User Rating: 4 / 5 (5)

    Previous

    How to add CAPTCHA to your subscription form

    Next

    How to improve or generate your website copy with AI

    Popular in Our Blog

    Try SendPulse today for free