Integrations¶
The agent's Integrations settings are where you connect it to outside accounts and channels. Connecting each one gives the agent new tools that act on your behalf. Any installed skill that needs credentials also appears here, showing Connected or Not configured so you can configure or disconnect it.
Google Workspace¶
Connect Google so the agent can work with Calendar, Sheets, Docs, and Drive. For each service you choose an access level:
- Off — the agent can't use it.
- Read — read-only access.
- Read & write — full access.
You also choose a connection mode:
- Each user connects their own Google account — every end user links their own Google account, and the agent acts on that person's data, in chat and in the workflow runs that act as them. Each user connects (or picks an existing account from their library) in the agent's setup window, opened from the chat — or from Run, when a workflow needs it — and if someone starts using a Google-powered action before connecting, the agent also offers a connect button right in the chat — so no one has to be told where to go.
- One shared account — you connect a single Google account once, and the agent uses it for everyone who talks to the agent and for every workflow run. People who only use the agent can have it read through that account but not change anything: a write to a Google service on their behalf is refused. You, an Owner or Admin of your organization and people you gave Can edit are not held back.
You enable the integration, pick the services and levels, and either save (so end users connect from the agent's setup window or in chat) or Save & connect Google for the shared-account mode. In per-user mode, you can also connect your own account from this panel — handy for testing the integration as an end user of your own agent; to remove it, use Manage in Connections. You can see how many users have connected, edit the service selection, or disable the integration. Connecting and disconnecting happen through Google's own sign-in screen.
In workflows. A workflow step can use the same Calendar, Sheets, Docs and Drive access this panel grants — reading a sheet, adding rows, creating an event — within the level you set for each service here: Read for a step that reads, Read & write for one that writes. A workflow run acts as a person — whoever pressed Run, asked the agent in chat, or set up the schedule or webhook that started it (see Whose run it is) — and its Google steps work on that person's access. With One shared account, every run uses the one account you connected; in per-user mode the workflow's Google steps use the Google account of the person the run acts as, who connects it in the agent's setup window before their first run. The levels you set here apply to every run, whoever it acts as: a person's own account can't give a step more than Read where you chose Read. You can connect Google before or after the workflow is built — the Builder builds the step either way, and the first run tells you if anything here still needs setting. In the shared-account mode the form's button is Save & connect Google even once the account is connected: when a level you raise needs access the account hasn't granted yet, saving opens Google's own screen to approve it. Until you approve it there, the panel shows Google hasn't approved the new access yet. with an Approve in Google button, and a run that needs the new access doesn't start until you do. Picking a different Google account from your library in the form saves without opening Google; if that account hasn't granted the access yet, the panel shows the same notice and button. Spreadsheet values a workflow writes are written as text by default — a cell beginning with = is stored as those characters — and a single step can be allowed to write live formulas; see Steps that write into a spreadsheet.
Mailbox¶
Give the agent a mailbox over IMAP/SMTP so it can read, search, reply to, and send email. You choose whose mailbox it uses:
- Each user connects their own — every person who uses the agent connects their own mailbox, and the agent reads and sends from their mailbox in chat; a workflow run that acts as them sends from it too. This is the default for v2 agents. People connect it in the agent's My settings → Connections, or pick a mailbox already in their Connections library.
- Shared — my connection for everyone — the agent uses your mailbox for everyone who talks to it. Everyone can read your inbox, so use this only when that is what you want. Sending, replying, forwarding and marking a message as read are refused for people who only use the agent; you, an Owner or Admin of your organization and people you gave Can edit are not held back.
In workflows. An Agent step can use this same mailbox: list and read messages, search them, mark one as read, reply, send a new message, and forward one. A reply or a new message can include files the run already has, and reading a message can bring back an attachment. Forwarding sends the original message's text. With Each user connects their own, the run uses the mailbox of the person it acts as; with Shared — my connection for everyone, every run uses yours. On the workflow diagram the step shows the kind of account and the address, such as Email — Gmail. A step that only needs to send one prepared message — a morning report, an alert — is a Notify step instead. That mail goes out from the platform mailbox, or from a mail server you set on the step, not from this account.
To add a mailbox, a two-step wizard lets you pick your email provider (for popular providers the server addresses are pre-filled, and it points you to where to get an app password), enter the address and app password, optionally set a display name, and expand Advanced server settings for IMAP/SMTP hosts and ports. The mailbox is checked with the server before it is saved and lands in your Connections library, so other agents can reuse it. From the agent's Integrations panel you can switch the mode, pick which of your mailboxes the agent uses, Test it, or remove the mailbox from the agent (the connection stays in your library).
Telegram¶
Connect a Telegram bot and chat so the agent's workflows can send notifications to Telegram. Create a bot via @BotFather, then enter the bot token and the chat ID; the token is checked with Telegram before it is saved. Test sends a test message to that chat and reports Works only when it arrives; if Telegram refuses it — the chat ID is wrong, nobody pressed Start in a chat with the bot, the bot was blocked, or it isn't a member of the group — you see what to fix instead, and the connection is marked Chat unreachable until a test message gets through. A chat ID that is the bot's own ID (the digits before the colon in its token) is refused when you add the connection. By default notifications go to your chat whoever runs the workflow; switch the mode to Each user connects their own to send each person's runs to their own chat — each person then connects their own bot and chat in the agent's setup window, and their runs of a workflow that notifies Telegram don't start until they have. Telegram is a notification channel only — the agent does not read or answer Telegram messages.
Availability by deployment
Google and Telegram integrations can each be switched off at the deployment level, in which case they won't appear for agents on that deployment. This is a per-installation setting, not a per-agent one.
GitHub and GitLab¶
Connect your GitHub (github.com) or GitLab (gitlab.com) account so agents can work with your repositories. Open Profile → Connections and choose how to connect: Connect GitHub App or Connect GitLab to sign in on the provider's page, or Connect with a token to paste a personal access token. The platform never sees or stores your password. When the connection is ready, the provider's card shows the account in place of its connect buttons, as Connected as <your login>, with the same actions as any connection in your Connections library. For the GitHub App, Show repository access on that card lists the accounts and organizations where the App is installed, and Change repository access opens GitHub's page where you install it on another account or organization or change which repositories it reaches.
You can also connect either one from the Android, iPhone, iPad and Mac apps (Connections), and from inside the Web developer when it needs a repository, without going to your profile first.
You connect one GitHub account and one GitLab account. Signing in as a different account than the connected one is refused; to switch accounts, delete the connection, sign in to the other account on the provider's site and connect again.
There are two ways to connect. They end up in the same place, a connection in your library that agents and the Web developer can use to read and change your repositories; they differ in how access is granted and in what the Web developer's environments can do with it.
The GitHub App, or GitLab sign-in¶
- GitHub uses the platform's GitHub App. You sign in on GitHub, and then choose where to install the App: your own account or an organization you belong to, and either all of its repositories or only the ones you select. Agents reach only those repositories. If you are not an owner of the organization, GitHub sends your request to an organization owner, and the organization's repositories become available once they approve it. The App asks for read and write access to repository contents, pull requests and workflow files, and read access to checks and repository information.
- GitLab opens GitLab's own sign-in and consent screen. You grant access to the GitLab API on your behalf (repositories, branches and merge requests), permission to push to repositories, and reading of your basic profile.
The platform records the access the provider actually granted, which can be narrower than what was requested. Access tokens are stored encrypted and are renewed automatically; they are never shown to you, to the agent's model or in repository files, and they are never handed to the Web developer's environments.
A personal access token¶
Use a token when your organization does not allow the GitHub App, when you want to limit access to exact repositories and an expiry date yourself, or when you want the Web developer to work with GitHub or GitLab from the console of its environments (gh, glab and git). On the GitHub or GitLab card in Profile → Connections, choose Connect with a token. A button opens the provider's token page with the token's name and the permissions the platform needs already filled in. Create the token there, copy it, and paste it into the platform. The platform checks it with the provider before saving it, stores it encrypted and never shows it again.
Which token to create:
- GitHub, your own repositories — a fine-grained token limited to the repositories you choose.
- GitHub, an organization's repositories — a fine-grained token with the organization as its owner, limited to the repositories you need. Some organizations require an owner to approve fine-grained tokens, and some do not allow them; in that case create a classic token instead, and if the organization uses single sign-on, authorize the token for it on GitHub.
- GitLab — a personal access token. It reaches every project your account is a member of, including projects in groups.
A token is available to the agent in development environments
A token connection is also handed to your Web developer environments, so the agent can use gh, glab and git there, and so can you from the terminal. The agent can do anything the token allows, not only what you ask for in a task. The platform hides the token in command output, but that is not a guarantee. Give the token only the repositories and permissions you are comfortable with, set an expiry date, and delete it on GitHub or GitLab when you no longer need it. Connections made with the GitHub App or GitLab sign-in are never handed to environments.
Changing, replacing and disconnecting¶
If you reconnect, you have to connect as the same GitHub or GitLab account as before, whichever method you use; connecting a different account is refused so a connection never silently changes owner. To use another account, disconnect first and connect again.
Changing repository access. With the GitHub App, you decide which repositories it can reach on GitHub: choose Change repository access on the connection's row, which opens the App's page on GitHub, or go to Installed GitHub Apps in your account or organization settings. Add or remove repositories, or install the App on another organization, at any time. With a token, the access is whatever the token was created with; to change it, create a new token and replace the old one.
Replacing a token. Choose Replace token on the connection's row and paste the new token; it replaces the previous one on the same connection. A connection can also be switched from one method to the other: Connect with a token turns a GitHub App or GitLab sign-in connection into a token connection, and the sign-in button turns it back.
If access stops working. When you revoke the platform's access on GitHub or GitLab, when a token expires or is deleted, or when the provider rejects the stored authorization, the connection shows Needs reconnect (a token shows Expired — replace the token). For a GitHub App or GitLab sign-in connection, choose Reconnect on that row and approve access again in the provider's window; for a token, choose Replace token and paste a new one.
Where it is used. The Web developer built-in agent uses these connections to import a repository and to open pull or merge requests from its tasks. With a token connection it also works with GitHub or GitLab from the console of its environment. Connect the account in Profile → Connections; the Web developer's screens link you there.
Disconnecting. Deleting a GitHub or GitLab connection from your library removes it from the platform, and environments stop receiving the token.
- For a connection made with the GitHub App or GitLab sign-in, it also revokes that connection's access token on the provider's side, so the platform can no longer use it. Other connections made with the same GitHub or GitLab account, for example from another platform account of yours, keep working. If the provider can't be reached at that moment, the connection is still removed here; you can also remove the platform from your account's authorized applications on the provider's site. The GitHub App stays installed on your account or organization until you uninstall it in your GitHub settings.
- For a token connection, the platform cannot revoke the token: it stays valid on GitHub or GitLab until you delete it there. Delete it in the provider's token settings if you want it gone.
Connections library¶
On iPhone, open Settings → Connections → + → Google account to add a Google account to your library. The add menu closes before Google's sign-in screen opens. After you approve access, the account appears in your connections list.
Your account keeps a Connections library — every MCP server, Google account, mailbox, Telegram chat and GitHub or GitLab account you've connected, listed once each with the agents that use it. Each entry shows where it points (the Google account, the mailbox address, the bot and chat, or the server's host or package), a Test or Connect button, and a menu to rename it, update its secrets (a new app password or bot token for a mailbox or Telegram chat), unlink it from one agent or delete it. Add a mailbox or a Telegram chat to your library with Add mailbox / Add Telegram at the top of the page. Unlinking keeps the connection in your library: an agent that asks each user to connect their own will ask you to pick a connection again, and on your own agent the tool stays without credentials until you choose another connection in the agent's settings. It's the same place you land in when an agent asks you to connect or pick from your existing connections, so you can review or manage them outside of any single agent's chat.
In the iOS, macOS and Android apps, Test also works for a GitHub or GitLab account: it checks that the account still accepts its sign-in. If the access was withdrawn on GitHub or GitLab, the connection is marked to reconnect.
To add an MCP server to your library, use Add → Install package or Add → Manual config — the same two ways described under Connecting external tools via MCP — or Add → With the assistant, which opens the account assistant to find and connect a server for you, including signing in via OAuth where a server needs it.
Each MCP server, mailbox and Google account has an Available in Donkit chats toggle, off by default. Turning it on lets Donkit use that connection in your everyday chats, not just the agents it's attached to: call the server's tools, read and send mail from your mailbox, or work with your Google Calendar, Sheets, Docs and Drive as far as you allowed when you connected the account. If several mailboxes or Google accounts are turned on, the main chat uses the one you connected first. Telegram chats have no such toggle — they only carry workflow notifications. A shared connection of an agent that's shared or published carries a warning badge — Everyone using <agent> uses your credentials — since everyone who talks to that agent acts through your connection, in chat and in their workflow runs; if that's not what you want, switch the agent's integration to Each user connects their own so every end user connects their own instead.
For an integration set to "Each user connects their own", every end user maintains their own connection independently — connecting once in your library lets you reuse it for other agents that need the same kind of access, instead of connecting again from scratch. An integration set to "Shared (my connection)" uses the owner's single connection for everyone who talks to the agent, and for all of their workflow runs.
Personal connections and per-user environment variables require a v2 agent — v1 agents don't support them, and end users only ever see the shared-connection experience for those agents.