Skip to content

Commit

Permalink
📝 (whatsapp) Add position collection example
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 12, 2024
1 parent e4a7774 commit e755f08
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/docs/deploy/whatsapp/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Binary file added apps/docs/images/whatsapp/position-bot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/images/whatsapp/position-flow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e755f08

Please sign in to comment.