Class: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/campaign_get_rows_response.rb,
sig/revox/models/campaign_get_rows_response.rbs

Overview

See Also:

  • Revox::Models::CampaignGetRowsResponse::Row::Call#assistant

Defined Under Namespace

Modules: AfterCallSMSOutcome, BackgroundSound, EmailNotificationLanguage, EmailNotificationOutcome, FirstSentenceMode, HumanTransferMode, LlmModel, SttModel, ThinkingSound, Type Classes: Calendly, CallRetryConfig, CreatedBy, CustomTool, FaqItem, Position, PromptFlow, Slack, StructuredOutputConfig, SttContext, Voice, Zoho

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, email:, first_name:, last_name:) ⇒ Object

The user who created the assistant.

Parameters:

  • id (String)

    The database user id of the creator.

  • email (String)
  • first_name (String, nil)
  • last_name (String, nil)


# File 'lib/revox/models/campaign_get_rows_response.rb', line 820

Instance Attribute Details

#after_call_sms_outcomesArray<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::AfterCallSMSOutcome>?

Which call outcomes trigger the after-call SMS. When empty or null, no after-call SMS is sent. Use "none" when outcome is null.

Parameters:

  • value (::Array[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::after_call_sms_outcome], nil)

Returns:



333
334
335
# File 'lib/revox/models/campaign_get_rows_response.rb', line 333

required :after_call_sms_outcomes,
-> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::AfterCallSMSOutcome] },
nil?: true

#after_call_sms_promptString?

Prompt / instructions for the after-call SMS. Supports {variable} placeholders. When null, no after-call SMS is sent.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


342
# File 'lib/revox/models/campaign_get_rows_response.rb', line 342

required :after_call_sms_prompt, String, nil?: true

#background_soundSymbol, ...

Ambient background sound to play during the call. null disables it.

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::background_sound, nil)

Returns:



348
349
350
# File 'lib/revox/models/campaign_get_rows_response.rb', line 348

required :background_sound,
enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::BackgroundSound },
nil?: true

#background_sound_volumeFloat

Volume of the ambient background sound (0 = silent, 1 = max).

Parameters:

  • value (Float)

Returns:

  • (Float)


356
# File 'lib/revox/models/campaign_get_rows_response.rb', line 356

required :background_sound_volume, Float

#calendlyRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly?



361
362
363
# File 'lib/revox/models/campaign_get_rows_response.rb', line 361

required :calendly,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Calendly },
nil?: true

#call_retry_configRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig?

Configuration for call retry behavior including time windows, delays, and max iterations. If not provided, defaults will be used.



370
371
372
# File 'lib/revox/models/campaign_get_rows_response.rb', line 370

required :call_retry_config,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CallRetryConfig },
nil?: true

#cartesia_dictionary_pronunciation_idString?

Optional Cartesia pronunciation dictionary ID linked to this assistant.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


378
# File 'lib/revox/models/campaign_get_rows_response.rb', line 378

required :cartesia_dictionary_pronunciation_id, String, nil?: true

#created_atObject

Parameters:

  • value (top)

Returns:

  • (Object)


383
# File 'lib/revox/models/campaign_get_rows_response.rb', line 383

required :created_at, Revox::Internal::Type::Unknown

#created_byRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CreatedBy?

The user who created the assistant.



649
650
651
# File 'lib/revox/models/campaign_get_rows_response.rb', line 649

optional :created_by,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CreatedBy },
nil?: true

#custom_toolsArray<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool>?



388
389
390
# File 'lib/revox/models/campaign_get_rows_response.rb', line 388

required :custom_tools,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::CustomTool] },
nil?: true

#email_notification_addressString?

Email address(es) to receive notifications when a call ends with a matching outcome. Accepts a single email or a comma-separated list (e.g. "alice@x.com, bob@y.com").

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


398
# File 'lib/revox/models/campaign_get_rows_response.rb', line 398

required :email_notification_address, String, nil?: true

#email_notification_languageSymbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationLanguage

The language used for the notification email content. One of "en" or "fr".

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::email_notification_language)

Returns:



404
405
# File 'lib/revox/models/campaign_get_rows_response.rb', line 404

required :email_notification_language,
enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationLanguage }

#email_notification_outcomesArray<Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationOutcome>?

Which call outcomes trigger an email notification. E.g. ["interested", "completed", "none"]. Use "none" when outcome is null.

Parameters:

  • value (::Array[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::email_notification_outcome], nil)

Returns:



412
413
414
# File 'lib/revox/models/campaign_get_rows_response.rb', line 412

