POST
/
aiAgent
/
{id}
/
preview
curl --request POST \
  --url https://demo.enneo.ai/api/mind/aiAgent/{id}/preview \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "tagId": 41,
  "channels": [
    "all"
  ],
  "name": "Change bank data (Code)",
  "description": "Customer wants to change his bank data",
  "appearance": {},
  "exampleTicketIds": [
    8,
    26
  ],
  "settings": {}
}'
{
  "success": true,
  "error": null,
  "dataOutcome": {},
  "dataOutcomeInfo": "<string>",
  "customerOutcome": {},
  "customerOutcomeType": "<string>",
  "customerOutcomeInfo": "<string>",
  "curlRequests": {}
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

id
integer
required

The id of the AI Agent that should be retrieved

Query Parameters

ticketId
integer
required

The ticketId for which to tailor the response to. A future release will also support an intent preview without linking it to a ticketId

Body

application/json
The new updated AI agent
id
integer

Unique identifier of the AI agent (unsigned integer)

Required range: x > 0
tagId
integer

Category of this ai agent

channels
string[]

Channels this ai agent is available on

name
string

The name of the AI agent visible to the user. It is also used by the LLM to validate if the intent is correctly identified

description
string

The description of the AI agent as defined by the user. It is also used by the LLM to validate if the intent is correctly identified

appearance
object
exampleTicketIds
integer[]
settings
object

Response

200 - application/json
Successful operation
success
boolean

The outcome of the preview

error
string | null

The error message if the preview failed

dataOutcome
object

The outcome of the data preview

dataOutcomeInfo
string
customerOutcome
object

The outcome of the customer preview

customerOutcomeType
string
customerOutcomeInfo
string
curlRequests
object[] | null

The curl requests that would be sent to the backend systems