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!
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.
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
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.