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

# Using the Google Maps Action Templates

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

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

**Prerequisites:** Configure [Google Maps](/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 (e.g., **Get locations by coordinates**).
3. Click **Proceed**.

   <img src="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" alt="Select dialog and proceed" width="1074" height="907" data-path="ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png" />

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

<img src="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" alt="Explore integrations" width="892" height="906" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img3.png" />

***

## 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](/ai-for-service/integrations/actions/configuring-the-google-maps-action#install-google-maps-action-templates).

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

   <img src="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" alt="Get Places task added" width="1508" height="910" data-path="ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png" />

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

     <img src="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" alt="Edit request" width="1919" height="907" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img5.png" />

     Click **+Add Response**:

     <img src="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" alt="Add Response" width="1919" height="911" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img6.png" />

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

   <img src="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" alt="VA prompt" width="573" height="722" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img7.png" />

***

## Get Locations by Coordinates

1. Install the template from [Google Maps Templates](/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:

   <img src="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" alt="Get Locations dialog task" width="1509" height="828" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img8.png" />

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

     <img src="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" alt="Edit Request" width="1919" height="832" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img9.png" />

     Click **+Add Response**:

     <img src="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" alt="Add Response" width="1919" height="741" data-path="ai-for-service/integrations/actions/images/google-maps-tem-img10.png" />

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

   <img src="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" alt="VA prompts" width="1074" height="907" data-path="ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png" />

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

   <img src="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" alt="View location details" width="1508" height="910" data-path="ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png" />
