Create a conversation Beta
Create a new Security AI Assistant conversation.
Body Required
-
apiConfig object
LLM API configuration.
Additional properties are allowed.
-
category string
The conversation category.
Values are
assistant
orinsights
. -
excludeFromLastConversationStorage.
-
id string
The conversation id.
-
isDefault boolean
Is default conversation.
-
messages array[object]
The conversation messages.
-
replacements object
Replacements object used to anonymize/deanomymize messsages
-
The conversation title.
POST
/api/security_ai_assistant/current_user/conversations
curl \
-X POST https://<KIBANA_URL>/api/security_ai_assistant/current_user/conversations \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"apiConfig": {
"actionTypeId": "string",
"connectorId": "string",
"defaultSystemPromptId": "string",
"model": "string",
"provider": "OpenAI"
},
"category": "assistant",
"excludeFromLastConversationStorage": true,
"id": "string",
"isDefault": true,
"messages": [
{
"content": "string",
"isError": true,
"reader": {},
"role": "system",
"timestamp": "string",
"traceData": {
"traceId": "string",
"transactionId": "string"
}
}
],
"replacements": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"title": "string"
}
Response examples (200)
{
"apiConfig": {
"actionTypeId": "string",
"connectorId": "string",
"defaultSystemPromptId": "string",
"model": "string",
"provider": "OpenAI"
},
"category": "assistant",
"createdAt": "string",
"excludeFromLastConversationStorage": true,
"id": "string",
"isDefault": true,
"messages": [
{
"content": "string",
"isError": true,
"reader": {},
"role": "system",
"timestamp": "string",
"traceData": {
"traceId": "string",
"transactionId": "string"
}
}
],
"namespace": "string",
"replacements": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"summary": {
"confidence": "low",
"content": "string",
"public": true,
"timestamp": "string"
},
"timestamp": "string",
"title": "string",
"updatedAt": "string",
"users": [
{
"id": "string",
"name": "string"
}
]
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}