> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Google Maps Action Templates

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

Use prebuilt Google Maps action templates to auto-create dialog tasks.

**Prerequisites:** Configure [Google Maps](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-google-maps-action) and install templates before proceeding.

To access templates:

1. Go to **Automation AI > Use Cases > Dialogs** and click **Create a Dialog Task**.
2. Under **Integration**, select **Google Maps** and choose a template (for example, **Get locations by coordinates**).
3. Click **Proceed**.

   ![Select dialog and proceed](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=862f1e4dc041d95affcf02a4d05e8239)

If no integration is configured, click **Explore Integrations** to go to the Actions page.

![Explore integrations](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-tem-img3.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=7da2f47b11db575d47dd437464d4c2d5)

***

## 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

1. Install the template from [Google Maps Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-google-maps-action#install-google-maps-action-templates).

2. The **Get Places** dialog task is added with:

   ![Get Places task added](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=0e843c9cba39b139d01fda23c42bc4db)

   * **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**:

     ![Edit request](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/google-maps-tem-img5.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=575ff19cf59919b259debf69a1d49a8a)

     Click **+Add Response**:

     ![Add Response](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/google-maps-tem-img6.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=214799825409cdf08e270ef37878af8f)

     **Sample Response:**

     ```json theme={null}
     {
       "places": [
         {
           "formatted_address": "3rd Floor, Aurobindo Galaxy Towers, Hitech City Rd, Hyderabad, Telangana 500081, India",
           "geometry": {
             "location": { "lat": 17.4368202, "lng": 78.3754289 }
           },
           "name": "Kore.ai Software India Pvt Ltd",
           "opening_hours": { "open_now": false },
           "place_id": "ChIJG6F9J8-TyzsRmATpJeu0qxE"
         }
       ],
       "status": "OK"
     }
     ```

   * **getPlacesMessage** - Message node to display results.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to find places by name.

   ![VA prompt](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/google-maps-tem-img7.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=27258d8ab5b5a315f51a2afa0e78105e)

***

## Get Locations by Coordinates

1. Install the template from [Google Maps Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-google-maps-action#install-google-maps-action-templates).

2. The **Get Locations by Coordinates** dialog task is added with:

   ![Get Locations dialog task](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/google-maps-tem-img8.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=db50375f58e95fbcf84828f0087f1ac7)

   * **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**:

     ![Edit Request](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/google-maps-tem-img9.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=75ece0da02d16527c577e43f86ed02b7)

     Click **+Add Response**:

     ![Add Response](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-tem-img10.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=5fafbfb129df618f70ae34e7332f161b)

     **Sample Response:**

     ```json theme={null}
     {
       "plus_code": {
         "compound_code": "P27Q+MCM New York, NY, USA",
         "global_code": "87G8P27Q+MCM"
       },
       "results": [
         {
           "formatted_address": "277 Bedford Ave, Brooklyn, NY 11211, USA",
           "geometry": {
             "location": { "lat": 40.7142205, "lng": -73.9612903 },
             "location_type": "ROOFTOP"
           },
           "place_id": "ChIJd8BlQ2BZwokRAFUEcm_qrcA",
           "types": ["street_address"]
         }
       ],
       "status": "OK"
     }
     ```

   * **getLocationsbyCoordinatesMessage** - Message node to display results.

3. Click **Train**, then **Talk to Bot** to test.

4. Follow prompts to get location details.

   ![VA prompts](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=862f1e4dc041d95affcf02a4d05e8239)

5. Click and expand the desired result to view location details.

   ![View location details](https://mintcdn.com/koreai/I4CfGjCj6W3ljkoZ/ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png?fit=max\&auto=format\&n=I4CfGjCj6W3ljkoZ\&q=85\&s=0e843c9cba39b139d01fda23c42bc4db)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.