Share feedback, ideas and get community help

Updated last year

User data into chatbot without them entering it

Hi all πŸ™‚
I am trying to figure out the best way to get a users data into a chat without them having to enter it. E.g. they are a member on my wordpress website and when they click on a link in the site (they are logged in) it will open the chatbot and say Hi {{first_name}} which it will know already based on the logged in user.
Thanks!
n
B
K
8 comments
Tools like Encharge and ActiveCampaign have site tracking scripts that identify users browsing your site that have opted in to a list (ex: form submission).

Assuming you have site tracking of some sort, you can probably create a JS script that listens if a user exists and then pass the user's name into the Typebot embed script as a prefilled variable.
Woah ok this looks amazing thank you πŸ™
This is great, but I don't think I am doing it right. I am able to pass a hidden variable through using the Javascript code, but how can I dynamically change the name based on the user who is logged in? Or am I supposed to set it up in a different way as I can't seem to just get the WP Name and Email to show without doing it this way? Thanks
Attachment
CleanShot_2023-11-27_at_09.05.152x.png
actually think I found it by adding {wp_user_email} instead? Woah.... ok this is gonna be interesting! πŸ™‚
Next level Typebots incoming πŸš€
The only thing you need to do to enable this is:

  • Use the Wordpress Typebot plugin
  • Have the variables declared in your Typebot with the exact syntaxes. For the email for example, make sure your variable is spelled WP Email. These won't work: wp Email, WP email.
You don't have to manually prefill anything it should be automatic as long as you use the Wordpress plugin: https://wordpress.com/plugins/typebot
Add a reply
Sign up and join the conversation on Discord