> For the complete documentation index, see [llms.txt](https://help.wotnot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wotnot.io/build/action-blocks/collect-location.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
