NAME
Twilio::Rest::Memory::V1::ConversationSummary - The ConversationSummary resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $conversation_summary = $client->memory->v1->conversation_summaries($store_id, $profile_id)->create(\%body, \%options);
for my $conversation_summary ($client->memory->v1->conversation_summaries($store_id, $profile_id)->read({}, 20)) {
...
}
my $conversation_summary = $client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->fetch;
$client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->patch(\%body);
$client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->delete;
DESCRIPTION
This file holds ConversationSummaryList, ConversationSummaryPage, ConversationSummaryContext, ConversationSummaryInstance, SummariesCreatedResponseInstance, CreateProfileConversationSummary308ResponseInstance, PatchProfileConversationSummary202ResponseInstance and DeleteProfileConversationSummary202ResponseInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConversationSummaryList
Returned by $client->memory->v1->conversation_summaries($store_id, $profile_id). See also Twilio::ListResource.
create
my $conversation_summary = $client->memory->v1->conversation_summaries($store_id, $profile_id)->create(\%body, \%options);
Create one or more conversation summaries associated with the specified profile. Supports both single summary creation and batch creation of up to 10 summaries. Supports request compression for large batch operations and response compression for the response. All summaries will be automatically indexed for semantic search capabilities. The content summary can be up to 4KB in length. Each summary will be created with a unique ID in Twilio Type ID (TTID) format. Returns a CreateProfileConversationSummary308ResponseInstance when Twilio answers 308, and a SummariesCreatedResponseInstance otherwise.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
summaries-
Required. Array of summaries to create in a single batch operation.
The options are:
accept_encoding-
Compression algorithms supported by the client (e.g., gzip, deflate, br)
content_encoding-
Compression algorithm used for the request body (e.g., gzip, deflate, br) One of
gzip,deflate,brorcompress.
read
my @records = $client->memory->v1->conversation_summaries($store_id, $profile_id)->read(\%options, $limit, $page_size);
Retrieve a paginated list of conversation summaries for a specific profile. Supports response compression for large datasets. Returns the records as a list, fetching as many pages as it needs.
The options are:
accept_encoding-
Compression algorithms supported by the client (e.g., gzip, deflate, br)
conversation_id-
Filter by conversation ID. Returns only items associated with the specified conversation.
stream
my $stream = $client->memory->v1->conversation_summaries($store_id, $profile_id)->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->memory->v1->conversation_summaries($store_id, $profile_id)->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->memory->v1->conversation_summaries($store_id, $profile_id)->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->memory->v1->conversation_summaries($store_id, $profile_id)->get_context($summary_id);
Returns a ConversationSummaryContext, and makes no request.
ConversationSummaryPage
A Twilio::Page of ConversationSummaryInstance objects.
records_key
build_instance
Used by Twilio::Page.
ConversationSummaryContext
Returned by $client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id). It makes no request until one of these methods is called.
fetch
my $conversation_summary = $client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->fetch;
Retrieve a specific conversation summary by its ID for the given profile. Returns a ConversationSummaryInstance.
patch
my $conversation_summary = $client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->patch(\%body);
Partially update a specific conversation summary by its ID. Only provided fields will be updated. The updated timestamp will be automatically set. This allows for selective updates without needing to provide all fields. Returns a CreateProfileConversationSummary308ResponseInstance when Twilio answers 308, and a PatchProfileConversationSummary202ResponseInstance otherwise.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
content-
The main content of the summary.
conversationId-
No description in the specification.
occurredAt-
The timestamp when the summary was originally created. If not provided, defaults to the time the summary was received.
source-
The source system that generated the summary. Allows letters, numbers, spaces, periods, underscores, hyphens, and forward slashes.
delete
$client->memory->v1->conversation_summaries($store_id, $profile_id, $summary_id)->delete;
Delete a specific conversation summary by its ID. This action is irreversible. Returns a CreateProfileConversationSummary308ResponseInstance when Twilio answers 308, and a DeleteProfileConversationSummary202ResponseInstance otherwise.
ConversationSummaryInstance
See also Twilio::InstanceResource.
It has fetch, patch and delete, which work as they do on the context.
Its fields are:
- content
-
The main content of the summary.
- conversation_id
-
No description in the specification.
- created_at
-
The timestamp when the summary was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- id
-
No description in the specification.
- occurred_at
-
The timestamp when the summary was originally created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- source
-
The source system that generated the summary. Allows letters, numbers, spaces, periods, underscores, hyphens, and forward slashes.
- updated_at
-
The timestamp when the summary was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
SummariesCreatedResponseInstance
Returned by create, for an answer that is not a ConversationSummary. See also Twilio::InstanceResource.
Its fields are:
- message
-
Confirmation message for the operation.
CreateProfileConversationSummary308ResponseInstance
Returned by create, patch and delete, for an answer that is not a ConversationSummary. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
- uri
-
No description in the specification.
PatchProfileConversationSummary202ResponseInstance
Returned by patch, for an answer that is not a ConversationSummary. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
DeleteProfileConversationSummary202ResponseInstance
Returned by delete, for an answer that is not a ConversationSummary. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
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.