# Conversational Intelligence - Transcript OperatorResults Subresource

The Transcript OperatorResults subresource represents the [Language Operator](/docs/conversational-intelligence/language-operators) analyses for a Conversational Intelligence Transcript. OperatorResults is a subresource of a [Transcript resource](/docs/conversational-intelligence/api/transcript-resource).

The `operator_results` property contains an array of results of the analyses from the Intelligence Service's [attached Language Operators](/docs/conversational-intelligence/api/operator-attachment-subresource#create-an-operator-attachment).

## Transcript OperatorResults Properties

```json
{"type":"object","refName":"intelligence.v2.transcript.operator_result","modelName":"intelligence_v2_transcript_operator_result","properties":{"operator_type":{"type":"string","enum":["conversation-classify","utterance-classify","extract","extract-normalize","pii-extract","text-generation","json"],"description":"The type of the applied Language Understanding Operator. One of conversation-classify, utterance-classify, extract, extract-normalize, or pii-extract","refName":"operator_result_enum_operator_type","modelName":"operator_result_enum_operator_type"},"name":{"type":"string","nullable":true,"description":"The name of the applied Language Understanding."},"operator_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^LY[0-9a-fA-F]{32}$","nullable":true,"description":"A 34 character string that identifies this Language Understanding operator sid."},"extract_match":{"type":"boolean","nullable":true,"description":"Boolean to tell if extract Language Understanding Processing model matches results."},"match_probability":{"type":"number","nullable":true,"description":"Percentage of 'matching' class needed to consider a sentence matches"},"normalized_result":{"type":"string","nullable":true,"description":"Normalized output of extraction stage which matches Label."},"utterance_results":{"type":"array","nullable":true,"description":"List of mapped utterance object which matches sentences."},"utterance_match":{"type":"boolean","nullable":true,"description":"Boolean to tell if Utterance matches results."},"predicted_label":{"type":"string","nullable":true,"description":"The 'matching' class. This might be available on conversation classify model outputs."},"predicted_probability":{"type":"number","nullable":true,"description":"Percentage of 'matching' class needed to consider a sentence matches."},"label_probabilities":{"nullable":true,"description":"The labels probabilities. This might be available on conversation classify model outputs."},"extract_results":{"nullable":true,"description":"List of text extraction results. This might be available on classify-extract model outputs."},"text_generation_results":{"nullable":true,"description":"Output of a text generation operator for example Conversation Sumamary."},"json_results":{"nullable":true},"transcript_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^GT[0-9a-fA-F]{32}$","nullable":true,"description":"A 34 character string that uniquely identifies this Transcript."},"url":{"type":"string","format":"uri","nullable":true,"description":"The URL of this resource."}}}
```

## Get a Transcript OperatorResults subresource

`GET https://intelligence.twilio.com/v2/Transcripts/{TranscriptSid}/OperatorResults`

### Path parameters

```json
[{"name":"TranscriptSid","in":"path","description":"A 34 character string that uniquely identifies this Transcript.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^GT[0-9a-fA-F]{32}$"},"required":true}]
```

### Query parameters

```json
[{"name":"Redacted","in":"query","description":"Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True.","schema":{"type":"boolean"},"examples":{"readFull":{"value":"True"}}},{"name":"PageSize","in":"query","description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","schema":{"type":"integer","format":"int64","minimum":1,"maximum":1000}},{"name":"Page","in":"query","description":"The page index. This value is simply for client state.","schema":{"type":"integer","minimum":0}},{"name":"PageToken","in":"query","description":"The page token. This is provided by the API.","schema":{"type":"string"}}]
```

List multiple OperatorResults

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function listOperatorResult() {
  const operatorResults = await client.intelligence.v2
    .transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .operatorResults.list({ limit: 20 });

  operatorResults.forEach((o) => console.log(o.operatorType));
}

listOperatorResult();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

operator_results = client.intelligence.v2.transcripts(
    "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
).operator_results.list(limit=20)

