Use Gmail from Slack
Set up Gmail with Google Workspace CLI, then ask Tag to find and summarize email from Slack.
Ask Tag to help set up Gmail access, then find an email about a launch.
This tutorial uses Google Workspace CLI (gws); an MCP connection is not needed.
This guide uses Codex and assumes you have completed your first Tag task. See Adding integrations for how Tag uses commands, skills, and tool configuration.
1. Ask Tag to set up Gmail
Open a DM with your Tag and send this request. You do not need to mention it in a DM. The example reply shows how Tag might hand the login step back to you:
Tag can attempt the setup using its available tools and permissions. If an installation needs approval or an interactive terminal, complete that step on the machine running Tag, following the Google Workspace CLI installation guide.
2. Complete authentication
If gws already has working Gmail access, reuse it. Otherwise, follow the
Google Workspace CLI authentication guide
and the setup instructions Tag provides. A Google browser login alone does
not configure gws: it also needs OAuth credentials and consent for Gmail.
Complete any browser login or local terminal steps on the machine running Tag. Then return to the DM and ask Tag to check Gmail access. Keep passwords and credential files out of the conversation.
If setup changed the command search path or environment, run tag restart
from the terminal with those changes before continuing.
3. Find an email
In a channel where Tag is available, mention it and ask. Use your own Tag's
mention in place of @Zara's Tag. The replies below are illustrative; Tag's
answer will depend on your email and request.
Use a topic you know is in your mailbox, then compare the answer with the email. If there is no match, try a more specific subject or sender.
4. Write an email
In the same thread, ask Tag to draft a reply. Include the details you want it to use:
Review the recipient, dates, and wording, then ask for any changes in the same thread. This step writes the draft in Slack; it does not create a Gmail draft or send an email.
If something is missing
| Symptom | What to check |
|---|---|
Tag cannot find gws | Run gws --version in the terminal you use to start Tag; restart after changing the environment. |
| Codex cannot find the Gmail skill | Check the workspace's .agents/skills directory and each skill's SKILL.md, then send a new request. |
| Gmail returns an authorization error | Follow the authentication guide to resolve the gws login or scope error, then ask Tag to check Gmail access again. |
| Gmail works in your terminal but fails through Tag | Check that Tag runs under the same local account with the same tool configuration and required environment variables. |
tag doctor checks Tag's configuration and core services. The Gmail request
in step 3 checks the additional tool you have installed.
Learn more about commands, supported services, and agent skills in the Google Workspace CLI GitHub repository.
Last updated
