Conversational Intelligence - Transcript OperatorResults Subresource
The Transcript OperatorResults subresource represents the Language Operator analyses for a Conversational Intelligence Transcript. OperatorResults is a subresource of a Transcript resource.
The operator_results property contains an array of results of the analyses from the Intelligence Service's attached Language Operators.
The type of the applied Language Understanding Operator. One of conversation-classify, utterance-classify, extract, extract-normalize, or pii-extract
conversation-classifyutterance-classifyextractextract-normalizepii-extracttext-generationjsonA 34 character string that identifies this Language Understanding operator sid.
^LY[0-9a-fA-F]{32}$Min length: 34Max length: 34Boolean to tell if extract Language Understanding Processing model matches results.
Percentage of 'matching' class needed to consider a sentence matches
The 'matching' class. This might be available on conversation classify model outputs.
Percentage of 'matching' class needed to consider a sentence matches.
The labels probabilities. This might be available on conversation classify model outputs.
List of text extraction results. This might be available on classify-extract model outputs.
Output of a text generation operator for example Conversation Sumamary.
A 34 character string that uniquely identifies this Transcript.
^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34The URL of this resource.
GET https://intelligence.twilio.com/v2/Transcripts/{TranscriptSid}/OperatorResults
A 34 character string that uniquely identifies this Transcript.
^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1Maximum: 1000The page token. This is provided by the API.
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 listOperatorResult() {11const operatorResults = await client.intelligence.v212.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.operatorResults.list({ limit: 20 });1415operatorResults.forEach((o) => console.log(o.operatorType));16}1718listOperatorResult();
Response
1{2"operator_results": [],3"meta": {4"page": 0,5"page_size": 50,6"first_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults?PageSize=50&Page=0",7"previous_page_url": null,8"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults?PageSize=50&Page=0",9"next_page_url": null,10"key": "operator_results"11}12}
Get the encrypted data of the OperatorResults by fetching the /Encrypted subresource.
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 fetchEncryptedOperatorResults() {11const encryptedOperatorResult = await client.intelligence.v212.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.encryptedOperatorResults()14.fetch();1516console.log(encryptedOperatorResult.locations);17}1819fetchEncryptedOperatorResults();
Response
1{2"locations": [3"https://com.twilio.us1.operatorresults.s3.amazonaws.com/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults1",4"https://com.twilio.us1.operatorresults.s3.amazonaws.com/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults2"5],6"transcript_sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults/Encrypted"8}