Class: Revox::Models::CallSearchResponse::Call::Assistant::Zoho

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

Overview

See Also:

  • Revox::Models::CallSearchResponse::Call::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.



# File 'lib/revox/models/call_search_response.rb', line 1787

Instance Attribute Details

#connection_id ⇒ String

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



1716
# File 'lib/revox/models/call_search_response.rb', line 1716

required :connection_id, String

#field_mapping ⇒ Array<Revox::Models::CallSearchResponse::Call::Assistant::Zoho::FieldMapping>

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



1723
1724
# File 'lib/revox/models/call_search_response.rb', line 1723

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

#log_call_activity ⇒ Boolean

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



1731
# File 'lib/revox/models/call_search_response.rb', line 1731

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

#module_ ⇒ String

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



1737
# File 'lib/revox/models/call_search_response.rb', line 1737

required :module_, String, api_name: :module

#outcomes ⇒ Array<Symbol, Revox::Models::CallSearchResponse::Call::Assistant::Zoho::Outcome>

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



1744
1745
# File 'lib/revox/models/call_search_response.rb', line 1744

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

#template ⇒ String?

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.



1754
# File 'lib/revox/models/call_search_response.rb', line 1754

optional :template, String, nil?: true

Instance Method Details

#to_hash ⇒ {



1372
# File 'sig/revox/models/call_search_response.rbs', line 1372

def to_hash: -> {