Integrations

Microsoft Teams

View as Markdown

With Grok Build's integration for Microsoft Teams, you and your teammates can collaboratively work on tasks and steer multiplayer Cloud Agents directly from Microsoft Teams by mentioning @Build with a prompt. The app is still named Cursor in Microsoft Teams.

Get started

Installation

  1. Go to Grok Build integrations

  2. Click Connect next to Microsoft Teams or go to the Microsoft Marketplace listing

  3. Install the Cursor app in your Microsoft Teams workspace

  4. After installing in Microsoft Teams, you'll be redirected back to Grok Build to finalize setup

    1. Connect GitHub, GitLab, Azure DevOps, or Bitbucket, if you haven't connected a repository provider yet
    2. Enable usage-based pricing
    3. Confirm privacy settings
  5. Start using Cloud Agents in Microsoft Teams by mentioning @Build

Each person links their own Microsoft Teams account to a Grok Build account. Cloud Agents and Team Bots in your Microsoft organization share that link.

  1. Message the bot in Microsoft Teams. If your account isn't linked, it sends you a Link Account card in a 1:1 chat
  2. Sign in to cursor.com as the Grok Build account you want to link. If cursor.com shows a different account, click Not you? Switch account
  3. Click Link Account on the card

If the bot can't send you the card, it tells you to open a 1:1 chat with it. If your Grok Build team admin hasn't connected Microsoft Teams yet, ask them to connect it in the Grok Dashboard, then message the bot again.

To check or remove your link with a Team Bot, send it account. To unlink from Cloud Agents, mention @Build unlink.

How to use

Mention @Build and give your prompt. Grok Build automatically picks the right repository, model, base branch, or named cloud agent environment based on your message, the thread context, and your recent agent activity.

Agents started in Microsoft Teams run under a team-owned service account by default so teammates can steer the same thread together, while every message still uses the sender's own MCP connections, approvals, PR and commit credit, and billing.

To use a specific repository, include its name in your message:

  • @Build in cursor-app, fix the login bug
  • @Build fix the auth issue in backend-api

To use a specific model, mention it in your message:

  • @Build with opus, fix the login bug
  • @Build use grok-4.7 to refactor the auth module

To use a named environment, mention it in your message or add env=<name>:

  • @Build use the Platform environment to update the shared API
  • @Build env=Platform update the shared API
  • @Build env="Platform Services" update the shared API

Commands

Run @Build help for an up-to-date command list.

CommandDescription
@Build [prompt]Start a Cloud Agent. In channel threads with existing agents, adds follow-up instructions. Who can follow up is controlled by Team follow-ups, not ownership alone.
@Build helpShow setup and usage help
@Build unlinkDisconnect your Grok Build account from Microsoft Teams
@Build disconnectDisconnect your Grok Build account from Microsoft Teams
@Build [options] [prompt]Set the repository, environment, branch, or model for a run

Options

Customize Cloud Agent behavior with these options:

OptionDescriptionNatural language exampleInline example
repoUse a specific repositoryin acme/web-apprepo=acme/web-app
env / environmentUse a named cloud agent environmentuse the Platform environmentenv="Platform Services"
branchUse a specific base branchwork from the main branchbranch=main
modelUse a specific modelwith opusmodel=opus

Syntax formats

Natural:

Bash

@Build with opus, fix the login bug in backend-api

Inline:

Bash

@Build env="Platform Services" branch=dev model=opus Fix the login bug

Option precedence

When combining options:

  • Explicit values override defaults
  • Inline options override model and repository values inferred from your message
  • Grok Dashboard settings apply when no value is specified or inferred
  • env takes precedence over repo when both are present

The bot parses options from anywhere in the message, allowing natural command writing.

Using thread context

Cloud Agents understand and use context from existing Microsoft Teams discussions. This is useful when your team discusses an issue and you want the agent to make the code change based on that conversation.

Cloud Agents read the relevant thread or chat context when invoked, understanding and acting on your team's discussion.

Follow-up instructions

In channel threads, reply in the agent's thread with another @Build mention to add follow-up instructions.

By default, agents started in Microsoft Teams run under a team-owned service account rather than your personal account. Because the agent runs as a service account, no person's personal secrets, personal files, or personal tokens enter the machine. That lets teammates safely collaborate in the same thread when Team Followups allows service account agents.

Every message in the thread counts as the work of the person who sent it, not the person who started the thread. For your turn:

  • The agent uses your own MCP connections.
  • Pull requests the agent opens are opened as you.
  • Commits the agent makes give you credit.
  • Approval prompts route to you, and usage is billed to you.

The person who started an agent can always follow up on it. In personal chats and group chats, continue the conversation from Grok Build using Open in Web or Open in Desktop.

An agent falls back to running as the person who started it when it launches on a personal self-hosted machine, uses a personal environment, runs in a team that restricts Cloud Agent access, or targets a repository whose GitHub App isn't linked to the team.

Status updates & handoff

When Cloud Agent starts, Microsoft Teams shows a launch card with the selected repository, model, and branch. The card includes options to Open in Web, Open in Desktop, and Switch repository.

When Cloud Agent completes, you get a Microsoft Teams notification with the result. If the agent opened a pull request, the card includes an option to view the PR.

Managing agents

Manage Cloud Agents using actions on the Microsoft Teams cards.

Available options:

  • Add follow-up: Add instructions to an existing agent from a channel thread
  • Switch repository: Relaunch the same request against a different repository
  • Delete: Stop and archive the Cloud Agent
  • Open in Web: Continue in the web interface
  • Open in Desktop: Continue in the Agents Window
  • Update settings: Manage your Cloud Agent defaults
  • Give feedback: Send feedback about agent performance

Configuration

Manage default settings and privacy options from Grok Dashboard -> Cloud Agents.

Settings

Default model

Used when no model is specified in your message. See settings for available options.

Repository selection

Grok Build automatically selects the right repository based on:

  1. Your message content: repository names or keywords in your prompt
  2. Recent agent activity: repositories you've used recently
  3. Default repository: fallback when no match is found

To use a specific repository, include its name in your message. For example: @Build in mobile-app, fix the login bug.

Base branch

Starting branch for Cloud Agent. Leave blank to use the repository's default branch, often main.

Routing behavior

Grok Build evaluates your Microsoft Teams message in this order:

  1. Explicit options: repo, env, branch, and model values in your prompt
  2. Your message content: repository names, model names, or branch names in your prompt
  3. Recent agent activity: repositories you've used recently
  4. Default repository: fallback when no match is found

Privacy

Cloud Agents support Privacy Mode.

Read more about Privacy Mode or manage your privacy settings.

Privacy Mode (Legacy) is not supported. Cloud Agents require temporary code storage while running.

Display agent summary

Display agent summaries and diff images. They may contain file paths or code snippets. You can turn this on or off.

Permissions

Grok Build requests these Microsoft Teams permissions for Cloud Agents to work in your workspace:

PermissionDescription
identityIdentifies the Microsoft Teams user starting or managing an agent
messageTeamMembersSends direct messages for setup, account linking, and notifications
ChannelMessage.Read.GroupReads channel messages and replies for thread context
ChatMessage.Read.ChatReads personal and group chat messages for conversation context
ChannelSettings.Read.GroupReads channel metadata, including channel names and descriptions
TeamSettings.Read.GroupReads team metadata, including team names and descriptions

The Cursor app supports personal chats, team channels, and group chats in Microsoft Teams.

Disclaimer

Grok Build can make mistakes. Please double-check code and responses.

Privacy policy

For information about how Grok Build collects, uses, and protects your data, see the Privacy Policy.


Last updated: November 27, 2026