---
title: "POST /teams/{team_name}/ai-onboarding/chat"
method: POST
path: "/teams/{team_name}/ai-onboarding/chat"
tags: ["ai-onboarding"]
---

# POST /teams/{team_name}/ai-onboarding/chat

`POST /teams/{team_name}/ai-onboarding/chat`

Send a chat message to the AI onboarding assistant

## Path parameters

- `team_name` string, required

## Request body

- object
  - `message` string — The user's message to send to the AI assistant
  - `function_call_outputs` FunctionCallOutput[] — Function call outputs from previous interactions
    - `name` string, required — The name of the function that was called
    - `arguments` object, required — The arguments passed to the function
    - `call_id` string, required — The unique identifier for this function call
    - `output` string, required — The output/result from the function call
  - `conversation_id` string — Optional conversation ID to continue an existing conversation
  - `chat_mode` 'web' | 'terminal' — Optional chat mode - "web" for markdown output, "terminal" for plain text output

## Response `200`

Chat response from the AI assistant

- object
  - `message` string, required — The AI assistant's response message
  - `function_call` string — The name of the function being called (if any)
  - `function_call_arguments` object — Arguments for the function call (if any)
  - `function_call_id` string — ID of the function call (if any)

## Other responses

- `400` — Bad request
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `405` — Method not allowed
- `500` — Internal Error

---

[API](https://skmtc.net/cloudquery/apis/cloudquery-openapi-spec.md) · [All operations](https://skmtc.net/cloudquery/apis/cloudquery-openapi-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudquery/cloudquery-openapi-spec/versions/4af580f9023b/schema)
