GPS feature (Web Chatbot)

How to retrieve your users’ GPS coordinates

➜ Discover Botnation and launch your chatbot easily!

1. Use

With your chatbot you may want to know where your users are so you can offer them services, restaurants, etc. near their location. It is possible to geolocate with precision the users of your chatbot with our GPS functionality.

This feature is available :

  • Either via the tool for adding buttons or quick replies:

The behavior is then identical to the feature for Messenger. That is, the button opens a web page that displays a map.

  • Either by a direct access in the Botnation construction interface among the features:

This adds the following feature:

A map will appear in the conversation stream. The user will be able to zoom in/out the map, move the marker and validate its position by clicking on the “Send” button.

The following variables will be updated with the user’s details:

  • {{GPS_CITY}} : the city
  • {{GPS_COUNTRY}} : the country
  • {{GPS_ADDRESS}} : the address
  • {{GPS_REGION}} : the region
  • {{GPS_LAT}} : the latitude
  • {{GPS_LONG}} : the longitude

You can use these variables to determine the distance between two coordinates with our advanced GPS tools.

Geolocation on a web chatbot is less accurate than on mobile. This means that the marker will not be perfectly placed by default when the map is loaded. Click to learn more.

2. Options

A – By clicking on the “A/B +” icon, you can rotate different versions of your feature using A/B Testing.
See the article: A/B Testing and Machine Learning

B – You can leave a comment to your collaborators about this feature by clicking on the icon (see below).
See the article: Add Comments

C – By clicking on the “?” », the online help will open on the article corresponding to this feature.

D – You can duplicate, delete or move this feature using the icons that appear on hover.

➜ Discover Botnation and launch your chatbot easily!