Retrieve a list of Operators
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. 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. 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.
The maximum number of resources to return
50Minimum: 1Maximum: 1000Token for pagination
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listOperators() {11const operators = await client.intelligence.v3.operators.list({ limit: 20 });1213operators.forEach((o) => console.log(o.id));14}1516listOperators();
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": false26},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": true36},37"knowledge": {38"enabled": true39}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": false59},60"knowledge": {61"enabled": false62}63},64"parameters": {}65}66],67"meta": {68"key": "items",69"pageSize": 2,70"nextToken": "next_page_token_example"71}72}