NAME

Twilio::TwiML::Voice::VirtualAgent - The VirtualAgent element of TwiML

SYNOPSIS

my $element = Twilio::TwiML::Voice::VirtualAgent->new(\%attributes);

DESCRIPTION

See Twilio::TwiML::TwiML for the methods every element has.

METHODS

new

my $element = Twilio::TwiML::Voice::VirtualAgent->new(\%attributes);

attribute_table

Used by Twilio::TwiML::TwiML.

config

my $child = $element->config(\%attributes);

Add Config child. Returns a Twilio::TwiML::Voice::Config.

parameter

my $child = $element->parameter(\%attributes);

Add Parameter child. Returns a Twilio::TwiML::Voice::Parameter.

ATTRIBUTES

Each name works in \%attributes, and as a set_ method that returns the element.

connector_name

Defines the conversation profile Dialogflow needs to use

language

Language to be used by Dialogflow to transcribe speech

sentiment_analysis

Whether sentiment analysis needs to be enabled or not True or false.

status_callback

URL to post status callbacks from Twilio

status_callback_method

HTTP method to use when requesting the status callback URL

set_connector_name

set_language

set_sentiment_analysis

set_status_callback

set_status_callback_method

Set the attribute of the same name.

LICENSE

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