Create conversation

Base URL
https://{kibana_url}
  • POST /api/agent_builder/conversations
Auth

Create an empty conversation without sending a message. Returns the created conversation immediately. Use this to obtain a conversation ID before starting a chat session. To learn more about agent conversations, refer to the agent chat documentation.

Required privileges

Privileges agentBuilder:read

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

agent_id string · max length: 64

The ID of the agent to associate with the conversation. Defaults to the default Elastic AI agent.

conversation_id string · max length: 256

Optional client-supplied UUID for the conversation. Server-generated if omitted.

metadata map string to string | number | boolean | string[]

Initial metadata values. Each key must be declared by the referenced template; each value is validated against the field definition (type, options, min/max, regex, max_length). Requires template_id.

template_id string · min length: 1 · max length: 256

Optional ID of a conversation template to apply. When set, the template seeds default metadata and any caller-supplied metadata is validated against the template field definitions.

title string · max length: 500

Title for the conversation. Defaults to "New conversation".

Response

200

Indicates a successful response

application/json
Base URL
https://{kibana_url}