- Go to Automation AI > Use Cases > Dialogs and click Create a Dialog Task.
- Under Integration, select Google Maps and choose a template (e.g., Get locations by coordinates).
-
Click Proceed.
Supported Actions
| Action | Description | Method |
|---|---|---|
| Get Places by Name | Returns coordinates and address for a place name | GET |
| Get Locations by Coordinates | Returns location information from coordinates | GET |
Get Places by Name
- Install the template from Google Maps Templates.
-
The Get Places dialog task is added with:
- getPlaces – User intent to get places by name.
- place – Entity node to enter the place name.
-
getLocationService – Bot action service to find places. Optionally click Edit Request:
Click +Add Response:
Sample Response:
- getPlacesMessage – Message node to display results.
- Click Train, then Talk to Bot to test.
-
Follow prompts to find places by name.
Get Locations by Coordinates
- Install the template from Google Maps Templates.
-
The Get Locations by Coordinates dialog task is added with:
- getLocationsbyCoordinates – User intent to find locations using coordinates.
- latitude and longitude – Entity nodes for coordinate inputs.
-
getLocationsbyCoordinatesService – Bot action service to get locations. Optionally click Edit Request:
Click +Add Response:
Sample Response:
- getLocationsbyCoordinatesMessage – Message node to display results.
- Click Train, then Talk to Bot to test.
-
Follow prompts to get location details.
-
Click and expand the desired result to view location details.