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": {},
  "previewType": "<string>",
  "message": "<string>",
  "subject": "<string>",
  "sender": "<string>",
  "history": [
    {}
  ]
}'
{
  "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

The body is of type object.

Response

200 - application/json
Successful operation

The response is of type object.