Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add Microsoft Teams integration backend#31

Open
ochmanski wants to merge 1 commit intomain from
feat/teams-integration
Open

feat: Add Microsoft Teams integration backend #31
ochmanski wants to merge 1 commit intomain from
feat/teams-integration

Conversation

@ochmanski
Copy link
Member

@ochmanski ochmanski commented Aug 22, 2025

Summary

  • Implements complete Microsoft Teams integration backend following existing Slack/Discord patterns
  • Supports multi-tenant authentication allowing any Teams organization to connect
  • Includes full data sync capabilities with Microsoft Graph API

Changes

Database Schema

  • Added 5 new tables for Teams entities (integration, channels, users, events, event vectors)
  • Integrated with existing member and organization tables
  • Added proper indexes and relations

Workflows & Sync

  • SyncTeamsWorkflow - Orchestrates syncing of teams, channels, users, and messages
  • DeleteTeamsIntegrationWorkflow - Handles cleanup when integration is removed
  • Step functions for fetching data via Microsoft Graph API
  • Delta query support for efficient incremental syncing
  • AI-powered message summarization

API Integration

  • OAuth 2.0 flow with Azure AD (multi-tenant support)
  • Token refresh mechanism
  • API handlers for Teams operations (list channels, users, trigger sync)
  • Proper error handling and status reporting

Queue Processing

  • Webhook event processing for real-time updates
  • Message processing and summarization queue
  • Integration with existing queue infrastructure

Configuration Required

Add these environment variables:

TEAMS_CLIENT_ID=<Azure AD App Client ID>
TEAMS_CLIENT_SECRET=<Azure AD App Client Secret>

Test Plan

  • OAuth flow connects successfully to Teams
  • Teams/channels sync properly
  • Users are fetched and stored correctly
  • Messages sync with proper threading
  • Token refresh works when tokens expire
  • Webhook events are processed
  • AI summarization generates for Teams messages

🤖 Generated with Claude Code

Implements complete Microsoft Teams integration following existing patterns from Slack/Discord:
- Database schemas for Teams entities (integration, channels, users, events, vectors)
- Sync workflows with Graph API integration for fetching teams, channels, users, and messages
- OAuth 2.0 authentication flow with Azure AD (multi-tenant support)
- API handlers for Teams operations and token refresh
- Queue processors for webhook events and message processing
- AI-powered event summarization
- Delta query support for efficient syncing
The implementation supports any Microsoft Teams organization (multi-tenant) without restrictions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /