Skip to main content
POST
/
aiAgent
/
{id}
/
prompt-eval
Evaluate an AI agent prompt
curl --request POST \
  --url https://demo.enneo.ai/api/mind/aiAgent/{id}/prompt-eval \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "ticketId": 123,
  "variables": {}
}
'
{
  "output": "<string>",
  "tokens": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.enneo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT-based authentication

Path Parameters

id
integer
required

ID of the AI agent.

Body

application/json
prompt
string

Prompt template to evaluate (overrides the agent's stored prompt for this call).

ticketId
integer

Optional ticket id to inject ticket context into the prompt.

variables
object

Additional template variables.

Response

Successful operation

output
string

Raw LLM output.

tokens
object

Token usage breakdown.