# DEB-41: Chat-like interface for users to query in natural language and to present response

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

- **Status:** Done
- **Assignee:** Phawhan Saii Gajjalakonda
- **Priority:** High
- **Created:** 2026-01-20T13:35:46.636+0530
- **Updated:** 2026-02-18T10:11:16.826+0530

**Description:**

As an end user, logged into the application using my corporate email ID, I should be able to talk to the application via text and voice to query for any information in natural language, and the application should provide the response for the query within the same window in natural language / tables / graphical elements.

**Architecture Diagram:**

```mermaid
flowchart LR
    subgraph UI[Chat Interface - Frontend]
        A[Text Input]
        B[Voice Input]
        C[Response Panel<br/>text / table / chart]
    end
    subgraph Backend[Backend]
        D[Chat API<br/>POST /chat/message]
        E[RT Decision Agent]
        F[Data Source Agents]
    end

    A --> D
    B -->|Transcribed text| D
    D --> E
    E --> F
    F -->|Evidence + Data| E
    E -->|Streaming response| D
    D -->|SSE / WebSocket| C
```
