---
title: "Get Suggestion V2"
method: POST
path: "/suggestion/v2"
tags: ["Prompt suggestion"]
---

# Get Suggestion V2

`POST /suggestion/v2`

Get chat message suggestions based on the provided messages. V2 uses tasks in celery and will return only the task id instead of result.

## Query parameters

- `kb_id` string, uuid — The ID of the knowledge base to use.
- `integration_mode` 'TEXT' | 'AVATAR' — An enumeration.
- `avatar_id` string, uuid — The ID of the knowledge base to use.
- `is_live_agent` boolean — Whether the chat is with a live agent.

## Request body

- ChatMessage[]
  - `role` 'user' | 'assistant', required
  - `content` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/dante-ai/apis/dante-ai-api.md) · [All operations](https://skmtc.net/dante-ai/apis/dante-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dante-ai/dante-ai-api/versions/38b6c9a4246d/schema)
