# DEB-134: Integrate with connected enterprise chat systems - Microsoft Teams Chat

> **Jira:** [DEB-134](https://divami.atlassian.net/browse/DEB-134)  
> **Source Report:** [20260315.md](../../reports/jira/20260315.md)

- **Status:** Start
- **Assignee:** Unassigned
- **Priority:** Medium
- **Created:** 2026-01-23T17:02:26.001+0530
- **Updated:** 2026-02-09T15:10:39.683+0530

**Description:**

As a user I should be able to query for information, using natural language prompts, that is present in the enterprise chat systems - Microsoft Teams and that the application should be able to fetch the relevant data from connected chat systems and provide the response in natural language. Along with the response, the application should also provide a link to the source of the information (Eg. name of the chat space, date & time of chat)

**Architecture Diagram:**

```mermaid
sequenceDiagram
    participant User
    participant RT as RT Decision Agent
    participant DSA as Teams Data Source Agent
    participant Teams as MS Teams Graph API

    User->>RT: Query in natural language
    RT->>DSA: A2A: search Teams (query, user_token)
    DSA->>Teams: GET /chats/messages?search=...
    Teams-->>DSA: Chat messages + metadata
    DSA->>DSA: Rank by relevance
    DSA-->>RT: Relevant messages + source links<br/>(chat space, date & time)
    RT->>RT: Synthesize response
    RT-->>User: Natural language answer + source link
```
