--- title: Using geolocation in Virtual Agent description: Topic authors can include a pre-built topic block called Geolocation in conversations with users. The Geolocation topic block retrieves the latitude and longitude coordinates of the user's location. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/conversational-interfaces/virtual-agent/va-geolocation.html release: australia product: Virtual Agent classification: virtual-agent topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 3 breadcrumb: [Maximizing code reuse with topic blocks, Exploring other Virtual Agent features, Build and deploy, Virtual Agent, Conversational Interfaces] --- # Using geolocation in Virtual Agent Topic authors can include a pre-built topic block called Geolocation in conversations with users. The Geolocation topic block retrieves the latitude and longitude coordinates of the user's location. Topic authors can add this topic block to larger conversation flows. With the user's permission, the topic block retrieves the user's latitude and longitude location coordinates. Knowing these coordinates can help topic authors respond to customer requests or issues faster and more efficiently. For example, you may need to send a technician to a customer site to resolve an incident. To quickly respond to the customer, you need to know which technicians are located nearby so you can dispatch the appropriate technician for the customer's location. For general information about how geolocation is used on the ServiceNow platform, see [Geolocation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/c_Geolocation.md). ## Share location details The first time a user, such as a field technician, uses the Geolocation topic block in a conversation, they are asked if they would like to share details about their location. \[Omitted image "va-geolocation-approval.png"\] Alt text: The chatbot asks, "Would you like to share your location?" Choices are No and Yes.
| User choice | Topic block response |
|---|---|
| Yes | The topic block sends the user's latitude and longitude coordinates from the server to the user's device.If users want to allow the ServiceNow instance to access their location, users may then see operating system-specific or browser-specific prompts. Examples of such prompts include the following: - Allow \(always\) - Allow \(one time only\) - Block \(don't allow\) Depending on the user's response, they may see this prompt one or more times, or they may never see it. |
| No | The topic block does not retrieve user coordinates and displays a relevant error message for the topic author to resolve. The error is logged as an output parameter. For details, see [Geolocation topic block parameters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-platform-topicblocks.md). |