Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Rule Execution webhook


The Rule Execution webhook sends language operator results to your webhook endpoint as an HTTP POST request when they're generated.

Each webhook payload includes all language operator results generated by the rule execution.

To receive this webhook, you must define a rule with a valid action (type: webhook) in your intelligence configuration.


Rule Execution webhook payload properties

rule-execution-webhook-payload-properties page anchor
PropertyTypeDescription
accountIdstring (Sid<AC>)The SID of the account that generated the webhook.
conversationIdstringThe ID of the Conversation associated with the rule execution that produced the language operator results.
intelligenceConfigurationobjectThe metadata for the intelligence configuration that generated the language operator results.
operatorResultsarray of objectsThe list of language operator results generated by the intelligence configuration.

intelligenceConfiguration

intelligenceconfiguration page anchor
PropertyTypeDescription
idstringThe ID of the intelligence configuration.
displayNamestringThe display name of the intelligence configuration describing its purpose.
versionintegerThe version of the intelligence configuration used to generate the language operator results.
ruleIdstringThe ID of the intelligence configuration rule used to generate the language operator results.
PropertyTypeDescription
idstringThe ID of the language operator result.
operatorobjectThe metadata for the language operator that generated the result.
outputFormatstringThe structure of the result returned by the language operator. Possible values are:
  • TEXT: Plain text
  • JSON: Structured JSON object
  • CLASSIFICATION: Classifier string
resultobjectThe output from the language operator execution. The structure of the object varies based on outputFormat.
dateCreatedstringThe date and time when the language operator result was created, in ISO 8601 format.
referenceIdsarray of stringsThe IDs of objects related to the language operator result.
executionDetailsobjectThe details about the conditions under which the language operator executed.
metadataobjectSystem metadata about the language operator execution, including latency and character counts.

operatorResults.operator

operatorresultsoperator page anchor
PropertyTypeDescription
idstringThe ID of the language operator.
displayNamestringThe display name of the language operator describing its purpose.
versionintegerThe version of the language operator.
parametersobject or nullThe parameter keys and values passed to the language operator at execution time. Null if not specified.

operatorResults.executionDetails

operatorresultsexecutiondetails page anchor
PropertyTypeDescription
triggerobjectThe metadata for the trigger used to execute the rule.
communicationsobjectThe range of first and last communications in the Conversation that were processed by the rule execution.
channelsarray of stringsThe communication channels included in the Conversation during the rule execution. Possible values include: SMS, VOICE, WHATSAPP, RCS, CHAT, EMAIL.
participantsarray of objectsThe metadata for the participants included in the Conversation during the rule execution.
resolvedContextobjectThe contextual data that was resolved and used during the rule execution.

operatorResults.executionDetails.trigger

operatorresultsexecutiondetailstrigger page anchor
PropertyTypeDescription
onstringThe conversational lifecycle event that triggered execution of the rule. Possible values are:
  • COMMUNICATION: Trigger the rule on each communication (or every nth communication) within the Conversation.
  • CONVERSATION_INACTIVE: Trigger the rule when the Conversation moves to the inactive state.
  • CONVERSATION_END: Trigger the rule when the Conversation moves to the closed state.
timestampstringThe date and time when the trigger was activated, in ISO 8601 format.

operatorResults.executionDetails.communications

operatorresultsexecutiondetailscommunications page anchor
PropertyTypeDescription
firststring or nullThe ID of the first communication processed by the rule execution.
laststring or nullThe ID of the last communication processed by the rule execution.

operatorResults.executionDetails.participants

operatorresultsexecutiondetailsparticipants page anchor
PropertyTypeDescription
idstring or nullThe ID of the participant.
profileIdstring or nullThe profile ID associated with Conversation Memory.
typestring or nullThe type of participant. Possible values are: HUMAN_AGENT, CUSTOMER, AI_AGENT.

operatorResults.executionDetails.resolvedContext

operatorresultsexecutiondetailsresolvedcontext page anchor
PropertyTypeDescription
memoryobject or nullThe Conversation Memory information resolved during the rule execution.
knowledgeobject or nullThe Enterprise Knowledge information resolved during the rule execution.

