# Collect location

You can now **collect user location seamlessly on WhatsApp** using a native block that allows users to share their location with just a tap of a button—no typing required.

<figure><img src="/files/K34uQupmNCeFGJe2UgnQ" alt=""><figcaption></figcaption></figure>

### Question

The question to be asked when collecting the location from the user. This question will be followed with a "Send location" button.&#x20;

<figure><img src="/files/t4dGnu4XZqkvXtpqWMrT" alt=""><figcaption></figcaption></figure>

### Error message

The error message to be sent when the user sends something unexpected than the location details i.e they closed the location input screen and typed something random.

### Location response

When the user submits the location, we receive the following details:

* Location name
* Address
* Latitude
* Longitude

You can map these fields to your variables to use the collected data for API calls for anything else.

<figure><img src="/files/Jay8ASovoavTG3mlVJxc" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.wotnot.io/build/action-blocks/collect-location.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