for record in operator_results:
    print(record.operator_type)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Intelligence.V2.Transcript;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var operatorResults = await OperatorResultResource.ReadAsync(
            pathTranscriptSid: "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", limit: 20);

        foreach (var record in operatorResults) {
            Console.WriteLine(record.OperatorType);
        }
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.intelligence.v2.transcript.OperatorResult;
import com.twilio.base.ResourceSet;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<OperatorResult> operatorResults =
            OperatorResult.reader("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").limit(20).read();

        for (OperatorResult record : operatorResults) {
            System.out.println(record.getOperatorType());
        }
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	intelligence "github.com/twilio/twilio-go/rest/intelligence/v2"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &intelligence.ListOperatorResultParams{}
	params.SetLimit(20)

	resp, err := client.IntelligenceV2.ListOperatorResult("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].OperatorType != nil {
				fmt.Println(*resp[record].OperatorType)
			} else {
				fmt.Println(resp[record].OperatorType)
			}
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$operatorResults = $twilio->intelligence->v2
    ->transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->operatorResults->read([], 20);

foreach ($operatorResults as $record) {
    print $record->operatorType;
}
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

operator_results = @client
                   .intelligence
                   .v2
                   .transcripts('GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
                   .operator_results
                   .list(limit: 20)

operator_results.each do |record|
   puts record.operator_type
end
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:intelligence:v2:transcripts:operator-results:list \
   --transcript-sid GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X GET "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults?PageSize=20" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "operator_results": [],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults?PageSize=50&Page=0",
    "previous_page_url": null,
    "url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults?PageSize=50&Page=0",
    "next_page_url": null,
    "key": "operator_results"
  }
}
```

## Retrieve Encrypted OperatorResults

Get the encrypted data of the OperatorResults by fetching the `/Encrypted` subresource.

Get Encrypted OperatorResults

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function fetchEncryptedOperatorResults() {
  const encryptedOperatorResult = await client.intelligence.v2
    .transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .encryptedOperatorResults()
    .fetch();

  console.log(encryptedOperatorResult.locations);
}

fetchEncryptedOperatorResults();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

encrypted_operator_result = (
    client.intelligence.v2.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .encrypted_operator_results()
    .fetch()
)

print(encrypted_operator_result.locations)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Intelligence.V2.Transcript;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var encryptedOperatorResults = await EncryptedOperatorResultsResource.FetchAsync(
            pathTranscriptSid: "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

        Console.WriteLine(encryptedOperatorResults.Locations);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.intelligence.v2.transcript.EncryptedOperatorResults;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        EncryptedOperatorResults encryptedOperatorResults =
            EncryptedOperatorResults.fetcher("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch();

        System.out.println(encryptedOperatorResults.getLocations());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	intelligence "github.com/twilio/twilio-go/rest/intelligence/v2"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &intelligence.FetchEncryptedOperatorResultsParams{}

	resp, err := client.IntelligenceV2.FetchEncryptedOperatorResults("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.Locations != nil {
			for _, item := range *resp.Locations {
				fmt.Println(item)
			}
		} else {
			fmt.Println(resp.Locations)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$encrypted_operator_result = $twilio->intelligence->v2
    ->transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->encryptedOperatorResults()
    ->fetch();

print $encrypted_operator_result->locations;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

encrypted_operator_result = @client
                            .intelligence
                            .v2
                            .transcripts('GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
                            .encrypted_operator_results
                            .fetch

puts encrypted_operator_result.locations
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:intelligence:v2:transcripts:operator-results:encrypted:fetch \
   --transcript-sid GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X GET "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults/Encrypted" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "locations": [
    "https://com.twilio.us1.operatorresults.s3.amazonaws.com/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults1",
    "https://com.twilio.us1.operatorresults.s3.amazonaws.com/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults2"
  ],
  "transcript_sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults/Encrypted"
}
```
