Type to search.

Create conversation

Base URL
https://{kibana_url}
  • POST /api/agent_builder/conversations
Auth The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Planned We plan to add this functionality in a future Elastic Stack update. Subject to changes. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

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