# Current Location

## Ask Current Location Card

This typically includes a clear call-to-action, such as a button labeled "Share Location," which, when tapped, triggers WhatsApp's built-in location sharing feature. This functionality is especially useful for services that rely on location-based data to enhance customer support, delivery, or local service offerings.

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

## Question Text

Contains the prompt text asking the user to share their location.

**For example:** "Please share current location so we can send your ordered products."

You can format the text using **Bold**, *Italic*, or ~~Strikethrough~~. Use asterisks (\*) for Bold, underscores (\_) for Italic, and tildes (\~) for Strikethrough, as shown in the text below.

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

## Advanced Settings

For the validation settings, you can set the attempt limit to 1. The Validation Error Message is optional. Specify the Action on Invalid Response, and enable the Additional Validation Settings.<br>

<figure><img src="/files/0OyGvTJCrBf7HSpgJprD" alt=""><figcaption></figcaption></figure>

## Validation settings

In the additional validation settings, specify the **Minimum character, Maximum character, and Regex.** These validation settings help ensure that the location data collected is both present and usable for your application's requirements.

<figure><img src="/files/7t8tlLZsKHEFnMxFyuMW" alt=""><figcaption></figcaption></figure>

## Save Response in the Variable

You have the option to store the user response in a variable. For example, you can create a variable called `usage_location` to store the user response.

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

Once you have set all the fields required and click on **SAVE.**


---

# 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://docs.bizmagnets.ai/bot-flows/ask-questions/current-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.
