v2

latestOpenAPI 3.0.22026-08-07295198367.7 KB
Prompt suggestion

Get 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.

post/suggestion/v2

Query parameters

kb_idstring uuid

The ID of the knowledge base to use.

The ID of the knowledge base to use.

integration_mode'TEXT' | 'AVATAR'

An enumeration.

The mode of the integration. Possible values are text and avatar.

avatar_idstring uuid

The ID of the knowledge base to use.

The ID of the knowledge base to use.

is_live_agentboolean

Whether the chat is with a live agent.

Whether the chat is with a live agent.

Request body

role'user' | 'assistant' required
contentstring required

Response

Successful Response

object required