Teams Integration

Ask questions about your codebase directly in Microsoft Teams

Overview

The Microsoft Teams integration lets your team ask questions about your codebase directly in Teams. Mention the bot in any channel or chat and get instant, source-referenced answers.

Quick Start

1

Connect Microsoft Teams

Go to Teams Bots and click "Connect Teams". You'll be redirected to Microsoft to authorize the app for your organization.

2

Create a Teams Bot

After connecting, create a new Teams Bot. Configure the system prompt and select which repository the bot should answer questions about.

3

Add the Bot to Channels

In Microsoft Teams, add the bot to any channel or group chat where you want it to respond to questions.

4

Start Asking Questions

Mention the bot with your question:

@Context How do we handle authentication?

@Context What does the OrderService do?

@Context Show me the deployment pipeline

Features

Threaded Conversations

The bot responds in threads to keep channels organized. Follow-up questions in the same thread maintain context from the conversation.

Code Snippets

Responses include syntax-highlighted code snippets with file paths and line numbers for easy navigation to the source.

Repository Selection

Each Teams Bot can be configured to answer questions about a specific repository, letting you create dedicated bots for different codebases.

Tip

Create separate Teams Bots for different repositories or teams, each with tailored system prompts for their specific domain.

Best Practices

  • Be specific in your questions — include relevant context
  • Use technical terms that appear in your codebase
  • Ask follow-up questions in threads to maintain context
  • Create dedicated channels for code questions (e.g., #ask-codebase)