Docs

Integrations

Microsoft Teams

Ask about your codebase, create tasks, and follow agent work from channels, group chats, and direct messages.

Connect Microsoft Teams

Installing for an organisation? Follow the administrator installation guide to download the Teams app package, allow it, and grant image and file permissions.

Two ways in, one sign-in

Connect from Workspace Settings → Integrations → Microsoft Teams → Connect, then sign in with your work account and add the app in Teams. You can also install the app first and press Finish Setup on its card to complete the same sign-in.

Text questions need no tenant-wide consent through either path. Full image and file support requires an administrator to grant Microsoft Graph permissions.

  1. Connect from Gleamrun

    As a workspace owner or admin, open Workspace Settings → Integrations. Press Connect on the Microsoft Teams card and sign in with your work account. An existing Microsoft browser session skips the sign-in screen. Use Not you? to choose a different account.

    In Teams, add Gleamrun to a team, a group chat, or yourself. Follow the settings card's link or find it under Apps. Any install you make in the next 30 minutes connects to this workspace automatically. The bot says Connected in Teams, and settings updates without a refresh. You can close the page while waiting. Choose Stop waiting to cancel.

  2. Or add the app in Teams first

    If Gleamrun is added in Teams before it is connected, the bot posts a Finish Setup card. A workspace owner or admin selects or confirms their workspace, then presses Continue with Microsoft to complete sign-in. Later installs by linked workspace members usually connect automatically. Other colleagues must link their accounts first.

    Questions asked in Teams become Chat threads in the connected workspace. Channel threads are visible to the workspace. Group-chat threads are restricted to participants, and direct-message threads to their creator.

  3. Link your account

    If you connected the workspace, your account is already linked. When someone else asks their first question, the bot privately sends them a Link My Account link. The channel sees only a note that the bot sent a message. Open the link while signed in to the Gleamrun account you want to use. It connects your Teams identity to that account, which then runs your requests. The link works once and expires after 30 minutes.

    Say unlink to the bot to remove your Microsoft-to-Gleamrun identity link. The Team, chat, and workspace stay connected. You must link your account again before asking more questions.

What you can say

Say thisWhat happens
@Gleamrun <question>Asks about the codebase. In a direct message, type the question without mentioning the bot.
!ask <question>A quick answer without a full investigation. Mention the bot too, except in a direct message.
!deep <question>A deeper search. Slower, more thorough. Mention the bot too, except in a direct message.
mute · sleep · pause · "be quiet"Stops the bot in this thread without requiring a mention. If you do mention it, plain requests such as "sleep please" or "can you stop replying here" also work.
@Gleamrun unmuteResumes replies. In a channel or group chat, any message that mentions the bot wakes it, and it answers that message. The muted bot does not read untagged messages. In a direct message, unmute alone is enough.
(aside) · !asidePut either marker anywhere in a message to make the bot ignore it, even with a mention. Use this to discuss a run in its own thread.
@Gleamrun helpLists all of this in the thread.
!new · !new <question>Starts a fresh conversation in a group chat or a direct message, forgetting what came before. Put a question on the same line to answer it in the new conversation. In a group chat, mention the bot too. In a channel, start a new thread instead.
unlinkUnlink my account. Removes only your Microsoft-to-Gleamrun identity link. The Team, chat, and workspace remain connected, but you must link again before asking questions.
disconnectDisconnects the whole Team, including every channel, when used in a Team; in a group chat or direct message, it affects only that conversation. Workspace owners and admins only. Mention the bot too, except in a direct message.
!connectPosts a fresh Finish Setup card to connect or move this conversation to a different workspace. Mention the bot too, except in a direct message.

When an answer proposes work, the bot adds a Create this task? card. Press Create & launch to create the task and start its agent. Choose Create only to create it first, then use Launch Agent later. When the agent finishes, it posts a card in the same thread with a pull request link, if it has one.

It reads the thread you tag it in
When you mention the bot in a discussion, it reads earlier messages so questions such as “why is this failing?” have context. After it answers in a channel thread, it can answer untagged replies that clearly address it. It stays silent on side conversations and uncertain replies. Mention the bot when you want an answer. Several replies directed at the bot sent in quick succession receive one combined answer.
Conversation history and restarts
Each channel thread has a separate conversation that ends with the thread. Group chats and direct messages have no threads, so the bot keeps one ongoing conversation for follow-up questions.

