Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingInstruction

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

Agent Coaching instructions that customer can configure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AgentCoachingInstruction

Returns a new instance of GoogleCloudContactcenterinsightsV1AgentCoachingInstruction.



65
66
67
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 65

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agent_actionString

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty Corresponds to the JSON property agentAction

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 34

def agent_action
  @agent_action
end

#conditionString

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. Corresponds to the JSON property condition

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 41

def condition
  @condition
end

#descriptionString

Optional. The detailed description of this instruction. Corresponds to the JSON property description

Returns:

  • (String)


46
47
48
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 46

def description
  @description
end

#display_nameString

Optional. Display name for the instruction. Corresponds to the JSON property displayName

Returns:

  • (String)


51
52
53
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 51

def display_name
  @display_name
end

#metadataHash<String,String>

Optional. Additional information attached to this instruction. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


56
57
58
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 56

def 
  @metadata
end

#system_actionString

Optional. The action that system should take. For example, "call GetOrderTime with order_number=order number provided by the customer". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty Corresponds to the JSON property systemAction

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 63

def system_action
  @system_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



70
71
72
73
74
75
76
77
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 70

def update!(**args)
  @agent_action = args[:agent_action] if args.key?(:agent_action)
  @condition = args[:condition] if args.key?(:condition)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @metadata = args[:metadata] if args.key?(:metadata)
  @system_action = args[:system_action] if args.key?(:system_action)
end