📝 (whatsapp) Add position collection example
This commit is contained in:
@ -61,6 +61,31 @@ You can customize how your bot behaves on WhatsApp in the `Configure integration
|
||||
|
||||
**Start bot condition**: A condition that will be evaluated when a user starts a conversation with your bot. If the condition is not met, the bot will not be triggered.
|
||||
|
||||
## 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>`.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Flow">
|
||||
<Frame style={{ maxWidth: '400px' }}>
|
||||
<img
|
||||
src="/images/whatsapp/position-flow.jpg"
|
||||
alt="Position collection flow"
|
||||
className="rounded-lg"
|
||||
/>
|
||||
</Frame>
|
||||
</Tab>
|
||||
<Tab title="Bot">
|
||||
<Frame style={{ maxWidth: '400px' }}>
|
||||
<img
|
||||
src="/images/whatsapp/position-bot.png"
|
||||
alt="Position collection bot"
|
||||
className="rounded-lg"
|
||||
/>
|
||||
</Frame>
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## FAQ
|
||||
|
||||
<AccordionGroup>
|
||||
|
BIN
apps/docs/images/whatsapp/position-bot.png
Normal file
BIN
apps/docs/images/whatsapp/position-bot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 933 KiB |
BIN
apps/docs/images/whatsapp/position-flow.jpg
Normal file
BIN
apps/docs/images/whatsapp/position-flow.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
Reference in New Issue
Block a user