required :email_notification_outcomes,
-> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::EmailNotificationOutcome] },
nil?: true

#end_of_call_sentenceString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


419
# File 'lib/revox/models/campaign_get_rows_response.rb', line 419

required :end_of_call_sentence, String, nil?: true

#faq_itemsArray<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem>?



656
657
# File 'lib/revox/models/campaign_get_rows_response.rb', line 656

optional :faq_items,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FaqItem] }

#first_sentenceString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


424
# File 'lib/revox/models/campaign_get_rows_response.rb', line 424

required :first_sentence, String, nil?: true

#first_sentence_delay_msInteger

Delay in milliseconds before speaking the first sentence. Default: 400.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


430
# File 'lib/revox/models/campaign_get_rows_response.rb', line 430

required :first_sentence_delay_ms, Integer

#first_sentence_modeSymbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FirstSentenceMode

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::first_sentence_mode)

Returns:



435
436
# File 'lib/revox/models/campaign_get_rows_response.rb', line 435

required :first_sentence_mode,
enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::FirstSentenceMode }

#from_phone_numberString?

Override the default outbound phone number for calls placed with this assistant. When null, the organization's default phone number is used.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


443
# File 'lib/revox/models/campaign_get_rows_response.rb', line 443

required :from_phone_number, String, nil?: true

#human_transfer_modeSymbol, ...

Warm or cold transfer when transfer_phone_number is set; null when transfer is not configured.

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::human_transfer_mode, nil)

Returns:



450
451
452
# File 'lib/revox/models/campaign_get_rows_response.rb', line 450

required :human_transfer_mode,
enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::HumanTransferMode },
nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


326
# File 'lib/revox/models/campaign_get_rows_response.rb', line 326

required :id, String

#is_realestate_assistantBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


662
# File 'lib/revox/models/campaign_get_rows_response.rb', line 662

optional :is_realestate_assistant, Revox::Internal::Type::Boolean

#ivr_navigation_enabledBoolean

Enable IVR navigation tools. When enabled, the assistant can send DTMF tones and skip turns to navigate phone menus.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


459
# File 'lib/revox/models/campaign_get_rows_response.rb', line 459

required :ivr_navigation_enabled, Revox::Internal::Type::Boolean

#llm_modelRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel::UnionMember0, ...



464
# File 'lib/revox/models/campaign_get_rows_response.rb', line 464

required :llm_model, union: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::LlmModel }

#logo_urlString?

Public URL of the brand logo shown on the assistant's demo page. Null when unset.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


471
# File 'lib/revox/models/campaign_get_rows_response.rb', line 471

required :logo_url, String, nil?: true

#max_call_duration_secsFloat

The maximum duration of the call in seconds. This is the maximum time the call will be allowed to run.

Parameters:

  • value (Float)

Returns:

  • (Float)


478
# File 'lib/revox/models/campaign_get_rows_response.rb', line 478

required :max_call_duration_secs, Float

#max_duration_end_messageString?

Optional message the agent will say, without being interruptible, when the call reaches its max duration. Kept short so it fits inside the farewell buffer. If null, the call ends silently.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


486
# File 'lib/revox/models/campaign_get_rows_response.rb', line 486

required :max_duration_end_message, String, nil?: true

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


491
# File 'lib/revox/models/campaign_get_rows_response.rb', line 491

required :name, String

#organization_idString

Parameters:

  • value (String)

Returns:

  • (String)


496
# File 'lib/revox/models/campaign_get_rows_response.rb', line 496

required :organization_id, String

#pending_faq_countFloat?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


667
# File 'lib/revox/models/campaign_get_rows_response.rb', line 667

optional :pending_faq_count, Float

#positionRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Position?



501
502
503
# File 'lib/revox/models/campaign_get_rows_response.rb', line 501

required :position,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Position },
nil?: true

#promptString

Parameters:

  • value (String)

Returns:

  • (String)


508
# File 'lib/revox/models/campaign_get_rows_response.rb', line 508

required :prompt, String

#prompt_flowRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow?



513
514
515
# File 'lib/revox/models/campaign_get_rows_response.rb', line 513

required :prompt_flow,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::PromptFlow },
nil?: true

#slackRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack?



520
# File 'lib/revox/models/campaign_get_rows_response.rb', line 520

required :slack, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Slack }, nil?: true

#sms_enabledBoolean

Enable SMS tool during calls. When enabled, the agent can send SMS messages to the user on the call.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


527
# File 'lib/revox/models/campaign_get_rows_response.rb', line 527

