---
title: "Filling Agent Chat"
method: POST
path: "/api/filling-agent/chat"
tags: ["filling-agent"]
---

# Filling Agent Chat

`POST /api/filling-agent/chat`

SSE streaming chat endpoint for the filling agent

## Request body

- ChatRequest
  - `message` string, required
  - `conversation_id` string, nullable
  - `context` FillingAgentChatChatContext
    - `mode` string
    - `template_id` string, nullable
    - `filled_template_id` string, nullable
    - `document_ids` string[]
    - `parsed_data` object
    - `current_mappings` object
    - `cell_writes` object[]
    - `template_data` array[], nullable
      - unknown[]
        - unknown
    - `selection` object, nullable
    - `s3_key` string, nullable
    - `active_sheet` string, nullable
    - `field_definitions` object[], nullable
    - `agent_rules` string, nullable
    - `timezone` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/b6c76b02a94a/schema)