operatorResults.executionDetails.resolvedContext.memory

operatorresultsexecutiondetailsresolvedcontextmemory page anchor
PropertyTypeDescription
profileIdstringThe profile ID associated with Conversation Memory.
memoryStoreIdstringThe memory store ID associated with Conversation Memory.

operatorResults.executionDetails.resolvedContext.knowledge

operatorresultsexecutiondetailsresolvedcontextknowledge page anchor
PropertyTypeDescription
sourcesarray of objectsThe list of knowledge sources resolved during the rule execution.

operatorResults.executionDetails.resolvedContext.knowledge.sources

operatorresultsexecutiondetailsresolvedcontextknowledgesources page anchor
PropertyTypeDescription
baseIdstringThe ID of the knowledge base.
sourceIdstringThe ID of the knowledge source.

operatorResults.metadata

operatorresultsmetadata page anchor
PropertyTypeDescription
systemobjectSystem-level metadata about the language operator execution.

operatorResults.metadata.system

operatorresultsmetadatasystem page anchor
PropertyTypeDescription
latencyMsintegerThe execution latency in milliseconds.
resolvedModelstringThe AI model used for this execution.
inputCharactersintegerThe total number of input characters sent to the AI model. See Understanding billing for details.
outputCharactersintegerThe total number of output characters generated by the AI model.
inputTruncatedbooleanWhether the input was truncated to fit within model context limits.

Rule Execution webhook payload example

rule-execution-webhook-payload-example page anchor

The following is an example of a Rule Execution webhook payload:

Example: Rule Execution webhook payload

example-rule-execution-webhook-payload page anchor
1
{
2
"accountId": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
3
"conversationId": "conv_conversation_772a49ae-48e7-4d18-9db5-a40f6203de01",
4
"intelligenceConfiguration": {
5
"id": "intelligence_configuration_0hcq1h4zbqcpr8ceyyk4cde7kr",
6
"displayName": "Real-time Sentiment Analyzer",
7
"version": 1,
8
"ruleId": "intelligence_configurationrule_01kc6nrdc4f509sgccvd8hc27c"
9
},
10
"operatorResults": [
11
{
12
"id": "intelligence_operatorresult_01kc6nrdc4f9vrt6t2ypcy8b75",
13
"operator": {
14
"id": "intelligence_operator_01kcrvw16kfa88qvgrfmr7y151",
15
"displayName": "Sentiment",
16
"version": 2,
17
"parameters": null
18
},
19
"outputFormat": "CLASSIFICATION",
20
"result": {
21
"label": "positive"
22
},
23
"dateCreated": "2026-03-11T12:33:36.143498Z",
24
"referenceIds": [],
25
"executionDetails": {
26
"trigger": {
27
"on": "COMMUNICATION",
28
"timestamp": "2026-03-11T12:33:35.987654Z"
29
},
30
"communications": {
31
"first": "conv_communication_00000000000000000000000000",
32
"last": "conv_communication_00000000000000000000000001"
33
},
34
"channels": [
35
"SMS"
36
],
37
"participants": [
38
{
39
"id": "conv_participant_00000000000000000000000000",
40
"profileId": "mem_profile_00000000000000000000000000",
41
"type": "CUSTOMER"
42
},
43
{
44
"id": "conv_participant_00000000000000000000000001",
45
"profileId": null,
46
"type": "HUMAN_AGENT"
47
}
48
],
49
"resolvedContext": {
50
"memory": {
51
"profileId": "mem_profile_00000000000000000000000000",
52
"memoryStoreId": "mem_store_00000000000000000000000000"
53
},
54
"knowledge": {
55
"sources": [
56
{
57
"baseId": "know_knowledgebase_00000000000000000000000000",
58
"sourceId": "know_knowledge_00000000000000000000000000"
59
}
60
]
61
}
62
}
63
},
64
"metadata": {
65
"system": {
66
"latencyMs": 1842,
67
"resolvedModel": "gpt-5.4-mini",
68
"inputCharacters": 3830,
69
"outputCharacters": 150,
70
"inputTruncated": false
71
}
72
}
73
}
74
]
75
}