Skip to main content
POST
/
intent
/
{intentId}
/
execute
Execute an option for a specific intent
curl --request POST \
  --url https://demo.enneo.ai/api/mind/intent/{intentId}/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "intentId": 123,
  "code": "process_meter_reading",
  "ticketId": 1010,
  "informCustomer": false,
  "dryRun": true,
  "data": {
    "_action": "enter_into_system"
  },
  "contractId": "376189"
}'
{
"responseCode": "entered_into_system",
"success": true,
"messageLocalized": "Meter reading successfully entered into system",
"internalData": {
"requestEndpoint": "saveReadingByContractId",
"requestParams": "readingValue=21;date=2022-12-31"
},
"executedAt": 1672410060,
"userId": 1,
"sent": true,
"ticketClosed": true,
"recipient": "[email protected]",
"message": "We successfully processed your meter reading of 21 kWh dated Dec 31, 2022",
"template": "<p>Dear John,</p><p>%MESSAGE%</p><i>Mike from your service team</i>",
"txId": "c916167c94"
}

Authorizations

Authorization
string
header
required

Path Parameters

intentId
integer
required

Body

application/json
intentId
number
code
string
Example:
ticketId
number
Example:
informCustomer
boolean
default:false
Example:
dryRun
boolean
default:false
Example:
data
object
contractId
string
Example:

Response

aiAgentId
integer
Example:
success
boolean
Example:
messageLocalized
string
Example:
internalData
object
Example:
executedAt
string<DateTime>
Example:
userId
integer
Example:
sent
boolean
ticketClosed
boolean
Example:
recipient
string
Example:
message
string | null
Example:
template
string | null
Example:
sources
object[]
txId
string
Example: