> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kadoa.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a chat

A chat is a workflow chat or a Workspace chat. Choose one with `scope`:

| Body | What it does |
| - | - |
| `scope: "workflow"` and `workflowId` | Sends a message to the workflow's chat. Starts the chat if the workflow has none. |
| `scope: "workflow"` and `newWorkflow` | Creates a workflow from the message and starts its chat. Set `newWorkflow.productType` to `"realtime"` for a real-time monitor. |
| `scope: "workspace"` | Starts a Workspace chat. |

Workflow chats belong to your team. Workspace chats belong to the person who started them. API keys cannot start a Workspace chat.

The agent works after the response. A `202` returns the chat, thread, and workflow IDs to follow up with. Retry with the same `idempotencyKey` to avoid sending a message twice.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.