Skip to main content
Chatbot Builder AI provides a specialized tool to request a user’s real-time location on supported channels like WhatsApp and Telegram. This is essential for delivery services, finding nearby branches, or event check-ins.

How to Request Location

1

Add a 'Get User Data' Block

In your Flow Builder, add a Get User Data block to the conversation flow.
2

Configure the Input Type

  1. Click on the block to edit it.
  2. Set the Reply Type to Location.
  3. Enter the text prompt (e.g., “Please tap the button below to share your current location.”).
3

Save to Custom Field

Select a custom field to store the response (e.g., {{user_location}}).
This custom field will store the raw geographical object, but the system also automatically populates specific system variables for easier access.

Accessing Location Data

Once a user shares their location, you can access the specific coordinates using these system variables:
VariableDescription
{{last_latitude}}The latitude of the most recent location shared.
{{last_longitude}}The longitude of the most recent location shared.
You can use these variables to create a Google Maps link to save or send to an admin:
[https://www.google.com/maps/search/?api=1&query=](https://www.google.com/maps/search/?api=1&query=){{last_latitude}},{{last_longitude}}

Supported Channels

WhatsApp

Fully supported. Users can send their current location or select a nearby place.

Telegram

Fully supported. Users can share live location or static pins.
Channel Limitation: This feature relies on the native location-sharing capabilities of the messaging app. It is not supported on web chat or Facebook Messenger in the same native way.