---
title: "Chat with an AI"
method: POST
path: "/api/ai/chat"
tags: ["AI"]
---

# Chat with an AI

`POST /api/ai/chat`

Send messages to an AI assistant and receive a streaming response for interactive conversations.

## Request body

- object
  - `messages` string[], required — Array of messages to send to the AI assistant

## Response `200`

Default Response

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
