> ## Documentation Index
> Fetch the complete documentation index at: https://docs.min-ai.ar/llms.txt
> Use this file to discover all available pages before exploring further.

# Google app: step by step

> How to create your Google app for the Google plugins: your agent makes it with the desktop app, or you do it by hand in Google Cloud, with screenshots.

Your **Google app** is a free Google Cloud project, in your name, that all your Google plugins (Gmail, Calendar, Drive, Docs, Sheets, Analytics, Search Console, AdSense and Google Ads) use to get into your account only with your permission. You make it **only once** and it works for all your agents.

> [!NOTE]
>
> For Drive, Docs, Sheets and Calendar you don't always need it: if you choose **Only what I share**, [your space's email](https://docs.min-ai.ar/en/tools/space-google-email.md) is enough. The Google app is for **My whole Google account** and for the other Google plugins.

## With the desktop app: your agent makes it

This is the easiest way. With [the MinAI desktop app](https://docs.min-ai.ar/en/setup/desktop-app.md) open on your computer:

**1. Sign in to Google in the app's browser**

Open the app's browser and sign in with the Google account you're going to connect. You do this yourself: your agent never sees your password.

**2. Ask your agent**

In the chat, something like “Connect my Gmail” or “Make my Google app”. If the plugin's page says **Your Google app is missing**, the **Ask** your agent button takes you to its chat.

**3. Watch it work**

Your agent creates the project, sets up the permissions screen, fills in the details, publishes it, creates the client and turns on the plugin's API, all in the app's browser and without stopping to ask you anything. You can watch while it works. It takes a few minutes.

**4. Accept at Google**

At the end, your agent sends you the link to connect the plugin. There you choose what it can do and accept on Google's page: that's the only part left for you (see [Connect your account](#connect-your-account), below).

## By hand, in Google Cloud

If you don't have the desktop app or would rather do it yourself, it takes about **5 minutes**. Do it on a computer: Google's console is awkward on a phone.

Before you start, check which account you're going to connect:

* **A Gmail account** (personal): on the permissions screen you choose **External** and then you publish the app.
* **A Google Workspace account** (your company's or your domain's): you choose **Internal** and there's no need to publish it.

The button names are those of Google's console in English. The screenshots are from a test account.

### 1. Create a project

**1. Open Google's page**

[console.cloud.google.com/projectcreate](https://console.cloud.google.com/projectcreate).

**2. Name it**

In **Project name**, type **minai** and tap **Create**. Wait a few seconds.

![New Project form with the name minai and the Create button](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-project-name.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=068ce51dc8f69e413ea963afdfa0742e)

Project name: minai

**3. Check it's selected**

At the top, next to “Google Cloud”, it has to say **minai**. Under **Project info** you see its **Project ID**: you don't need to copy it, it comes inside the JSON in the last step.

![The minai project's dashboard with the Project info card and the Project ID highlighted](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-project-id.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=e7dca86cec90c41521492470af6d5ab9)

The Project ID, under Project info

### 2. Set up the permissions screen

It's what Google shows you when you connect a plugin.

**1. Open Google's page**

[console.cloud.google.com/auth/overview](https://console.cloud.google.com/auth/overview), with the **minai** project selected at the top. Tap **Get started**.

![Google Auth Platform not configured yet, with the Get started button](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-consent-start.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=faac886561eaab41f39ef583d4705b1f)

Get started

**2. App Information**

**App name**: minai. **User support email**: pick your email. Tap **Next**.

![App Information step with the name minai, the support email and Next](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-app.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=739aeff9f1b421a440ea1b42dbbe53d7)

App name and user support email

**3. Audience**

Choose **External** (Gmail account) or **Internal** (Google Workspace) and tap **Next**.

![Audience step with External selected and Next](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-audience.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=583da3a2938976252ad767c79baff281)

Audience: External

**4. Contact Information**

Type your email and tap **Next**.

![Contact Information step with the email and Next](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-contact.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=0312b52bcf5acbc81ea467671a647c92)

Contact Information

**5. Finish**

Check **I agree…** (Google API Services: User Data Policy), tap **Continue** and then **Create**.

![Finish step with the policy checkbox checked and Continue](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-agree.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=8f0369de3901a3a9906ebe46f8a9d476)

I agree… and Continue

![The four steps done and the Create button](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-create.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=af2d2a5a298bab7cac577ebe8074ae1b)

Create

You're done when you see **OAuth configuration created!**

![OAuth configuration created notice](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-done.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=35727c5bdca24726288d70ab78a2a8b6)

OAuth configuration created!

### 3. Fill in the app's details

**1. Open Google's page**

[console.cloud.google.com/auth/branding](https://console.cloud.google.com/auth/branding).

**2. App domain**

Under **App domain**, paste these three links:

| Field | Value |
| - | - |
| **Application home page** | `https://min-ai.ar` |
| **Application privacy policy link** | `https://min-ai.ar/privacidad` |
| **Application terms of service link** | `https://min-ai.ar/terminos` |

![App domain section with minai's three links](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-branding-app.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=90f97ba7d3e60b4bf50049790049f505)

App domain

**3. Authorized domain**

Under **Authorized domains**, tap **Add domain** and type `min-ai.ar`. Then tap **Save**.

![Authorized domain 1 with min-ai.ar, Add domain and the Save button](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-branding-domain.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=f28c645305c17453c2d6e327652035e2)

Add domain and Save

> [!WARNING]
>
> Don't upload a logo: with a logo, Google asks to verify the app.

You're done when you see **Branding changes saved!**

![Branding changes saved notice](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-branding-saved.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=3bd886342d37bb68b2c2fda05abddfce)

Branding changes saved!

### 4. Publish the app (Gmail accounts only)

With Google Workspace, skip this step.

**1. Open Google's page**

[console.cloud.google.com/auth/audience](https://console.cloud.google.com/auth/audience). Tap **Publish app**.

![Audience page with Publishing status Testing and the Publish app button](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-publish.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=fcde32b87dfb42a45d9f56acf55e93c0)

Publish app

**2. Confirm**

Tap **Confirm**. Google says it should be verified: there's no need, it's yours and only you use it.

![Push to production dialog with the Confirm button](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-publish-confirm.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=622388dc7e775fdc447aa2963128dbc8)

Confirm

You're done when **Publishing status** says **In production**. Publishing it keeps the connection from being cut off after 7 days.

![Publishing status In production](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-publish-done.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=10dc127e8c2c4686eea9cc766b70e1ce)

In production

### 5. Create the client

**1. Open Google's page**

[console.cloud.google.com/auth/clients/create](https://console.cloud.google.com/auth/clients/create).

**2. Application type**

Under **Application type**, choose **Web application**.

![Application type list with Web application](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-client-type.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=3ba4ecec2afe0d96783f9fcf13d6e4e6)

Web application

**3. Name and return address**

**Name**: minai. Under **Authorized redirect URIs**, tap **Add URI** and paste:

```text theme={null}
https://app.min-ai.ar/google/callback
```

Check **Use this client for an AI-powered agent** and tap **Create**.

![Client form with the name minai, the redirect URI, the AI agent checkbox and Create](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-client-form.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=c5fb8073a5490aacfef06ed089f11c00)

Name, redirect URI and Create

**4. Download the JSON**

In the **OAuth client created** window, tap **Download JSON** before **OK**: once it's closed, Google won't show the secret again.

![OAuth client created window with Download JSON and OK](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-client-created.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=8d6f108dd4c8be8f696c9f2e654bb028)

Download JSON

You're done when you have the file **client\_secret\_….json** in your downloads folder.

> [!TIP]
>
> Closed the window without downloading it? In [Clients](https://console.cloud.google.com/auth/clients), open **minai**, tap **Add secret** and download the JSON again.

### 6. Upload the JSON to minai

You upload it in either of these two places:

* On a Google plugin's connection page (the link your agent sends you), under **Or do it by hand**.
* In **Settings → Google → Create your Google app**.

Tap **Upload the JSON** and pick the file **client\_secret\_….json**. minai checks it with Google (“Checking it with Google…”) and keeps it: you won't need it again. If you prefer, tap **Or paste the ID and the secret instead** and paste the **Client ID**, the **Client secret** and, if you want, the **Project ID (optional)**.

> [!NOTE]
>
> If minai says the client is missing the redirect URI, edit the client in Google, add `https://app.min-ai.ar/google/callback` under **Authorized redirect URIs**, save and download the JSON again.

## Turning on each plugin's API

Each Google plugin needs its API turned on in your project. If your agent made the app, it already turned on the plugin's. If not, on the plugin's connection page tap **Turn on in Google**, or ask your agent:

1. Check that it shows your project and tap **Next**.
2. Tap **Enable**. If it was already on, Google says so: go on.

![Enable access to APIs: confirm the project and Next](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-apis-confirm.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=2c1268fe1150d7dfd49f613b42f8322b)

Next

![List of APIs to enable with the Enable button](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-apis-enable.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=da6d31b907d376a307c5f243bc751bbe)

Enable

![You have successfully enabled, with the APIs turned on](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-apis-done.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=8bba771e48142babe7f6d7300296bbb3)

You have successfully enabled

| Plugin | API |
| - | - |
| [Gmail](https://docs.min-ai.ar/en/plugins/gmail.md) | Gmail API |
| [Google Calendar](https://docs.min-ai.ar/en/plugins/google-calendar.md) | Google Calendar API |
| [Google Drive](https://docs.min-ai.ar/en/plugins/google-drive.md) | Google Drive API |
| [Google Docs](https://docs.min-ai.ar/en/plugins/google-docs.md) | Google Docs API and Google Drive API |
| [Google Sheets](https://docs.min-ai.ar/en/plugins/google-sheets.md) | Google Sheets API and Google Drive API |
| [Google Analytics](https://docs.min-ai.ar/en/plugins/google-analytics.md) | Google Analytics Admin API and Google Analytics Data API |
| [Google Search Console](https://docs.min-ai.ar/en/plugins/google-search-console.md) | Google Search Console API |
| [Google AdSense](https://docs.min-ai.ar/en/plugins/google-adsense.md) | AdSense Management API |
| [Google Ads](https://docs.min-ai.ar/en/plugins/google-ads.md) | Google Ads API |

## Connect your account

With your app ready and the API on, on the plugin's connection page:

**1. Choose what it can do**

**Read and act** or **Read only** (some plugins only have the second). Tap **Connect with Google**.

**2. Pick your account**

If Google asks you to pick an account, pick yours. If it says you're signing back in instead, tap **Continue**.

![Google's account picker, with the accounts blurred](https://mintcdn.com/min-ai/sMLUqKg2Kw47gVHp/images/en/google-app-consent-account.jpg?fit=max\&auto=format\&n=sMLUqKg2Kw47gVHp\&q=85\&s=dc9a4031ad4011a8776884768002551d)

Choose an account

**3. If it says it isn't verified**

If you see **Google hasn't verified this app**, it's yours: your own email shows up as the developer. Tap **Advanced** and then **Go to min-ai.ar (unsafe)**.

![Google hasn't verified this app notice with the link to go on to min-ai.ar](https://mintcdn.com/min-ai/Nh8FJRES3AyTemxD/images/en/google-app-unverified-advanced.jpg?fit=max\&auto=format\&n=Nh8FJRES3AyTemxD\&q=85\&s=70b3e2726468b5090a155ca2587fee6f)

Advanced → Go to min-ai.ar (unsafe)

**4. Accept**

If the permission has a checkbox, **check it** (it comes unchecked) and tap **Continue**. Each plugin shows its own on its page.

If you already granted that permission, Google may show **already has some access**: open the list of services to review what you allowed; there may be no checkbox to tick again.

Back in minai, it shows “**Connecting with Google…**” and then “*Your agent* now has your *plugin*”, with “Connected as *your email*. It'll write to you in the chat.” In a few seconds it takes you to the chat, or tap **Back to the chat**. If something fails, it says **It didn't connect** with the reason; if an API still needs turning on, **Turn it on at Google**, and then **Try again**.

## If something doesn't work

* **The link expired**: connection links last 24 hours. Ask your agent for a new one.
* **Replacing the client**: in **Settings → Google**, **Replace** and upload the new JSON.
* **Cutting off access**: remove the plugin from the agent and, if you want, revoke the permission from your Google account's security page.

> [card] [Your Google app](https://docs.min-ai.ar/en/tools/your-google-app.md)
>
> What it is and who uses it.

> [card] [Settings → Google](https://docs.min-ai.ar/en/reference/screens/settings-google.md)
>
> Your app, the space's email and which agents use your Google.


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