Class: Revox::Models::CallRetrieveResponse::Call::Assistant::Slack

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

Overview

See Also:

  • Revox::Models::CallRetrieveResponse::Call::Assistant#slack

Defined Under Namespace

Modules: Outcome

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

#initializeObject



1075
# File 'sig/revox/models/call_retrieve_response.rbs', line 1075

def initialize: (

Instance Attribute Details

#channel_idString

The Slack channel ID where the notification will be posted.

Parameters:

  • value (String)

Returns:

  • (String)


1393
# File 'lib/revox/models/call_retrieve_response.rb', line 1393

required :channel_id, String

#channel_nameString?

Human-readable Slack channel name, cached for display in the UI.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1413
# File 'lib/revox/models/call_retrieve_response.rb', line 1413

optional :channel_name, String, nil?: true

#connection_idString

The Nango connection ID linking the org's Slack workspace to Revox.

Parameters:

  • value (String)

Returns:

  • (String)


1399
# File 'lib/revox/models/call_retrieve_response.rb', line 1399

required :connection_id, String

#outcomesArray<Symbol, Revox::Models::CallRetrieveResponse::Call::Assistant::Slack::Outcome>

Which call outcomes trigger a Slack notification (e.g. ['interested', 'none']). Use 'none' to notify when outcome is null.

Parameters:

  • value (::Array[Revox::Models::CallRetrieveResponse::Call::Assistant::Slack::outcome])

Returns:



1406
1407
# File 'lib/revox/models/call_retrieve_response.rb', line 1406

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

#templateString?

Optional message template. Supports {summary}, {outcome}, {phone}, {call_url}, {assistant_name}, {campaign_name}, {first_name}, {last_name}, {email}, {company}, {contact_name}, {contact_line}, plus prompt_variables and structured_output keys. When null/empty a default template is used.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :template, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


1083
# File 'sig/revox/models/call_retrieve_response.rbs', line 1083

def to_hash: -> {