The bot starts a new conversation after a day of silence in a group chat, three days in a direct message, or about 25 exchanges. It announces restarts caused by conversation length. Restarts after a gap are silent. Send !new to start a new conversation yourself. You can still open previous conversations through their Gleamrun links.

Example: Triage a bug report

When someone reports a problem in a channel, mention @Gleamrun in the thread: "customers say checkout fails since this morning, can you look?" It reads the thread so far, including pasted screenshots, then investigates your code. Connect an error tracker such as Sentry, Datadog or Grafana in your stack's MCP tab and it searches the errors and logs too, instead of waiting for someone to paste them in.

  1. Get a diagnosis

    The answer names the likely cause and the files involved. Reply in the thread to push back or ask it to check something else.

  2. Turn it into a task

    When the fix is clear, the bot follows up with a Create this task? card. Choose Create & launch, or Create only and launch later.

  3. Review the fix

    When the agent finishes, a card lands in the same thread with a link to the pull request. See Review & Merge.

Unlike Slack, Teams has no channel automation: the bot triages a report only when it is mentioned.

Send a message from an agent

In a read-only session or a task, name the teammate, group chat, or channel and the message to send. For example: “Post the release summary in our Engineering channel on Teams.” The agent sends only to a connected conversation, or to a teammate who has added the Gleamrun app in Teams. Each message ends with a Follow up in Gleamrun link.

The agent confirms delivery after Teams accepts the message. If it reports the result as unknown, check Teams before asking again: the agent never resends it.

What it does not do

  • Paste screenshots. Send files in a 1:1. Gleamrun reads screenshots pasted into channel messages, including earlier messages in the thread since its last answer. It reads up to ten per question and tells you if it skips any. In a 1:1, use the paperclip to send images, PDFs, and text files.

    Files attached or dragged into channels, group chats, or meeting chats live in SharePoint or OneDrive. A Microsoft administrator must grant Files.Read.All for Gleamrun to read them. Until then, the bot explains the limit and asks you to paste the image or send the file in a 1:1.

    An image pasted into the message that mentions Gleamrun is always read. Reading earlier images in a group or meeting chat requires Chat.Read.All.

  • Direct messages have no history to catch up on. A 1:1 with the bot is just the two of you, and it already remembers its own answers. Anything you sent while it was muted is gone.
  • No channel automation. The bot answers when addressed. It does not watch channels or offer per-channel triage or a Post to Teams automation action, as Slack does. In channels, group chats, and meeting chats, it adds an eyes reaction to the message it is answering. It removes the reaction when it posts the answer.
  • Private and shared channels have separate app lists. Open the channel's Manage channel → Apps and add Gleamrun, even if it is already on the team. These channels send only messages that directly mention the bot. It receives no untagged replies and cannot read channel history.
Disconnecting, and what is kept

Workspace owners and admins can disconnect an install with @Gleamrun disconnect in that conversation or its disconnect button in Workspace Settings → Integrations. In a Team, this disconnects every channel. In a group chat or direct message, it disconnects only that conversation. The app stays installed. Use !connect to reconnect.

To disconnect the whole workspace, use Disconnect all on the Microsoft Teams card. Every connected Team, group chat, and direct message stops working. The Teams app stays installed, and personal account links remain intact.

Removing the app from a Teams conversation also disconnects it. Adding it again reconnects it only when a member of the connected workspace adds it. Otherwise, the bot posts Finish Setup.

Disconnecting retains thread-to-task links, muted-thread settings, and Teams conversation addresses so a reinstall can return to the same threads. These records contain no message text, and the bot cannot read them after disconnection.

Your questions remain in Gleamrun Chat threads with their existing access rules. Channel conversations are visible to the workspace. Group-chat threads remain restricted to participants, and direct-message threads to their creator.

Only you can remove your identity link. Send unlink anywhere, even after the Team disconnects. This leaves every Team, chat, and workspace connection intact.