required :sms_enabled, Revox::Internal::Type::Boolean

#sms_templateString?

Hardcoded SMS template to send during calls. When set, this exact text is sent instead of letting the agent generate the message. Supports {variable} placeholders.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


535
# File 'lib/revox/models/campaign_get_rows_response.rb', line 535

required :sms_template, String, nil?: true

#structured_output_configArray<Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig>?

The structured output config to use for the call. This is used to extract the data from the call (like email, name, company name, etc.).



542
543
544
# File 'lib/revox/models/campaign_get_rows_response.rb', line 542

required :structured_output_config,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::StructuredOutputConfig] },
nil?: true

#structured_output_promptString?

Custom prompt for structured data extraction. If not provided, a default prompt is used. Available variables: {transcript}, {call_direction}, {user_phone_number}, {agent_phone_number}.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


552
# File 'lib/revox/models/campaign_get_rows_response.rb', line 552

required :structured_output_prompt, String, nil?: true

#stt_contextRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext?

Assistant-level speech-to-text context: structured general key/value pairs plus a list of domain terms. Prompt-derived context is merged in without replacing existing entries.



560
561
562
# File 'lib/revox/models/campaign_get_rows_response.rb', line 560

required :stt_context,
-> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttContext },
nil?: true

#stt_modelSymbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttModel

Transcriber (speech-to-text) model used for the assistant.

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::stt_model)

Returns:



568
# File 'lib/revox/models/campaign_get_rows_response.rb', line 568

required :stt_model, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::SttModel }

#thinking_soundSymbol, ...

Audio clip to play while the agent is processing a response. One of the built-in LiveKit audio clips; null disables it.

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::thinking_sound, nil)

Returns:



575
576
577
# File 'lib/revox/models/campaign_get_rows_response.rb', line 575

required :thinking_sound,
enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::ThinkingSound },
nil?: true

#thinking_sound_probabilityFloat

Probability [0..1] that the thinking sound plays on any given turn; otherwise the agent is silent while thinking.

Parameters:

  • value (Float)

Returns:

  • (Float)


584
# File 'lib/revox/models/campaign_get_rows_response.rb', line 584

required :thinking_sound_probability, Float

#thinking_sound_volumeFloat

Volume of the thinking sound (0 = silent, 1 = max).

Parameters:

  • value (Float)

Returns:

  • (Float)


590
# File 'lib/revox/models/campaign_get_rows_response.rb', line 590

required :thinking_sound_volume, Float

#transfer_phone_numberString?

Phone number to transfer calls to when users request to speak to a human agent.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


596
# File 'lib/revox/models/campaign_get_rows_response.rb', line 596

required :transfer_phone_number, String, nil?: true

#typeSymbol, Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Type

Parameters:

  • value (Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::type_)

Returns:



601
# File 'lib/revox/models/campaign_get_rows_response.rb', line 601

required :type, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Type }

#updated_atObject

Parameters:

  • value (top)

Returns:

  • (Object)


606
# File 'lib/revox/models/campaign_get_rows_response.rb', line 606

required :updated_at, Revox::Internal::Type::Unknown

#voiceRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice?



611
# File 'lib/revox/models/campaign_get_rows_response.rb', line 611

required :voice, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Voice }, nil?: true

#voicemail_messageString?

If set, when voicemail is detected the agent will speak this message then hang up; if null, hang up immediately.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


618
# File 'lib/revox/models/campaign_get_rows_response.rb', line 618

required :voicemail_message, String, nil?: true

#voicemail_sms_promptString?

Prompt / instructions for the voicemail SMS. Supports {variable} placeholders. When null, no SMS is sent on voicemail.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


625
# File 'lib/revox/models/campaign_get_rows_response.rb', line 625

required :voicemail_sms_prompt, String, nil?: true

#warm_transfer_summary_instructionsString?

Warm transfer only: instructions for the supervisor handoff summary; null when not configured or cold transfer.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


632
# File 'lib/revox/models/campaign_get_rows_response.rb', line 632

required :warm_transfer_summary_instructions, String, nil?: true

#webhook_urlString?

The webhook URL to call when the call is completed.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


638
# File 'lib/revox/models/campaign_get_rows_response.rb', line 638

required :webhook_url, String, nil?: true

#zohoRevox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho?



643
# File 'lib/revox/models/campaign_get_rows_response.rb', line 643

required :zoho, -> { Revox::Models::CampaignGetRowsResponse::Row::Call::Assistant::Zoho }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


454
# File 'sig/revox/models/campaign_get_rows_response.rbs', line 454

def to_hash: -> {