Chatbot
...
Build your chatbot
Question settings

Google Maps plugin

3min

To use a Google Maps validation in your chatbot, you'll need to use a Text Question type, and choose the Address Autocomplete (Google) validation on your Question settings

Document image


You can optimize your Google Maps results by filtering deepelly on what you need.

NOTE: This filters aplly to all the flow, so you can not have diferent filters in diferent questions

Filter addresses

Open the console, enter this script:

serviceChatData.serviceform.googlePlaces = 'address';

Save the flow.

Filter countries

Open the console, enter this script: serviceChatData.serviceform.country='es';

Change the country accordingly to your needs. The country must be passed as a two character, ISO 3166-1 Alpha-2 compatible country code.

Save the flow.

Filter regions or postal codes

Open the console, enter this script:

serviceChatData.serviceform.googlePlaces = '(regions)';

Save the flow.

Filter cities

Open the console, enter this script:

serviceChatData.serviceform.googlePlaces = '(cities)';

 Save the flow.