Class: Twilio::REST::Conversations::V2::ConversationList::CreateConversationWithConfigRequestConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ CreateConversationWithConfigRequestConfiguration

Returns a new instance of CreateConversationWithConfigRequestConfiguration.



125
126
127
128
129
130
131
132
133
134
135
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 125

def initialize(payload)
        @conversation_grouping_type = payload["conversation_grouping_type"]
        @memory_store_id = payload["memory_store_id"]
        @channel_settings = payload["channel_settings"]
        @memory_extraction_enabled = payload["memory_extraction_enabled"]
        @intelligence_configuration_ids = payload["intelligence_configuration_ids"]
        @trait_extraction_strategy_ids = payload["trait_extraction_strategy_ids"]
        @observation_extraction_strategy_ids = payload["observation_extraction_strategy_ids"]
        @status_callbacks = payload["status_callbacks"]
        @workflows = payload["workflows"]
end

Instance Attribute Details

#channel_settings ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def channel_settings
  @channel_settings
end

#conversation_grouping_type ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def conversation_grouping_type
  @conversation_grouping_type
end

#intelligence_configuration_ids ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def intelligence_configuration_ids
  @intelligence_configuration_ids
end

#memory_extraction_enabled ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def memory_extraction_enabled
  @memory_extraction_enabled
end

#memory_store_id ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def memory_store_id
  @memory_store_id
end

#observation_extraction_strategy_ids ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def observation_extraction_strategy_ids
  @observation_extraction_strategy_ids
end

#status_callbacks ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def status_callbacks
  @status_callbacks
end

#trait_extraction_strategy_ids ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def trait_extraction_strategy_ids
  @trait_extraction_strategy_ids
end

#workflows ⇒ Object

Parameters:

  • : (conversation_grouping_type) —

    [String] Type of Conversation grouping strategy: - GROUP_BY_PROFILE: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for CUSTOMER Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - GROUP_BY_PARTICIPANT_ADDRESSES: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.

  • : (memory_store_id) —

    [String] The memory store ID that Conversation Orchestrator uses for profile resolution.

  • : (channel_settings) —

    [Hash<String, CreateConversationWithConfigRequestConfigurationChannelSettingsValue>] Status timeouts by channel type. Capture rules can only be set on a Configuration.

  • : (memory_extraction_enabled) —

    [Boolean] Whether memory extraction is enabled for this Conversation. Without configurationId, defaults to false; with it, defaults to the Configuration's value.

  • : (intelligence_configuration_ids) —

    [Array] A list of Conversational Intelligence configuration IDs.

  • : (trait_extraction_strategy_ids) —

    [Array] A list of Trait Extraction Strategy IDs.

  • : (observation_extraction_strategy_ids) —

    [Array] A list of Observation Extraction Strategy IDs.

  • : (status_callbacks) —

    [Array<ConversationList.CreateConversationWithConfigRequestConfigurationStatusCallbacks>] The webhook configurations for this Conversation. Overrides the Configuration's own.

  • : (workflows) —

    [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.



124
125
126
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 124

def workflows
  @workflows
end

Instance Method Details

#to_json(options = {}) ⇒ Object



136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 136

def to_json(options = {})
{
        "conversationGroupingType": @conversation_grouping_type,
        "memoryStoreId": @memory_store_id,
        "channelSettings": @channel_settings,
        "memoryExtractionEnabled": @memory_extraction_enabled,
        "intelligenceConfigurationIds": @intelligence_configuration_ids,
        "traitExtractionStrategyIds": @trait_extraction_strategy_ids,
        "observationExtractionStrategyIds": @observation_extraction_strategy_ids,
        "statusCallbacks": @status_callbacks,
        "workflows": @workflows,
}.to_json(options)
end