Sometimes it can be helpful for your conversational AI application to be able to identify the location of the person interacting with it.
In this guide, we show you how to use the event zammoLocationRequested
.
The event zammoLocationRequested
can be raised at any point in your application and returns the latitude and longitude of the person in the conversation.
<aside> 💡 This capability is only available on the Direct Line channel
</aside>
Before working through this guide, you should be proficient with UI Builder, creating activities and setting properties. Experience in creating boolean logic and condition will also be helpful.
The zammoLocationRequested
event is invoked by using a custom event in UI Builder and by specifying an event name
and value
:
Location data is returned in the following JSON object:
{
"IsSuccess": true,
"Latitude": 55.01672,
"Longitude": -1.4303355,
"Reason": ""
}