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

# How to connect Idalia AI to other services

> Add a plugin so the Idalia agent can use a service such as Gmail in chat. Each member connects their own account.

## Overview

A plugin gives the Idalia agent tools from a different service. With the Gmail plugin, the agent can search your email and write drafts while you work in Idalia.

A workspace admin adds a plugin one time. After that, each member connects their own account. The agent uses the account of the person who is in the chat.

The agent only gets the tools that you leave on. A tool that changes data asks you first, unless you set it to run without approval.

## Before you start

* Only a workspace owner or admin can add, turn off, or remove a plugin.
* All members can connect their own account and set their own tool permissions.
* Plugins work in the AI chat. Automations do not use them.

## Add Gmail

1. Open **Idalia AI**, then **Plugins**.
2. Under **Available**, click **Add** on Gmail. A Google page opens.
3. Sign in to Google and give access.

Google sends you back to **Plugins**. Gmail now shows **Connected**.

The Gmail plugin can search threads, read messages, list labels, and create or change drafts. It cannot send, trash, or label email. For example workflows, see [Gmail](https://useidalia.com/docs/guides/gmail.md).

Google asks for approval before it gives email from outside your organisation. Idalia gives that approval from your tool settings: a tool on **Always allow** reads that email without a question. To get a question in the chat first, set the tool to **Ask first**.

## Add a custom plugin

Use a custom plugin for a service that has an MCP server with a public `https://` URL.

1. Open **Idalia AI**, then **Plugins**.
2. Click **Add custom**.
3. Enter a name and the server URL.
4. Click **Add**. If the service has a sign-in, its page opens.

Some services do not let Idalia register itself. For those, open **Advanced settings** and enter the OAuth client ID that the service gave you. If you also enter a client secret, enter the issuer URL of the service too. Use this redirect URL at the service:

```text theme={null}
https://idalia.app/api/connectors/oauth/callback
```

Only add a plugin from a service that you trust. A plugin can put text from that service into the chat.

## Connect your account

When an admin has added a plugin, each member sees it under **Your plugins**.

1. Open **Idalia AI**, then **Plugins**.
2. Click **Connect** on the plugin.
3. Sign in to the service and give access.

## Set what the agent can do

1. On a connected plugin, open the **…** menu and click **Tools**.
2. Set each tool:

| Setting | Result |
| - | - |
| **Always allow** | The agent uses the tool without approval. |
| **Ask first** | The chat shows **Approve** before the tool runs. |
| **Off** | The agent does not get the tool. |

Tools that only read data start on **Always allow**. The Gmail draft tools also start on **Always allow**, because a draft is not sent. All other tools start on **Ask first**. If a service adds a tool or changes one, that tool goes back to **Ask first**.

These settings are yours. They do not change the tools of other members.

## Use a plugin in chat

Open the AI chat and name the service in your request.

```text wrap theme={null}
Search Gmail for the last email from ACME Civil about the Barangaroo tower crane.
```

```text wrap theme={null}
Draft a reply that confirms delivery on Thursday at 06:00. Do not send it.
```

The draft is then in your Gmail drafts. Idalia does not send it. For a tool on **Ask first**, the chat shows **Approve** with the details before the tool runs.

## Disconnect or remove

* **Disconnect**: open the **…** menu and click **Disconnect**. Idalia deletes your sign-in data for that plugin. Other members stay connected.
* **Turn off for all members**: an admin can stop a plugin without removal. The agent gets no tools from it until an admin turns it on again.
* **Remove**: an admin can remove the plugin. All members lose it.

To take away the access at the service as well, remove Idalia in the account settings of that service. For Gmail, that is the **Third-party apps and services** page of your Google Account.


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