2
0

Add variables panel

Closes #398
This commit is contained in:
Baptiste Arnaud
2024-05-13 09:58:27 +02:00
parent 218f689269
commit 1afa25a015
11 changed files with 264 additions and 28 deletions

View File

@@ -63,7 +63,7 @@ You can customize how your bot behaves on WhatsApp in the `Configure integration
## Collect position
You can ask for the user's location with a basic [Text input block](../editor/blocks/inputs/text). It will be saved as a variable with the latitude and longitude with the following format: `<LAT>, <LONG>`.
You can ask for the user's location with a basic [Text input block](../../editor/blocks/inputs/text). It will be saved as a variable with the latitude and longitude with the following format: `<LAT>, <LONG>`.
<Tabs>
<Tab title="Flow">

View File

@@ -35,6 +35,16 @@ Likewise for last item:
`{{={{My variable}}.at(-1)=}}`
## Variables panel
You can access the variables panel by clicking on the "Variables" button in the top right corner of the editor:
<Frame>
<img src="/images/variables/variablesPanel.jpg" alt="Variables panel" />
</Frame>
In this panel you can see all the variables declared in your bot. There, you can easily rename, edit, delete your variables.
## Advanced concepts
Here is a quick video that showcases advanced concepts about variables:

View File

@@ -12,4 +12,4 @@ Once you have saved the UTM values into variables like `utm_source` and `utm_val
https://redirect-site.com?utm_source={{utm_source}}&utm_value={{utm_value}}
```
<LoomVideo id="9b6cb65aff0a485e9e021b42310b207c" />
<LoomVideo id="d298d5f4e1d04190b9768ffb6665bef8" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB