How to use the WhatsApp template to request the customer's current location
Table of Contents
Introduction
Requesting the customer's current location within a WhatsApp conversation from a chatbot configured in wolkvox Studio allows you to provide personalized information, such as directions, nearby service points, or other location-based services.
In wolkvox Studio, the "Responder chat" component includes the "location message request (api cloud)" template. This template sends a message containing a button for the customer to share their current location.
This feature uses the customer's device coordinates in a single message (not in real-time), enabling a quick and secure interaction. The user can also manually adjust the pin before sending the location, ensuring accuracy in the shared point.

Configuration
- In your chatbot flow, select the "Responder chat" component.
- Open the "Avanzado" (Advanced) tab.
- In the "Plantillas" (Templates) field, choose "location message request (api cloud)".
- Click "Cargar plantilla" (Load Template).
- In the JSON editor, customize the value of the "body_text" field with the message you want to display to the customer (e.g., "Sure! To show you the nearest branch, please share your location.").
- Click Save.
- Make sure to leave the "Continuar chatbot" (Continue Chatbot) checkbox inactive, so the flow waits for the customer's response before proceeding.

On the customer's WhatsApp, a message with the "Send location" button will appear.

When they press it, they can review or adjust their location on the map and then tap "Send your current location".

Once the customer sends their location, it will be received by the chatbot. If the flow includes a component like "Transferir a skill" (Transfer to Skill), the chat can be redirected to a human agent, who will see the map with the location directly from wolkvox Agent.
