Attributes
id
id
account_id
account_id
https://studio.poly.ai/account/{account_id}/...Example:project_id
project_id
https://studio.poly.ai/account/{account_id}/project/{project_id}/...Example:env
env
channel_type
channel_type
"VOICE"– Voice calls (telephony)"sms"– SMS text messages"sip.polyai"– SIP-based voice calls- Integration-specific identifiers (e.g.,
"webchat.polyai","chat.polyai")
attachments
attachments
url(str) – URL where the file is hostedfilename(str) – Name of the filecontent_type(str, optional) – MIME type of the file (e.g., “application/pdf”, “image/jpeg”)size(int, optional) – File size in bytes
sip_headers
sip_headers
integration_attributes
integration_attributes
- DNIs Pooling – Provides
shared_idfor correlating conversation outcomes
start_function to handle missing data appropriately.Example:integration_data
integration_data
caller_number
caller_number
+14155551234 for USA numbers).For outbound calls: The phone number being called by the agent.For chat channels: This may be an email address or integration-provided user ID.Example:callee_number
callee_number
state
state
current_flow
current_flow
current_step
current_step
sms_queue
sms_queue
OutgoingSMS / OutgoingSMSTemplate objects queued for dispatch at turn end.metrics_queue
metrics_queue
metric_events
metric_events
variant_name
variant_name
variants
variants
variant
variant
sms_templates
sms_templates
voice_change
voice_change
language
language
history
history
handoffs
handoffs
transcript_alternatives
transcript_alternatives
real_time_config
real_time_config
memory
memory
caller_number for voice calls or the integration-provided user identifier for chat channels. This allows the agent to recognize returning customers and recall previous interactions.Example:entities
entities
functions
functions
api
api
conv.api.{integration_name}.{operation_name}().
Example:generic_external_events
generic_external_events
generate_external_event. Each event contains ext_event_id, send_to_llm, created_at, data, and content_type.Example:translations
translations
response_suggestions
response_suggestions
agentic_dial
agentic_dial
Methods
say
say
randomize_voice
randomize_voice
- voice_weightings (list[VoiceWeighting]) – list of VoiceWeighting objects, each containing a voice and weight.
poly.voice module (e.g., ElevenLabsVoice, CartesiaVoice, PlayHTVoice, RimeVoice). See Voice Selection docs for the full list of available voices and their IDs.Example:goto_flow
goto_flow
exit_flow
exit_flow
set_variant
set_variant
add_attachments
add_attachments
discard_recording
discard_recording
generate_external_events
generate_external_events
log_api_response
log_api_response
- Conversation Review: View API responses in the Diagnosis tab for debugging
- Analytics pipeline: API response data is available for reporting and analysis
send_whatsapp
send_whatsapp
send_whatsapp for plain text messages. Use send_content_template for pre-approved WhatsApp templates with variables, rich media, or buttons.Example:send_content_template
send_content_template
send_content_template for structured messages with variables and rich content. Use send_whatsapp for simple plain-text messages.Example:send_sms
send_sms
send_sms_template
send_sms_template
write_metric
write_metric
call_handoff
call_handoff
utils
utils
extract_address()– Extract postal addressesextract_name()– Extract person namesextract_city()– Extract city referencesextract_date()– Extract dates and timesextract_email()– Extract email addressesextract_phone()– Extract phone numbers
set_voice
set_voice
set_language
set_language
set_asr_biasing
set_asr_biasing
- keywords (list[str], optional) – list of keywords to bias ASR recognition toward.
- custom_biases (dict[str, float], optional) – dictionary mapping phrases to bias weights. Example:
clear_asr_biasing
clear_asr_biasing
goto_csat_flow
goto_csat_flow
send_email
send_email
- Emails are sent asynchronously after the turn completes
- Delivery failures are logged but do not interrupt the conversation
- For high-volume sending, consider rate limits and reputation management
- to (str) – recipient email address.
- body (str) – raw body of the email.
- subject (str, optional) – subject line.
add_response_suggestions
add_response_suggestions

