✨ Introduce bot v2 in builder (#328)
Also, the new engine is the default for updated typebots for viewer Closes #211
This commit is contained in:
@@ -93,7 +93,7 @@ window.location.href
|
||||
|
||||
:::caution
|
||||
It will not give you the parent URL if you embed the bot on your site.
|
||||
A more bulletproof option is to pass the URL as a hidden variable in the embed code options. You can find an example [here](/embed/html-javascript#additional-configuration).
|
||||
A more bulletproof option is to pass the URL as a prefilled variable in the embed code options. You can find an example [here](/embed/html-javascript#additional-configuration).
|
||||
:::
|
||||
|
||||
## Extract a cookie
|
||||
|
||||
@@ -34,12 +34,12 @@ Then the variables will be prefilled as following:
|
||||
- Email => test@test.com
|
||||
- First name => John
|
||||
|
||||
Prefilling variables using the embed library is even easier. You need to add an object named `hiddenVariables` that contains a dictionary of your values. For example:
|
||||
Prefilling variables using the embed library is even easier. You need to add an object named `prefilledVariables` that contains a dictionary of your values. For example:
|
||||
|
||||
```js
|
||||
Typebot.initBubble({
|
||||
url: `https://viewer.typebot.io/typebot-support`,
|
||||
hiddenVariables: {
|
||||
typebot: `my-bot`,
|
||||
prefilledVariables: {
|
||||
Email: 'test@test.com',
|
||||
'First name': 'John',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user