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

# Configuring the Google Maps Action

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

Connect the Platform to Google Maps to find locations and places. See [Google Maps documentation](https://developers.google.com/maps/documentation) for details.

***

## Supported Authorization Types

The platform supports Basic Auth for Google Maps integration. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for details.

| Authorization Type                       | Supported |
| ---------------------------------------- | --------- |
| Pre-Authorize the Integration            | Yes       |
| Allow Users to Authorize the Integration | Yes       |

***

## Prerequisites

Before enabling the Google Maps action:

* Create a Google Maps account. See [Google Maps documentation](https://developers.google.com/maps/documentation).
* Create a custom app on the Google Maps admin page.
* Copy your Google Maps **API Key**.

***

## Enable the Google Maps Action

Go to **App Settings > Integrations > Actions** and select **Google Maps** from the Available actions list.

### Pre-authorize the Integration (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img2.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=832f3aabeabd55c41c911740d1ad68ce" alt="Auth type" width="1063" height="828" data-path="ai-for-service/integrations/actions/images/google-maps-action-img2.png" />

3. Enter your **API Key**.

4. Click **Enable**. On first configuration, the Integration Successful pop-up appears.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img3.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=284f79ca799965e5978c2504a7e8e868" alt="Enable integration" width="789" height="303" data-path="ai-for-service/integrations/actions/images/google-maps-action-img3.png" />

<Note>The Google Maps action moves from Available to Configured.</Note>

5. Click **Skip for Now** to install templates later.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img4.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=f747eca89112182a799a3136677bba4a" alt="Skip for now" width="789" height="303" data-path="ai-for-service/integrations/actions/images/google-maps-action-img4.png" />

### Allow End Users to Authorize (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

3. Click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img5.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=7f1e470119421d7559917770fe19acc9" alt="Create new auth" width="1079" height="824" data-path="ai-for-service/integrations/actions/images/google-maps-action-img5.png" />

4. Select the authorization mechanism (for example, **API Key**).

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img6.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=46d0d09b5e27121542053c740a65805c" alt="Auth mechanism" width="1079" height="907" data-path="ai-for-service/integrations/actions/images/google-maps-action-img6.png" />

   See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for creating Basic Auth profiles.

5. Enter the following credentials:

   | Field                   | Description                                  |
   | ----------------------- | -------------------------------------------- |
   | Name                    | Name for the Basic Auth profile              |
   | Tenancy URLs            | Select Yes if tasks require tenancy URLs     |
   | Base URL                | Base tenant URL for the Google Maps instance |
   | Authorization Check URL | Auth check URL                               |
   | Description             | Description of the auth profile              |

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img7.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=d7b0c18e9cf8a25436933cfe6009c994" alt="Auth credentials" width="618" height="503" data-path="ai-for-service/integrations/actions/images/google-maps-action-img7.png" />

6. Click **Save Auth**, then select the new profile.

7. Click **Enable**. The Integration Successful pop-up appears.

***

## Install Google Maps Action Templates

1. On the Integration Successful dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img8.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=1f47f088d89c731ccaed3447141d3cfe" alt="Explore templates" width="789" height="303" data-path="ai-for-service/integrations/actions/images/google-maps-action-img8.png" />

2. Click **Install** for the desired template.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img9.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=3369a9a0bd263245d4f1adc8ce680d40" alt="Install" width="790" height="504" data-path="ai-for-service/integrations/actions/images/google-maps-action-img9.png" />

3. Click **Go to Dialog** to view the dialog task.

4. A dialog task is auto-created for each installed template.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img10.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=626bf5b684f8054279771deb7de2adf2" alt="Dialog tasks created" width="1597" height="375" data-path="ai-for-service/integrations/actions/images/google-maps-action-img10.png" />

5. Alternatively, create a new dialog task, select the Google Maps integration, choose a template (for example, **Get location by coordinates**), and click **Proceed**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=71a390891a6844d2b8046d6a06400e73" alt="Create new dialog" width="1074" height="907" data-path="ai-for-service/integrations/actions/images/google-maps-action-img11-tem-img2.png" />

6. The canvas opens with all required entity nodes, service nodes, and message scripts.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/fV6yaUBuv4qRDL2T/ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png?fit=max&auto=format&n=fV6yaUBuv4qRDL2T&q=85&s=7cb48f41dcfba7857ef536f6c07403da" alt="Dialog task canvas" width="1508" height="910" data-path="ai-for-service/integrations/actions/images/google-maps-action-img12-tem-img4.png" />
