The community member added a Typebot bubble to their website and now wants to add a separate button that can prefill variables in the Typebot. Another community member suggested using the prefilledVariables option, but the original poster wanted a way to have different buttons that each prefill different variables. A third community member provided a solution using Typebot.setPrefilledVariables() and Typebot.open() within an immediately-invoked function expression. This solution was confirmed to work by the original poster.
I did, @Baptiste. For prefilling variables to URL and embedding code, it's clear. But I want to have different buttons on my websites that open the same Typebot. And each button automatically fills in different variables. Is there a way to do it?