Using the location item, users will be able to send you their location within the chatbot. Let us first see how this works?
How to set location item?
Click on the location item
Fill in the following details: - Pick location button label - Change location button label - Proceed button label - Longitude and Latitude
Based on the type of your bot these buttons name can be changed. For example, if your user says show offer near me then your button can be Select your location or Current location
And then comes the latitude and longitude section. Add the variable {{latitude}} and {{longitude}} in the required section. So, when the user drags the location arrow and places on their current location the bot can understand through latitude and longitude.
By doing this your location item is now set in your bot.
Note: To use the Location item within your AI Agent, you need to configure the Google maps API Key by going to the configure section.