> ## Documentation Index
> Fetch the complete documentation index at: https://help.wotnot.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Collect Location

> Collects the location from the user on WhatsApp.

![Image](https://mintcdn.com/wotnot/zc_a16P1uDjl42Rz/images/image-228.png?fit=max\&auto=format\&n=zc_a16P1uDjl42Rz\&q=85\&s=b7038c6c22636a0c26741fe39434ba9a)

The Collect Location block lets you collect the user's location seamlessly on a WhatsApp chat with just a tap of a button—no typing required.

> [!NOTE]
>
> The **Collect location** block is available only on WhatsApp. For other channels, use a **Collect input** block to let users enter their address manually.

# Using the Collect location block

* **Add the Collect location block:** Drag the **Collect location** block onto the canvas and connect it to the relevant block in your chatbot flow.
* **Write the location prompt:** Enter the message you want to show when asking the user to share their location.
* **Configure the block:** Set the **error message** and **variable** to store the user's location response.

## Configurations

![Image](https://mintcdn.com/wotnot/zc_a16P1uDjl42Rz/images/image-227.png?fit=max\&auto=format\&n=zc_a16P1uDjl42Rz\&q=85\&s=e4a9a94f0c8fc35a186fd6e8724c6951)

### Question text

Enter the message you want to show when asking the user to share their location.

### Error message

Define the message what happens when the user sends text or another unsupported response instead of sharing their location.

### Save to variable

Select the variable where you want to store the location received from the user. You can use the stored location details in conditions, API calls, or other blocks in the flow.

You can save the location details separate variables.

* **Location name** — The name of the location shared by the user.
* **Address** — The address associated with the shared location.
* **Latitude** — The latitude coordinate of the shared location.
* **Longitude** — The longitude coordinate of the shared location.

## Output paths

The **Collect location** block provides separate paths based on whether a location is successfully received.

Use the appropriate output path to continue the conversation after the user shares their location or ask them to try again if a location is not received.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.