POST
/
intent
/
{intentId}
/
execute
curl --request POST \
  --url https://demo.enneo.ai/api/mind/intent/{intentId}/execute \
  --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": "john@smith.com",
  "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

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

intentId
integer
required

The id of the intent that should be executed

Body

application/json
Optional additional parameters to override/validate the existing data in the intent or trigger a response to the customer

The body is of type object.

Response

200
application/json
Option was processed

Shows the outcome (if the intent was already executed)