> ## 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 use Gmail with Idalia AI

> Connect the Gmail plugin. Then let the agent read hire requests, update your records, and write reply drafts in one chat.

## Overview

A lot of hire work starts in the inbox. A customer asks for a crane, a site moves a delivery, or a supervisor reports a breakdown. Someone then copies the details into Idalia and writes a reply.

With the Gmail plugin, the Idalia agent can do both parts in one chat. It reads the email, creates or updates the records in Idalia, and writes a reply draft in your Gmail.

The agent never sends email. Each reply stays in your Gmail drafts until you open it and press **Send**.

The agent uses the Gmail account of the person who is in the chat. Each member connects their own account, and the agent cannot read the email of other members.

## What the plugin can do

| Can do | Cannot do |
| - | - |
| Search threads and read messages | Send email |
| List your labels | Trash, archive, or label email |
| List and read drafts | Mark email as spam |
| Create and change drafts | Open attachments |

## Before you start

* A workspace owner or admin must add the Gmail plugin one time.
* Each member then connects their own Google account.
* The plugin works in the AI chat. [Automations](https://useidalia.com/docs/workflows/automations.md) do not use it.

## Add Gmail to the workspace

An owner or admin does this one time.

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 shows **Connected** for your account.

## Connect your account

Each member does this one time.

1. Open **Idalia AI**, then **Plugins**.
2. Under **Your plugins**, click **Connect** on Gmail.
3. Sign in to Google and give access.

## Set the tool permissions

1. On Gmail, open the **…** menu and click **Tools**.
2. Set each tool to **Always allow**, **Ask first**, or **Off**.

The read tools and the draft tools start on **Always allow**. A draft is not sent, so the agent can write one without a question.

Google asks for approval before it gives email from outside your organisation, such as an email from a customer. A tool on **Always allow** gives that approval for you. Set the tool to **Ask first** if you want to see **Approve** in the chat each time.

These settings are yours. They do not change the settings of other members. For more about permissions, see [Plugins](https://useidalia.com/docs/guides/plugins.md).

## Example workflows

Open the AI chat with <kbd>Alt</kbd> + <kbd>I</kbd>. Say "Gmail" or "my email" in the request, so the agent knows to look there.

The examples use the records from [Using Idalia AI](https://useidalia.com/docs/guides/using-idalia-ai.md): the project **Barangaroo tower crane** for **ACME Civil** at **International Towers Sydney**, with assets from the **Wetherill Park** yard. Change the names to your own.

### Turn a hire request into a project

A customer emails to ask for plant. The agent reads the request and sets up the job.

```text wrap theme={null}
Find the latest email from ACME Civil about a tower crane hire.

Create the project from it with the site, dates, and customer in the email. Status Planned.

Then draft a reply that confirms we have the project booked and lists the dates.
```

If the email does not give a detail, such as the end date, the agent asks you before it creates the record.

### Check availability before you quote

Use this when a request asks "do you have one free?".

```text wrap theme={null}
Read the email from Hutchinson Builders that came in this morning.

Check if we have the plant they ask for free on those dates. Draft a reply with what is available. Do not put prices in the draft.
```

### Confirm a delivery

After you plan a transport order, send the site the details.

```text wrap theme={null}
Draft an email to the site contact on Barangaroo tower crane.

Confirm Thursday's delivery from the transport order: arrival time, the loads, and the assets on each load.
```

The draft uses the times and serial numbers from the transport order, so it matches Idalia.

### Move a delivery when the site asks

A site supervisor emails to change a time. The agent updates the record and answers in the same thread.

```text wrap theme={null}
Find the email from the ACME site supervisor about Thursday's delivery.

Make the change they ask for on the transport order. Then draft a reply in that thread that confirms the new time.
```

The chat shows **Approve** for any change in Idalia that needs approval. The reply draft goes in the same Gmail thread.

### Log a breakdown as a work order

```text wrap theme={null}
Read the email from Westmead Hospital about the 50 t crawler.

Create a work order on the project for the repair. Put the fault from the email in the notes. Assign it to me.

Draft a reply that says we have logged it and a technician will call them today.
```

### Chase off-hire dates

Get ahead of returns at the end of the week.

```text wrap theme={null}
Which allocations end in the next 7 days?

For each one, draft an email to the customer contact to confirm the off-hire date and the pickup time.
```

The agent writes one draft for each customer. Open your Gmail drafts, check each one, and send.

### Add a new customer from an email

```text wrap theme={null}
Read the last email from the new contact at Lendlease.

Add the company and the contact from the email signature: name, role, phone, and email.
```

### Catch up on a project

Use this before a site meeting or when you take over a job.

```text wrap theme={null}
Search my email for threads about Barangaroo tower crane in the last two weeks.

Summarise what the customer asked for. Tell me if anything in the email does not match the project, allocations, or transport orders in Idalia.
```

The agent shows each difference, such as a date in an email that is not on the allocation. It does not change a record unless you ask.

## Tips

* Name the sender, the project, or a date range. A narrow search gives a better result than "my latest email".
* Say "in that thread" when you want a reply. Without it, the agent can start a new draft.
* Say "Do not put prices in the draft" or similar when the reply must not include some information.
* Google holds back some email, such as spam, confidential mail, or mail that a policy of your organisation blocks. The agent then tells you how many threads it could not read. A different search does not get them.
* Read each draft before you send it. You are responsible for the email that goes out.

## Disconnect

* To stop the agent using your Gmail, open the **…** menu on Gmail and click **Disconnect**. Other members stay connected.
* To remove the access at Google as well, open your Google Account, then **Third-party apps and services**, and remove Idalia.
* An admin can turn off or remove the plugin for all members on the **Plugins** page.


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