Class: Revox::Models::AssistantUpdateParams::Slack

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

Defined Under Namespace

Modules: Outcome Classes: Channel

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(id:, name: nil) ⇒ Object

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

Parameters:

  • id (String)

    The Slack channel ID (e.g. 'C01234567').

  • name (String, nil) (defaults to: nil)

    Human-readable Slack channel name, cached for display in the UI and given to the



# File 'lib/revox/models/assistant_update_params.rb', line 1163

Instance Attribute Details

#channelsArray<Revox::Models::AssistantUpdateParams::Slack::Channel>

The Slack channels eligible to receive the notification. When more than one is configured, the agent prompt may define routing rules to narrow it down per call; with no such rules every channel here is notified.

Parameters:

  • value (::Array[Revox::AssistantUpdateParams::Slack::Channel])

Returns:



1107
# File 'lib/revox/models/assistant_update_params.rb', line 1107

required :channels, -> { Revox::Internal::Type::ArrayOf[Revox::AssistantUpdateParams::Slack::Channel] }

#connection_idString

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

Parameters:

  • value (String)

Returns:

  • (String)


1113
# File 'lib/revox/models/assistant_update_params.rb', line 1113

required :connection_id, String

#outcomesArray<Symbol, Revox::Models::AssistantUpdateParams::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::AssistantUpdateParams::Slack::outcome])

Returns:



1120
1121
# File 'lib/revox/models/assistant_update_params.rb', line 1120

required :outcomes,
-> { Revox::Internal::Type::ArrayOf[enum: Revox::AssistantUpdateParams::Slack::Outcome] }

#templateString?

Optional message template. Supports {summary}, {outcome}, {phone}, {call_url}, {assistant_name}, {campaign_name}, {first_name}, {last_name}, {email}, {company}, {job_title}, {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)


1131
# File 'lib/revox/models/assistant_update_params.rb', line 1131

optional :template, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


911
# File 'sig/revox/models/assistant_update_params.rbs', line 911

def to_hash: -> {