Skip to contentSkip to navigationSkip to topbar

Retrieve a list of Operators


(information)

Legal information

Conversation Intelligence, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum(link takes you to an external page). For more details on AI usage and data, see AI Nutrition Facts for Conversation Intelligence.

Conversation Intelligence is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.

Conversations products are only available in the new Twilio Console(link takes you to an external page). If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.

GET/v3/ControlPlane/Operators

Base url: https://intelligence.twilio.com (Twilio Intelligence API)

Retrieve a list of Operators for the account, including those not attached to an Intelligence Configuration. This request returns both Twilio-authored and custom language operators.


Request

list-operators-request page anchor

Authentication

authentication page anchor
Property nameTypeRequiredPIIDescription
pageSizeinteger

Optional

Not PII

The maximum number of resources to return

Default: 50Minimum: 1Maximum: 1000

pageTokenstring

Optional

Token for pagination


200429500

List of available Language Operators

SchemaExample
Property nameTypeRequiredPIIDescriptionChild properties
itemsarray[object]

Optional

List of available Language Operators


metaobject

Optional

Retrieve a list of OperatorsLink to code sample: Retrieve a list of Operators
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function listOperators() {
11
const operators = await client.intelligence.v3.operators.list({ limit: 20 });
12
13
operators.forEach((o) => console.log(o.id));
14
}
15
16
listOperators();

Response

Note about this response
1
{
2
"items": [
3
{
4
"id": "intelligence_operator_01kcgy1ew0e9x8re6jq542zt8b",
5
"displayName": "Script Adherence",
6
"description": "Measuring whether the agent stuck to the script",
7
"version": 1,
8
"author": "SELF",
9
"prompt": "Your job is to determine if a contact center agent sticks to the script. Fetch the script from Knowledge using the Knowledge tool. Rate the interaction from 0-{{parameters.scale}}.",
10
"outputFormat": "JSON",
11
"outputSchema": {
12
"type": "object",
13
"properties": {
14
"score": {
15
"type": "integer"
16
},
17
"explanation": {
18
"type": "string"
19
}
20
},
21
"required": [
22
"score",
23
"explanation"
24
],
25
"additionalProperties": false
26
},
27
"trainingExamples": [
28
{
29
"input": "This is an example sentence which qualifies the lead as HOT.",
30
"output": "{\"score\": 5, \"explanation\": \"The agent followed the script closely and addressed all key points effectively.\"}"
31
}
32
],
33
"context": {
34
"memory": {
35
"enabled": true
36
},
37
"knowledge": {
38
"enabled": true
39
}
40
},
41
"parameters": {
42
"scale": {
43
"type": "integer",
44
"default": 5,
45
"description": "Maximum score for evaluating script adherence."
46
}
47
}
48
},
49
{
50
"id": "intelligence_operator_01kcgy1ew0e9x8re6jq542zt9c",
51
"displayName": "Sentiment Analysis",
52
"description": "Analyze customer sentiment throughout the conversation",
53
"version": 2,
54
"author": "TWILIO",
55
"outputFormat": "CLASSIFICATION",
56
"context": {
57
"memory": {
58
"enabled": false
59
},
60
"knowledge": {
61
"enabled": false
62
}
63
},
64
"parameters": {}
65
}
66
],
67
"meta": {
68
"key": "items",
69
"pageSize": 2,
70
"nextToken": "next_page_token_example"
71
}
72
}