---
title: "Start a chat with the AI assistant"
method: POST
path: "/ai_assistant/chat"
tags: ["AI Assistant"]
---

# Start a chat with the AI assistant

`POST /ai_assistant/chat`

## Request

- Base URL: `https://api.foudroyer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foudroyer.com/ai_assistant/chat`
- Auth: HTTP bearer

Chat with the AI assistant. Use the 'feature' parameter to customize the assistant's behavior: 'indexation' for indexation issues, 'seo_strategy' for SEO planning, or 'general' for general SEO questions.

## Request body

- AiAssistantChatRequestDto
  - `messages` object[], required: Array of conversation messages
  - `website_id` string, required: Website ID to work with

## Response `200`

The AI assistant chat response.

- AiAssistantChatResponseDto
  - `id` object, required
  - `role` 'user' | 'assistant', required
  - `content` object, required
  - `timestamp` string, date-time, required
  - `actions` AiAssistantActionDto[], required
    - `type` 'create_cards' | 'update_cards' | 'delete_cards', required
    - `description` string, required: Human readable explanation of why the action is needed
    - `payload` object, required: Action payload structure changes depending on `type` (create/update/delete).

---

[API](https://skmtc.dev/foudroyer/apis/foudroyer-api.md) - [All operations](https://skmtc.dev/foudroyer/apis/foudroyer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/foudroyer/apis/foudroyer-api/revisions/5b917c67e013?raw)
