Class: Revox::Models::AssistantUpdateResponse::Assistant::Zoho

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

Overview

See Also:

  • Revox::Models::AssistantUpdateResponse::Assistant#zoho

Defined Under Namespace

Modules: Outcome Classes: FieldMapping

Instance Attribute 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(source:, zoho_field:) ⇒ Object

Some parameter documentations has been truncated, see FieldMapping for more details.

Parameters:

  • source (String)

    Source key to read from the call: a structured_output field name, falling back t

  • zoho_field (String)

    Destination Zoho field API name on the upserted record (e.g. 'Email', 'Company',



# File 'lib/revox/models/assistant_update_response.rb', line 1494

Instance Attribute Details

#connection_idString

The Nango connection ID linking the org's Zoho CRM account to Revox.

Parameters:

  • value (String)

Returns:

  • (String)


1423
# File 'lib/revox/models/assistant_update_response.rb', line 1423

required :connection_id, String

#field_mappingArray<Revox::Models::AssistantUpdateResponse::Assistant::Zoho::FieldMapping>

Maps extracted call fields (structured_output / prompt variables) onto Zoho field API names on the upserted record.



1430
1431
# File 'lib/revox/models/assistant_update_response.rb', line 1430

required :field_mapping,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::AssistantUpdateResponse::Assistant::Zoho::FieldMapping] }

#log_call_activityBoolean

When true, also log the call as a record in Zoho's Calls module (related to the upserted prospect via Who_Id).

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


1438
# File 'lib/revox/models/assistant_update_response.rb', line 1438

required :log_call_activity, Revox::Internal::Type::Boolean

#module_String

Zoho module the prospect record is upserted into (e.g. 'Leads' or 'Contacts').

Parameters:

  • value (String)

Returns:

  • (String)


1444
# File 'lib/revox/models/assistant_update_response.rb', line 1444

required :module_, String, api_name: :module

#outcomesArray<Symbol, Revox::Models::AssistantUpdateResponse::Assistant::Zoho::Outcome>

Which call outcomes trigger the Zoho push (e.g. ['interested', 'none']). Use 'none' to push when outcome is null.

Parameters:

  • value (::Array[Revox::Models::AssistantUpdateResponse::Assistant::Zoho::outcome])

Returns:



1451
1452
# File 'lib/revox/models/assistant_update_response.rb', line 1451

required :outcomes,
-> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::AssistantUpdateResponse::Assistant::Zoho::Outcome] }

#templateString?

Optional Note body template. Supports {summary}, {outcome}, {phone}, {call_url}, {assistant_name}, {campaign_name}, {transcript}, plus prompt_variables and structured_output keys. When null/empty a default note (outcome + summary + auto-listed extracted fields) is used.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1461
# File 'lib/revox/models/assistant_update_response.rb', line 1461

optional :template, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


1197
# File 'sig/revox/models/assistant_update_response.rbs', line 1197

def to_hash: -> {