# How do I connect an app like Gmail, Notion or Slack?

**Open Capabilities → Tools → Connect something, search for the app, press Connect and sign in in your browser. That's once, for good. Then type `@gmail` in any chat to hand that chat its tools. Irene keeps the two steps apart on purpose: connecting is permanent, but an app's tools join only the chats that need them, so your other chats don't pay to carry them. The app's keys stay with Irene's relay, never on your computer, and which apps you've connected never leaves it.**

When to use this: the app is one of about 1,600 that Composio covers (Gmail, Google Calendar, Notion, GitHub, Slack, Linear, Reddit…). If it isn't, [add an MCP server](https://mycelen.com/manual/guides/add-an-mcp-server) or [build your own toolkit](https://mycelen.com/manual/reference/toolkits/build-your-own-toolkit).

---

## Worked example: your inbox, in a chat

> *"What came in from clients this week? Draft replies to anything urgent."*

### 1. Connect Gmail (once)

1. **Capabilities → Tools → Connect something.** The panel reads "An app you already use, a server someone published, or a server you run yourself."
2. Search **Gmail**. The result shows it's an app and how many actions it has. Press **Connect**.
3. Your browser opens Google's sign-in. Sign in and allow access. Irene checks every 2 seconds for up to 3 minutes.
4. The row says **Gmail is connected**, with its number of tools, and tells you it **isn't attached to this chat**: type `@gmail` to load it.

From a chat, **`/connector gmail`** opens the same panel with Gmail already typed. If you ask Irene to connect it instead, it asks you first ("hands an outside service your account").

### 2. Hand it to the chat

Type **`@gmail`** in the chat box and pick it. A pill appears in your message, and Gmail's tools join **this chat only**. You can pick one action instead (`@gmail` → *fetch emails*) to give the chat just that.

Gmail has more than 15 tools, so when the agent attaches it by itself it takes a **slice**: the few it needs, like fetching and drafting.

**Why per chat:** every tool an agent holds is described to the model on every turn, used or not. A chat about a spreadsheet shouldn't pay, turn after turn, to carry your inbox.

### 3. It reads, and drafts

The agent fetches the week's mail and reads it **as structured data** (sender, subject, date, snippet), not as a web page. It sorts out the clients and drafts replies.

Results show in the chat as a card, if one is attached to the tool. Arian's **gmail_inbox** card turns the results into an inbox with a **Refresh** button, which fetches the latest 15 emails again without the agent. → [Tool UI](https://mycelen.com/manual/reference/toolkits/tool-ui)

### 4. Sending is where it stops

Each Gmail action is labelled by what it does. Sending an email, sending a draft and replying to a thread are labelled **send**.
- **Normally,** every action asks you first, unless you've trusted it for this chat.
- **In auto mode,** reads run, and a send goes to the judge, which lets it through only if **you yourself asked for that exact email**. "Draft replies" isn't "send them", so the drafts wait for you.

**How the labels are made:** when an app is connected, each of its tools is labelled once from the app's own description, and an unclear one is treated as **delete**, the most careful class. **Why:** a wrong "read" label would let a send through unchecked; a wrong "delete" label only means one extra question.

### 5. Next time

Gmail is still connected. In a new chat, `@gmail` (or the agent's own `equip attach`) brings it back in one step. If the job became a routine, dreaming may offer to save it as a recipe, or as a reflex that checks the inbox every morning on the board.

---

## Lifecycle

| stage | what happens |
|---|---|
| **Connected** | once, in your browser. Saved in `~/.irene`, checked again with the provider each time you sign in to Irene, and removed if access was revoked |
| **Attached** | per chat, by `@name` or by the agent. Removing the pill detaches it; the connection stays |
| **Expired** | if the app's access expires or fails, its row shows the error and **Connect** comes back. Press it to sign in again |
| **Disconnected** | **Disconnect** in Capabilities → Tools (or the bin icon in the connect panel). Every chat loses it |

---

## If something goes wrong

| you see | what it means |
|---|---|
| "Irene could not open the browser window. Allow pop-ups for Irene, then try again." | the sign-in link couldn't open; the link stays on the row |
| "The sign-in did not complete." | the app refused, or you cancelled |
| "The sign-in was not finished in time." | 3 minutes passed; press Connect again |
| "It refused the sign-in. Try connecting again." | the app rejected the login |
| "It did not answer in time." | the app is slow or down |
| "*source* could not be reached" | one catalogue couldn't be searched just now. It doesn't mean the app isn't there |

---

## Approvals

- **Connecting always asks,** even in auto mode: it hands an outside service your account. In the panel, pressing Connect is the asking.
- **Attaching with `@` is your own choice,** so it doesn't ask again. When the agent attaches or detaches an app itself, it asks.
- **Each action follows its own label,** as in step 4. Attaching never skips an approval.

---

## Where you see it

- **Capabilities → Tools:** your connected apps, with **Disconnect**. "Nothing connected yet." when there are none.
- **The connect panel:** search with **Apps & servers**, the list of **Your connections** ("N connected"), and the note "Keys stay off-device; which apps you connect stays local."
- **`@` in the chat box:** connected apps and their single actions.

---

## What it costs

- **Connecting:** free, and no plan limit on how many.
- **Each action:** goes through Irene's relay, which adds the app's key and meters the call as usage. About 2 seconds round trip.
- **Attached tools** add their descriptions to every turn of that chat, which is why they're attached per chat and sliced.

---

## Limits

- **Whole-app attach up to 15 tools;** bigger apps come as a slice.
- **Attachments last for one chat.** Connections last until you disconnect.
- **Sign-in screens are the app's own.** What they ask for (and how long access lasts) depends on the app.
- **A connected app is yours.** A deployed agent's visitors connect their own accounts; they never use yours.

---

## Related

- [Equip & connectors](https://mycelen.com/manual/reference/toolkits/equip-and-connectors) · [Which way to extend Irene](https://mycelen.com/manual/reference/connect/overview) · [Add any MCP server](https://mycelen.com/manual/guides/add-an-mcp-server)
- [Tool UI](https://mycelen.com/manual/reference/toolkits/tool-ui) · [Approvals & auto mode](https://mycelen.com/manual/how-it-works/approvals-and-auto-mode)

[Ask Irene about this]
