NAME

Twilio::Rest::Intelligence::V3::Conversation - The Conversation resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $conversation ($client->intelligence->v3->conversations->read({}, 20)) {
  ...
}
my $conversation = $client->intelligence->v3->conversations($id)->fetch;

DESCRIPTION

Intelligence Conversations resource to retrieve conversations that have been processed by an Intelligence Configuration.

This file holds ConversationList, ConversationPage, ConversationContext and ConversationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ConversationList

Returned by $client->intelligence->v3->conversations. See also Twilio::ListResource.

read

my @records = $client->intelligence->v3->conversations->read(\%options, $limit, $page_size);

Retrieve a list of Conversations processed by an Intelligence Configuration. Returns the records as a list, fetching as many pages as it needs.

The options are:

channel_id

Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID.

channels

Filters Conversations that include one or more of the specified communication channels (OR match). One of VOICE, SMS, RCS, EMAIL, WHATSAPP, CHAT, API or SYSTEM. An array reference.

conversation_configuration_id

The configuration id used to generate the Conversation.

created_at_after

Filter by Conversations created after this timestamp. The maximum allowed time range between createdAtBefore and createdAtAfter is 31 days. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

created_at_before

Filter by Conversations created before this timestamp. The maximum allowed time range between createdAtBefore and createdAtAfter is 31 days. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

intelligence_configuration_ids

Filters Conversations activated by one or more of the specified Intelligence Configuration IDs (OR match). An array reference.

operator_ids

Filters Conversations to those where at least one of the specified Language Operators was executed (OR match). An array reference.

status

Filter by Conversation status. One of ACTIVE, INACTIVE or CLOSED.

stream

my $stream = $client->intelligence->v3->conversations->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->intelligence->v3->conversations->page(\%options, $page_size, $page_token);

Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.

get_page

my $page = $client->intelligence->v3->conversations->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->intelligence->v3->conversations->get_context($id);

Returns a ConversationContext, and makes no request.

ConversationPage

A Twilio::Page of ConversationInstance objects.

records_key

build_instance

Used by Twilio::Page.

ConversationContext

Returned by $client->intelligence->v3->conversations($id). It makes no request until one of these methods is called.

fetch

my $conversation = $client->intelligence->v3->conversations($id)->fetch;

Returns a ConversationInstance.

ConversationInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

account_id

The ID of the account that owns the Conversation.

channel_ids

The underlying channel resource ids associated with this Conversation, such as a Call ID or Message ID.

channels

The communication channel(s) included in the Conversation.

communications

Metadata for the Communications that make up the Conversation.

conversation_configuration_id

No description in the specification.

created_at

Timestamp for when the Conversation was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

id

No description in the specification.

intelligence_configuration_ids

The Intelligence Configuration(s) associated with the Conversation.

name

Display name of the Conversation.

operator_result_ids

List of Operator Result IDs generated from this Conversation.

participants

Metadata for Participants of the Conversation.

status

One of ACTIVE, INACTIVE or CLOSED.

updated_at

Timestamp for when the Conversation was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.