google-apis-contactcenterinsights_v1 0.41.0 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,193 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ContactcenterinsightsV1
|
24
24
|
|
25
|
+
# Agent Coaching instructions that customer can configure.
|
26
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingInstruction
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
30
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
31
|
+
# detection, agent_action can be empty
|
32
|
+
# Corresponds to the JSON property `agentAction`
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :agent_action
|
35
|
+
|
36
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
37
|
+
# to cancel an order". If the users want the instruction to be triggered
|
38
|
+
# unconditionally, the condition can be empty.
|
39
|
+
# Corresponds to the JSON property `condition`
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :condition
|
42
|
+
|
43
|
+
# Optional. The detailed description of this instruction.
|
44
|
+
# Corresponds to the JSON property `description`
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :description
|
47
|
+
|
48
|
+
# Optional. Display name for the instruction.
|
49
|
+
# Corresponds to the JSON property `displayName`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :display_name
|
52
|
+
|
53
|
+
# Optional. Additional information attached to this instruction.
|
54
|
+
# Corresponds to the JSON property `metadata`
|
55
|
+
# @return [Hash<String,String>]
|
56
|
+
attr_accessor :metadata
|
57
|
+
|
58
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
59
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
60
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
61
|
+
# Corresponds to the JSON property `systemAction`
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :system_action
|
64
|
+
|
65
|
+
def initialize(**args)
|
66
|
+
update!(**args)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Update properties of this object
|
70
|
+
def update!(**args)
|
71
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
72
|
+
@condition = args[:condition] if args.key?(:condition)
|
73
|
+
@description = args[:description] if args.key?(:description)
|
74
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
75
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
76
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Suggestion for coaching agents.
|
81
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion
|
82
|
+
include Google::Apis::Core::Hashable
|
83
|
+
|
84
|
+
# Optional. Suggested actions for the agent to take.
|
85
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
86
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion>]
|
87
|
+
attr_accessor :agent_action_suggestions
|
88
|
+
|
89
|
+
# Optional. Instructions applicable based on the current context.
|
90
|
+
# Corresponds to the JSON property `applicableInstructions`
|
91
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingInstruction>]
|
92
|
+
attr_accessor :applicable_instructions
|
93
|
+
|
94
|
+
# Optional. Sample response for the Agent.
|
95
|
+
# Corresponds to the JSON property `sampleResponses`
|
96
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse>]
|
97
|
+
attr_accessor :sample_responses
|
98
|
+
|
99
|
+
# Self evaluations of the suggestion.
|
100
|
+
# Corresponds to the JSON property `suggestionEval`
|
101
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval]
|
102
|
+
attr_accessor :suggestion_eval
|
103
|
+
|
104
|
+
# Reasoning for the suggestion.
|
105
|
+
# Corresponds to the JSON property `suggestionReasoning`
|
106
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning]
|
107
|
+
attr_accessor :suggestion_reasoning
|
108
|
+
|
109
|
+
def initialize(**args)
|
110
|
+
update!(**args)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Update properties of this object
|
114
|
+
def update!(**args)
|
115
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
116
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
117
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
118
|
+
@suggestion_eval = args[:suggestion_eval] if args.key?(:suggestion_eval)
|
119
|
+
@suggestion_reasoning = args[:suggestion_reasoning] if args.key?(:suggestion_reasoning)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
124
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion
|
125
|
+
include Google::Apis::Core::Hashable
|
126
|
+
|
127
|
+
# Optional. The suggested action for the agent.
|
128
|
+
# Corresponds to the JSON property `agentAction`
|
129
|
+
# @return [String]
|
130
|
+
attr_accessor :agent_action
|
131
|
+
|
132
|
+
def initialize(**args)
|
133
|
+
update!(**args)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Update properties of this object
|
137
|
+
def update!(**args)
|
138
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# Self evaluations of the suggestion.
|
143
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval
|
144
|
+
include Google::Apis::Core::Hashable
|
145
|
+
|
146
|
+
# Optional. Eval for Agent action suggestion.
|
147
|
+
# Corresponds to the JSON property `actionActionSuggestionEval`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :action_action_suggestion_eval
|
150
|
+
|
151
|
+
# Optional. Eval for sample response.
|
152
|
+
# Corresponds to the JSON property `sampleResponseEval`
|
153
|
+
# @return [String]
|
154
|
+
attr_accessor :sample_response_eval
|
155
|
+
|
156
|
+
def initialize(**args)
|
157
|
+
update!(**args)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update properties of this object
|
161
|
+
def update!(**args)
|
162
|
+
@action_action_suggestion_eval = args[:action_action_suggestion_eval] if args.key?(:action_action_suggestion_eval)
|
163
|
+
@sample_response_eval = args[:sample_response_eval] if args.key?(:sample_response_eval)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Reasoning for the suggestion.
|
168
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
|
169
|
+
include Google::Apis::Core::Hashable
|
170
|
+
|
171
|
+
# Optional. The actions that the agent has taken already.
|
172
|
+
# Corresponds to the JSON property `agentActionTaken`
|
173
|
+
# @return [String]
|
174
|
+
attr_accessor :agent_action_taken
|
175
|
+
|
176
|
+
# Optional. Summary of the issue.
|
177
|
+
# Corresponds to the JSON property `issueSummary`
|
178
|
+
# @return [String]
|
179
|
+
attr_accessor :issue_summary
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@agent_action_taken = args[:agent_action_taken] if args.key?(:agent_action_taken)
|
188
|
+
@issue_summary = args[:issue_summary] if args.key?(:issue_summary)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Sample response that the agent can use. This could be based on applicable
|
193
|
+
# instructions and ingested data from other systems.
|
194
|
+
class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse
|
195
|
+
include Google::Apis::Core::Hashable
|
196
|
+
|
197
|
+
# Optional. Sample response for Agent in text.
|
198
|
+
# Corresponds to the JSON property `responseText`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :response_text
|
201
|
+
|
202
|
+
def initialize(**args)
|
203
|
+
update!(**args)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Update properties of this object
|
207
|
+
def update!(**args)
|
208
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
25
212
|
# The analysis resource.
|
26
213
|
class GoogleCloudContactcenterinsightsV1Analysis
|
27
214
|
include Google::Apis::Core::Hashable
|
@@ -126,6 +313,11 @@ module Google
|
|
126
313
|
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationLevelSentiment>]
|
127
314
|
attr_accessor :sentiments
|
128
315
|
|
316
|
+
# Conversation-level silence data.
|
317
|
+
# Corresponds to the JSON property `silence`
|
318
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationLevelSilence]
|
319
|
+
attr_accessor :silence
|
320
|
+
|
129
321
|
def initialize(**args)
|
130
322
|
update!(**args)
|
131
323
|
end
|
@@ -138,6 +330,7 @@ module Google
|
|
138
330
|
@issue_model_result = args[:issue_model_result] if args.key?(:issue_model_result)
|
139
331
|
@phrase_matchers = args[:phrase_matchers] if args.key?(:phrase_matchers)
|
140
332
|
@sentiments = args[:sentiments] if args.key?(:sentiments)
|
333
|
+
@silence = args[:silence] if args.key?(:silence)
|
141
334
|
end
|
142
335
|
end
|
143
336
|
|
@@ -1032,6 +1225,31 @@ module Google
|
|
1032
1225
|
end
|
1033
1226
|
end
|
1034
1227
|
|
1228
|
+
# Conversation-level silence data.
|
1229
|
+
class GoogleCloudContactcenterinsightsV1ConversationLevelSilence
|
1230
|
+
include Google::Apis::Core::Hashable
|
1231
|
+
|
1232
|
+
# Amount of time calculated to be in silence.
|
1233
|
+
# Corresponds to the JSON property `silenceDuration`
|
1234
|
+
# @return [String]
|
1235
|
+
attr_accessor :silence_duration
|
1236
|
+
|
1237
|
+
# Percentage of the total conversation spent in silence.
|
1238
|
+
# Corresponds to the JSON property `silencePercentage`
|
1239
|
+
# @return [Float]
|
1240
|
+
attr_accessor :silence_percentage
|
1241
|
+
|
1242
|
+
def initialize(**args)
|
1243
|
+
update!(**args)
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
# Update properties of this object
|
1247
|
+
def update!(**args)
|
1248
|
+
@silence_duration = args[:silence_duration] if args.key?(:silence_duration)
|
1249
|
+
@silence_percentage = args[:silence_percentage] if args.key?(:silence_percentage)
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1035
1253
|
# The call participant speaking for a given utterance.
|
1036
1254
|
class GoogleCloudContactcenterinsightsV1ConversationParticipant
|
1037
1255
|
include Google::Apis::Core::Hashable
|
@@ -2017,6 +2235,31 @@ module Google
|
|
2017
2235
|
end
|
2018
2236
|
end
|
2019
2237
|
|
2238
|
+
# Suggestion generated using free form generator.
|
2239
|
+
class GoogleCloudContactcenterinsightsV1FreeFormSuggestion
|
2240
|
+
include Google::Apis::Core::Hashable
|
2241
|
+
|
2242
|
+
# Optional. Labels for the generator.
|
2243
|
+
# Corresponds to the JSON property `labels`
|
2244
|
+
# @return [Array<String>]
|
2245
|
+
attr_accessor :labels
|
2246
|
+
|
2247
|
+
# Required. Free form suggestion.
|
2248
|
+
# Corresponds to the JSON property `response`
|
2249
|
+
# @return [String]
|
2250
|
+
attr_accessor :response
|
2251
|
+
|
2252
|
+
def initialize(**args)
|
2253
|
+
update!(**args)
|
2254
|
+
end
|
2255
|
+
|
2256
|
+
# Update properties of this object
|
2257
|
+
def update!(**args)
|
2258
|
+
@labels = args[:labels] if args.key?(:labels)
|
2259
|
+
@response = args[:response] if args.key?(:response)
|
2260
|
+
end
|
2261
|
+
end
|
2262
|
+
|
2020
2263
|
# A Cloud Storage source of conversation data.
|
2021
2264
|
class GoogleCloudContactcenterinsightsV1GcsSource
|
2022
2265
|
include Google::Apis::Core::Hashable
|
@@ -2043,37 +2286,71 @@ module Google
|
|
2043
2286
|
end
|
2044
2287
|
end
|
2045
2288
|
|
2046
|
-
#
|
2047
|
-
class
|
2289
|
+
# Suggestion generated using a Generator.
|
2290
|
+
class GoogleCloudContactcenterinsightsV1GeneratorSuggestion
|
2048
2291
|
include Google::Apis::Core::Hashable
|
2049
2292
|
|
2293
|
+
# Suggestion for coaching agents.
|
2294
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
2295
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion]
|
2296
|
+
attr_accessor :agent_coaching_suggestion
|
2297
|
+
|
2298
|
+
# Suggestion generated using free form generator.
|
2299
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
2300
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FreeFormSuggestion]
|
2301
|
+
attr_accessor :free_form_suggestion
|
2302
|
+
|
2303
|
+
# Suggested summary of the conversation.
|
2304
|
+
# Corresponds to the JSON property `summarySuggestion`
|
2305
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SummarySuggestion]
|
2306
|
+
attr_accessor :summary_suggestion
|
2307
|
+
|
2050
2308
|
def initialize(**args)
|
2051
2309
|
update!(**args)
|
2052
2310
|
end
|
2053
2311
|
|
2054
2312
|
# Update properties of this object
|
2055
2313
|
def update!(**args)
|
2314
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
2315
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
2316
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
2056
2317
|
end
|
2057
2318
|
end
|
2058
2319
|
|
2059
|
-
#
|
2060
|
-
class
|
2320
|
+
# Represents response from generators.
|
2321
|
+
class GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse
|
2061
2322
|
include Google::Apis::Core::Hashable
|
2062
2323
|
|
2063
|
-
#
|
2064
|
-
# Corresponds to the JSON property `
|
2065
|
-
# @return [
|
2066
|
-
attr_accessor :
|
2324
|
+
# Suggestion generated using a Generator.
|
2325
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
2326
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GeneratorSuggestion]
|
2327
|
+
attr_accessor :generator_suggestion
|
2067
2328
|
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
attr_accessor :end_time
|
2329
|
+
def initialize(**args)
|
2330
|
+
update!(**args)
|
2331
|
+
end
|
2072
2332
|
|
2073
|
-
#
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2333
|
+
# Update properties of this object
|
2334
|
+
def update!(**args)
|
2335
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
2336
|
+
end
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# Response for Knowledge Assist. Contains suggested query and optionally
|
2340
|
+
# includes an answer for the query.
|
2341
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse
|
2342
|
+
include Google::Apis::Core::Hashable
|
2343
|
+
|
2344
|
+
# Represents a suggested query.
|
2345
|
+
# Corresponds to the JSON property `suggestedQuery`
|
2346
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery]
|
2347
|
+
attr_accessor :suggested_query
|
2348
|
+
|
2349
|
+
# Represents an answer from Knowledge. Cuurently supports FAQ and Generative
|
2350
|
+
# answers.
|
2351
|
+
# Corresponds to the JSON property `suggestedQueryAnswer`
|
2352
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer]
|
2353
|
+
attr_accessor :suggested_query_answer
|
2077
2354
|
|
2078
2355
|
def initialize(**args)
|
2079
2356
|
update!(**args)
|
@@ -2081,33 +2358,42 @@ module Google
|
|
2081
2358
|
|
2082
2359
|
# Update properties of this object
|
2083
2360
|
def update!(**args)
|
2084
|
-
@
|
2085
|
-
@
|
2086
|
-
@request = args[:request] if args.key?(:request)
|
2361
|
+
@suggested_query = args[:suggested_query] if args.key?(:suggested_query)
|
2362
|
+
@suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
|
2087
2363
|
end
|
2088
2364
|
end
|
2089
2365
|
|
2090
|
-
#
|
2091
|
-
|
2366
|
+
# Represents an answer from Knowledge. Cuurently supports FAQ and Generative
|
2367
|
+
# answers.
|
2368
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer
|
2092
2369
|
include Google::Apis::Core::Hashable
|
2093
2370
|
|
2094
|
-
#
|
2095
|
-
#
|
2096
|
-
#
|
2097
|
-
|
2098
|
-
# @return [Boolean]
|
2099
|
-
attr_accessor :create_new_model
|
2100
|
-
alias_method :create_new_model?, :create_new_model
|
2371
|
+
# The piece of text from the `source` that answers this suggested query.
|
2372
|
+
# Corresponds to the JSON property `answerText`
|
2373
|
+
# @return [String]
|
2374
|
+
attr_accessor :answer_text
|
2101
2375
|
|
2102
|
-
#
|
2103
|
-
# Corresponds to the JSON property `
|
2104
|
-
# @return [Google::Apis::ContactcenterinsightsV1::
|
2105
|
-
attr_accessor :
|
2376
|
+
# Details about source of FAQ answer.
|
2377
|
+
# Corresponds to the JSON property `faqSource`
|
2378
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource]
|
2379
|
+
attr_accessor :faq_source
|
2106
2380
|
|
2107
|
-
#
|
2108
|
-
# Corresponds to the JSON property `
|
2109
|
-
# @return [
|
2110
|
-
attr_accessor :
|
2381
|
+
# Details about source of Generative answer.
|
2382
|
+
# Corresponds to the JSON property `generativeSource`
|
2383
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource]
|
2384
|
+
attr_accessor :generative_source
|
2385
|
+
|
2386
|
+
# Details about source of Intent Matching answer.
|
2387
|
+
# Corresponds to the JSON property `intentMatchingSource`
|
2388
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource]
|
2389
|
+
attr_accessor :intent_matching_source
|
2390
|
+
|
2391
|
+
# The system's confidence score that this answer is a good match for this
|
2392
|
+
# conversational query. The range is from 0.0 (completely uncertain) to 1.0 (
|
2393
|
+
# completely certain).
|
2394
|
+
# Corresponds to the JSON property `matchConfidence`
|
2395
|
+
# @return [Float]
|
2396
|
+
attr_accessor :match_confidence
|
2111
2397
|
|
2112
2398
|
def initialize(**args)
|
2113
2399
|
update!(**args)
|
@@ -2115,20 +2401,28 @@ module Google
|
|
2115
2401
|
|
2116
2402
|
# Update properties of this object
|
2117
2403
|
def update!(**args)
|
2118
|
-
@
|
2119
|
-
@
|
2120
|
-
@
|
2404
|
+
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
2405
|
+
@faq_source = args[:faq_source] if args.key?(:faq_source)
|
2406
|
+
@generative_source = args[:generative_source] if args.key?(:generative_source)
|
2407
|
+
@intent_matching_source = args[:intent_matching_source] if args.key?(:intent_matching_source)
|
2408
|
+
@match_confidence = args[:match_confidence] if args.key?(:match_confidence)
|
2121
2409
|
end
|
2122
2410
|
end
|
2123
2411
|
|
2124
|
-
#
|
2125
|
-
class
|
2412
|
+
# Details about source of FAQ answer.
|
2413
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
|
2126
2414
|
include Google::Apis::Core::Hashable
|
2127
2415
|
|
2128
|
-
#
|
2129
|
-
#
|
2416
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
2417
|
+
# projects//knowledgeBases//documents/`.
|
2418
|
+
# Corresponds to the JSON property `document`
|
2130
2419
|
# @return [String]
|
2131
|
-
attr_accessor :
|
2420
|
+
attr_accessor :document
|
2421
|
+
|
2422
|
+
# The corresponding FAQ question.
|
2423
|
+
# Corresponds to the JSON property `question`
|
2424
|
+
# @return [String]
|
2425
|
+
attr_accessor :question
|
2132
2426
|
|
2133
2427
|
def initialize(**args)
|
2134
2428
|
update!(**args)
|
@@ -2136,52 +2430,55 @@ module Google
|
|
2136
2430
|
|
2137
2431
|
# Update properties of this object
|
2138
2432
|
def update!(**args)
|
2139
|
-
@
|
2433
|
+
@document = args[:document] if args.key?(:document)
|
2434
|
+
@question = args[:question] if args.key?(:question)
|
2140
2435
|
end
|
2141
2436
|
end
|
2142
2437
|
|
2143
|
-
#
|
2144
|
-
class
|
2438
|
+
# Details about source of Generative answer.
|
2439
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
|
2145
2440
|
include Google::Apis::Core::Hashable
|
2146
2441
|
|
2442
|
+
# All snippets used for this Generative Prediction, with their source URI and
|
2443
|
+
# data.
|
2444
|
+
# Corresponds to the JSON property `snippets`
|
2445
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet>]
|
2446
|
+
attr_accessor :snippets
|
2447
|
+
|
2147
2448
|
def initialize(**args)
|
2148
2449
|
update!(**args)
|
2149
2450
|
end
|
2150
2451
|
|
2151
2452
|
# Update properties of this object
|
2152
2453
|
def update!(**args)
|
2454
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
2153
2455
|
end
|
2154
2456
|
end
|
2155
2457
|
|
2156
|
-
#
|
2157
|
-
class
|
2458
|
+
# Snippet Source for a Generative Prediction.
|
2459
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
|
2158
2460
|
include Google::Apis::Core::Hashable
|
2159
2461
|
|
2160
|
-
#
|
2161
|
-
#
|
2462
|
+
# Indicates which Knowledge Document this snippet was extracted from. Format: `
|
2463
|
+
# projects//knowledgeBases//documents/`.
|
2464
|
+
# Corresponds to the JSON property `document`
|
2162
2465
|
# @return [String]
|
2163
|
-
attr_accessor :
|
2466
|
+
attr_accessor :document
|
2164
2467
|
|
2165
|
-
#
|
2166
|
-
# Corresponds to the JSON property `
|
2468
|
+
# text taken from that URI.
|
2469
|
+
# Corresponds to the JSON property `text`
|
2167
2470
|
# @return [String]
|
2168
|
-
attr_accessor :
|
2169
|
-
|
2170
|
-
# Statistics for IngestConversations operation.
|
2171
|
-
# Corresponds to the JSON property `ingestConversationsStats`
|
2172
|
-
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats]
|
2173
|
-
attr_accessor :ingest_conversations_stats
|
2471
|
+
attr_accessor :text
|
2174
2472
|
|
2175
|
-
#
|
2176
|
-
#
|
2177
|
-
#
|
2178
|
-
|
2179
|
-
attr_accessor :partial_errors
|
2473
|
+
# Title of the document.
|
2474
|
+
# Corresponds to the JSON property `title`
|
2475
|
+
# @return [String]
|
2476
|
+
attr_accessor :title
|
2180
2477
|
|
2181
|
-
#
|
2182
|
-
# Corresponds to the JSON property `
|
2183
|
-
# @return [
|
2184
|
-
attr_accessor :
|
2478
|
+
# URI the data is sourced from.
|
2479
|
+
# Corresponds to the JSON property `uri`
|
2480
|
+
# @return [String]
|
2481
|
+
attr_accessor :uri
|
2185
2482
|
|
2186
2483
|
def initialize(**args)
|
2187
2484
|
update!(**args)
|
@@ -2189,22 +2486,225 @@ module Google
|
|
2189
2486
|
|
2190
2487
|
# Update properties of this object
|
2191
2488
|
def update!(**args)
|
2192
|
-
@
|
2193
|
-
@
|
2194
|
-
@
|
2195
|
-
@
|
2196
|
-
@request = args[:request] if args.key?(:request)
|
2489
|
+
@document = args[:document] if args.key?(:document)
|
2490
|
+
@text = args[:text] if args.key?(:text)
|
2491
|
+
@title = args[:title] if args.key?(:title)
|
2492
|
+
@uri = args[:uri] if args.key?(:uri)
|
2197
2493
|
end
|
2198
2494
|
end
|
2199
2495
|
|
2200
|
-
#
|
2201
|
-
class
|
2496
|
+
# Details about source of Intent Matching answer.
|
2497
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
|
2202
2498
|
include Google::Apis::Core::Hashable
|
2203
2499
|
|
2204
|
-
#
|
2205
|
-
#
|
2206
|
-
#
|
2207
|
-
|
2500
|
+
# Title of the document.
|
2501
|
+
# Corresponds to the JSON property `title`
|
2502
|
+
# @return [String]
|
2503
|
+
attr_accessor :title
|
2504
|
+
|
2505
|
+
# URI the data is sourced from.
|
2506
|
+
# Corresponds to the JSON property `uri`
|
2507
|
+
# @return [String]
|
2508
|
+
attr_accessor :uri
|
2509
|
+
|
2510
|
+
def initialize(**args)
|
2511
|
+
update!(**args)
|
2512
|
+
end
|
2513
|
+
|
2514
|
+
# Update properties of this object
|
2515
|
+
def update!(**args)
|
2516
|
+
@title = args[:title] if args.key?(:title)
|
2517
|
+
@uri = args[:uri] if args.key?(:uri)
|
2518
|
+
end
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
# Represents a suggested query.
|
2522
|
+
class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery
|
2523
|
+
include Google::Apis::Core::Hashable
|
2524
|
+
|
2525
|
+
# Suggested query text.
|
2526
|
+
# Corresponds to the JSON property `queryText`
|
2527
|
+
# @return [String]
|
2528
|
+
attr_accessor :query_text
|
2529
|
+
|
2530
|
+
# Suggested query score.
|
2531
|
+
# Corresponds to the JSON property `score`
|
2532
|
+
# @return [Float]
|
2533
|
+
attr_accessor :score
|
2534
|
+
|
2535
|
+
def initialize(**args)
|
2536
|
+
update!(**args)
|
2537
|
+
end
|
2538
|
+
|
2539
|
+
# Update properties of this object
|
2540
|
+
def update!(**args)
|
2541
|
+
@query_text = args[:query_text] if args.key?(:query_text)
|
2542
|
+
@score = args[:score] if args.key?(:score)
|
2543
|
+
end
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
# The data for a hold annotation.
|
2547
|
+
class GoogleCloudContactcenterinsightsV1HoldData
|
2548
|
+
include Google::Apis::Core::Hashable
|
2549
|
+
|
2550
|
+
def initialize(**args)
|
2551
|
+
update!(**args)
|
2552
|
+
end
|
2553
|
+
|
2554
|
+
# Update properties of this object
|
2555
|
+
def update!(**args)
|
2556
|
+
end
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
# Metadata used for import issue model.
|
2560
|
+
class GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata
|
2561
|
+
include Google::Apis::Core::Hashable
|
2562
|
+
|
2563
|
+
# The time the operation was created.
|
2564
|
+
# Corresponds to the JSON property `createTime`
|
2565
|
+
# @return [String]
|
2566
|
+
attr_accessor :create_time
|
2567
|
+
|
2568
|
+
# The time the operation finished running.
|
2569
|
+
# Corresponds to the JSON property `endTime`
|
2570
|
+
# @return [String]
|
2571
|
+
attr_accessor :end_time
|
2572
|
+
|
2573
|
+
# Request to import an issue model.
|
2574
|
+
# Corresponds to the JSON property `request`
|
2575
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequest]
|
2576
|
+
attr_accessor :request
|
2577
|
+
|
2578
|
+
def initialize(**args)
|
2579
|
+
update!(**args)
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
# Update properties of this object
|
2583
|
+
def update!(**args)
|
2584
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2585
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
2586
|
+
@request = args[:request] if args.key?(:request)
|
2587
|
+
end
|
2588
|
+
end
|
2589
|
+
|
2590
|
+
# Request to import an issue model.
|
2591
|
+
class GoogleCloudContactcenterinsightsV1ImportIssueModelRequest
|
2592
|
+
include Google::Apis::Core::Hashable
|
2593
|
+
|
2594
|
+
# Optional. If set to true, will create a new issue model from the imported file
|
2595
|
+
# with randomly generated IDs for the issue model and corresponding issues.
|
2596
|
+
# Otherwise, replaces an existing model with the same ID as the file.
|
2597
|
+
# Corresponds to the JSON property `createNewModel`
|
2598
|
+
# @return [Boolean]
|
2599
|
+
attr_accessor :create_new_model
|
2600
|
+
alias_method :create_new_model?, :create_new_model
|
2601
|
+
|
2602
|
+
# Google Cloud Storage Object URI to get the issue model file from.
|
2603
|
+
# Corresponds to the JSON property `gcsSource`
|
2604
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource]
|
2605
|
+
attr_accessor :gcs_source
|
2606
|
+
|
2607
|
+
# Required. The parent resource of the issue model.
|
2608
|
+
# Corresponds to the JSON property `parent`
|
2609
|
+
# @return [String]
|
2610
|
+
attr_accessor :parent
|
2611
|
+
|
2612
|
+
def initialize(**args)
|
2613
|
+
update!(**args)
|
2614
|
+
end
|
2615
|
+
|
2616
|
+
# Update properties of this object
|
2617
|
+
def update!(**args)
|
2618
|
+
@create_new_model = args[:create_new_model] if args.key?(:create_new_model)
|
2619
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
2620
|
+
@parent = args[:parent] if args.key?(:parent)
|
2621
|
+
end
|
2622
|
+
end
|
2623
|
+
|
2624
|
+
# Google Cloud Storage Object URI to get the issue model file from.
|
2625
|
+
class GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource
|
2626
|
+
include Google::Apis::Core::Hashable
|
2627
|
+
|
2628
|
+
# Required. Format: `gs:///`
|
2629
|
+
# Corresponds to the JSON property `objectUri`
|
2630
|
+
# @return [String]
|
2631
|
+
attr_accessor :object_uri
|
2632
|
+
|
2633
|
+
def initialize(**args)
|
2634
|
+
update!(**args)
|
2635
|
+
end
|
2636
|
+
|
2637
|
+
# Update properties of this object
|
2638
|
+
def update!(**args)
|
2639
|
+
@object_uri = args[:object_uri] if args.key?(:object_uri)
|
2640
|
+
end
|
2641
|
+
end
|
2642
|
+
|
2643
|
+
# Response from import issue model
|
2644
|
+
class GoogleCloudContactcenterinsightsV1ImportIssueModelResponse
|
2645
|
+
include Google::Apis::Core::Hashable
|
2646
|
+
|
2647
|
+
def initialize(**args)
|
2648
|
+
update!(**args)
|
2649
|
+
end
|
2650
|
+
|
2651
|
+
# Update properties of this object
|
2652
|
+
def update!(**args)
|
2653
|
+
end
|
2654
|
+
end
|
2655
|
+
|
2656
|
+
# The metadata for an IngestConversations operation.
|
2657
|
+
class GoogleCloudContactcenterinsightsV1IngestConversationsMetadata
|
2658
|
+
include Google::Apis::Core::Hashable
|
2659
|
+
|
2660
|
+
# Output only. The time the operation was created.
|
2661
|
+
# Corresponds to the JSON property `createTime`
|
2662
|
+
# @return [String]
|
2663
|
+
attr_accessor :create_time
|
2664
|
+
|
2665
|
+
# Output only. The time the operation finished running.
|
2666
|
+
# Corresponds to the JSON property `endTime`
|
2667
|
+
# @return [String]
|
2668
|
+
attr_accessor :end_time
|
2669
|
+
|
2670
|
+
# Statistics for IngestConversations operation.
|
2671
|
+
# Corresponds to the JSON property `ingestConversationsStats`
|
2672
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats]
|
2673
|
+
attr_accessor :ingest_conversations_stats
|
2674
|
+
|
2675
|
+
# Output only. Partial errors during ingest operation that might cause the
|
2676
|
+
# operation output to be incomplete.
|
2677
|
+
# Corresponds to the JSON property `partialErrors`
|
2678
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
|
2679
|
+
attr_accessor :partial_errors
|
2680
|
+
|
2681
|
+
# The request to ingest conversations.
|
2682
|
+
# Corresponds to the JSON property `request`
|
2683
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest]
|
2684
|
+
attr_accessor :request
|
2685
|
+
|
2686
|
+
def initialize(**args)
|
2687
|
+
update!(**args)
|
2688
|
+
end
|
2689
|
+
|
2690
|
+
# Update properties of this object
|
2691
|
+
def update!(**args)
|
2692
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2693
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
2694
|
+
@ingest_conversations_stats = args[:ingest_conversations_stats] if args.key?(:ingest_conversations_stats)
|
2695
|
+
@partial_errors = args[:partial_errors] if args.key?(:partial_errors)
|
2696
|
+
@request = args[:request] if args.key?(:request)
|
2697
|
+
end
|
2698
|
+
end
|
2699
|
+
|
2700
|
+
# Statistics for IngestConversations operation.
|
2701
|
+
class GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats
|
2702
|
+
include Google::Apis::Core::Hashable
|
2703
|
+
|
2704
|
+
# Output only. The number of objects skipped because another conversation with
|
2705
|
+
# the same transcript uri had already been ingested.
|
2706
|
+
# Corresponds to the JSON property `duplicatesSkippedCount`
|
2707
|
+
# @return [Fixnum]
|
2208
2708
|
attr_accessor :duplicates_skipped_count
|
2209
2709
|
|
2210
2710
|
# Output only. The number of objects which were unable to be ingested due to
|
@@ -3157,6 +3657,22 @@ module Google
|
|
3157
3657
|
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FaqAnswerData]
|
3158
3658
|
attr_accessor :faq_answer
|
3159
3659
|
|
3660
|
+
# Represents response from generators.
|
3661
|
+
# Corresponds to the JSON property `generatorSuggestionResult`
|
3662
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse]
|
3663
|
+
attr_accessor :generator_suggestion_result
|
3664
|
+
|
3665
|
+
# Response for Knowledge Assist. Contains suggested query and optionally
|
3666
|
+
# includes an answer for the query.
|
3667
|
+
# Corresponds to the JSON property `knowledgeAssistResult`
|
3668
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse]
|
3669
|
+
attr_accessor :knowledge_assist_result
|
3670
|
+
|
3671
|
+
# Represents a SearchKnowledge answer.
|
3672
|
+
# Corresponds to the JSON property `knowledgeSearchResult`
|
3673
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer]
|
3674
|
+
attr_accessor :knowledge_search_result
|
3675
|
+
|
3160
3676
|
# Agent Assist Smart Compose suggestion data.
|
3161
3677
|
# Corresponds to the JSON property `smartComposeSuggestion`
|
3162
3678
|
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData]
|
@@ -3186,12 +3702,97 @@ module Google
|
|
3186
3702
|
@dialogflow_interaction = args[:dialogflow_interaction] if args.key?(:dialogflow_interaction)
|
3187
3703
|
@end_boundary = args[:end_boundary] if args.key?(:end_boundary)
|
3188
3704
|
@faq_answer = args[:faq_answer] if args.key?(:faq_answer)
|
3705
|
+
@generator_suggestion_result = args[:generator_suggestion_result] if args.key?(:generator_suggestion_result)
|
3706
|
+
@knowledge_assist_result = args[:knowledge_assist_result] if args.key?(:knowledge_assist_result)
|
3707
|
+
@knowledge_search_result = args[:knowledge_search_result] if args.key?(:knowledge_search_result)
|
3189
3708
|
@smart_compose_suggestion = args[:smart_compose_suggestion] if args.key?(:smart_compose_suggestion)
|
3190
3709
|
@smart_reply = args[:smart_reply] if args.key?(:smart_reply)
|
3191
3710
|
@start_boundary = args[:start_boundary] if args.key?(:start_boundary)
|
3192
3711
|
end
|
3193
3712
|
end
|
3194
3713
|
|
3714
|
+
# Represents a SearchKnowledge answer.
|
3715
|
+
class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
|
3716
|
+
include Google::Apis::Core::Hashable
|
3717
|
+
|
3718
|
+
# The piece of text from the knowledge base documents that answers the search
|
3719
|
+
# query
|
3720
|
+
# Corresponds to the JSON property `answer`
|
3721
|
+
# @return [String]
|
3722
|
+
attr_accessor :answer
|
3723
|
+
|
3724
|
+
# The name of the answer record. Format: `projects//locations//answer Records/`
|
3725
|
+
# Corresponds to the JSON property `answerRecord`
|
3726
|
+
# @return [String]
|
3727
|
+
attr_accessor :answer_record
|
3728
|
+
|
3729
|
+
# All sources used to generate the answer.
|
3730
|
+
# Corresponds to the JSON property `answerSources`
|
3731
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource>]
|
3732
|
+
attr_accessor :answer_sources
|
3733
|
+
|
3734
|
+
# The type of the answer.
|
3735
|
+
# Corresponds to the JSON property `answerType`
|
3736
|
+
# @return [String]
|
3737
|
+
attr_accessor :answer_type
|
3738
|
+
|
3739
|
+
# The confidence score in [0.0, 1.0] range.
|
3740
|
+
# Corresponds to the JSON property `confidenceScore`
|
3741
|
+
# @return [Float]
|
3742
|
+
attr_accessor :confidence_score
|
3743
|
+
|
3744
|
+
def initialize(**args)
|
3745
|
+
update!(**args)
|
3746
|
+
end
|
3747
|
+
|
3748
|
+
# Update properties of this object
|
3749
|
+
def update!(**args)
|
3750
|
+
@answer = args[:answer] if args.key?(:answer)
|
3751
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
3752
|
+
@answer_sources = args[:answer_sources] if args.key?(:answer_sources)
|
3753
|
+
@answer_type = args[:answer_type] if args.key?(:answer_type)
|
3754
|
+
@confidence_score = args[:confidence_score] if args.key?(:confidence_score)
|
3755
|
+
end
|
3756
|
+
end
|
3757
|
+
|
3758
|
+
# The sources of the answers.
|
3759
|
+
class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource
|
3760
|
+
include Google::Apis::Core::Hashable
|
3761
|
+
|
3762
|
+
# The document from which the snippet was extracted. Format: `projects//
|
3763
|
+
# knowledgeBases//documents/`
|
3764
|
+
# Corresponds to the JSON property `document`
|
3765
|
+
# @return [String]
|
3766
|
+
attr_accessor :document
|
3767
|
+
|
3768
|
+
# The relevant snippet of the article.
|
3769
|
+
# Corresponds to the JSON property `snippet`
|
3770
|
+
# @return [String]
|
3771
|
+
attr_accessor :snippet
|
3772
|
+
|
3773
|
+
# The title of the article.
|
3774
|
+
# Corresponds to the JSON property `title`
|
3775
|
+
# @return [String]
|
3776
|
+
attr_accessor :title
|
3777
|
+
|
3778
|
+
# The URI of the article.
|
3779
|
+
# Corresponds to the JSON property `uri`
|
3780
|
+
# @return [String]
|
3781
|
+
attr_accessor :uri
|
3782
|
+
|
3783
|
+
def initialize(**args)
|
3784
|
+
update!(**args)
|
3785
|
+
end
|
3786
|
+
|
3787
|
+
# Update properties of this object
|
3788
|
+
def update!(**args)
|
3789
|
+
@document = args[:document] if args.key?(:document)
|
3790
|
+
@snippet = args[:snippet] if args.key?(:snippet)
|
3791
|
+
@title = args[:title] if args.key?(:title)
|
3792
|
+
@uri = args[:uri] if args.key?(:uri)
|
3793
|
+
end
|
3794
|
+
end
|
3795
|
+
|
3195
3796
|
# The data for a sentiment annotation.
|
3196
3797
|
class GoogleCloudContactcenterinsightsV1SentimentData
|
3197
3798
|
include Google::Apis::Core::Hashable
|
@@ -3449,6 +4050,50 @@ module Google
|
|
3449
4050
|
end
|
3450
4051
|
end
|
3451
4052
|
|
4053
|
+
# Suggested summary of the conversation.
|
4054
|
+
class GoogleCloudContactcenterinsightsV1SummarySuggestion
|
4055
|
+
include Google::Apis::Core::Hashable
|
4056
|
+
|
4057
|
+
# Required. All the parts of generated summary.
|
4058
|
+
# Corresponds to the JSON property `summarySections`
|
4059
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection>]
|
4060
|
+
attr_accessor :summary_sections
|
4061
|
+
|
4062
|
+
def initialize(**args)
|
4063
|
+
update!(**args)
|
4064
|
+
end
|
4065
|
+
|
4066
|
+
# Update properties of this object
|
4067
|
+
def update!(**args)
|
4068
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
4069
|
+
end
|
4070
|
+
end
|
4071
|
+
|
4072
|
+
# A component of the generated summary.
|
4073
|
+
class GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection
|
4074
|
+
include Google::Apis::Core::Hashable
|
4075
|
+
|
4076
|
+
# Required. Name of the section.
|
4077
|
+
# Corresponds to the JSON property `section`
|
4078
|
+
# @return [String]
|
4079
|
+
attr_accessor :section
|
4080
|
+
|
4081
|
+
# Required. Summary text for the section.
|
4082
|
+
# Corresponds to the JSON property `summary`
|
4083
|
+
# @return [String]
|
4084
|
+
attr_accessor :summary
|
4085
|
+
|
4086
|
+
def initialize(**args)
|
4087
|
+
update!(**args)
|
4088
|
+
end
|
4089
|
+
|
4090
|
+
# Update properties of this object
|
4091
|
+
def update!(**args)
|
4092
|
+
@section = args[:section] if args.key?(:section)
|
4093
|
+
@summary = args[:summary] if args.key?(:summary)
|
4094
|
+
end
|
4095
|
+
end
|
4096
|
+
|
3452
4097
|
# Metadata for undeploying an issue model.
|
3453
4098
|
class GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata
|
3454
4099
|
include Google::Apis::Core::Hashable
|
@@ -3646,6 +4291,193 @@ module Google
|
|
3646
4291
|
end
|
3647
4292
|
end
|
3648
4293
|
|
4294
|
+
# Agent Coaching instructions that customer can configure.
|
4295
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction
|
4296
|
+
include Google::Apis::Core::Hashable
|
4297
|
+
|
4298
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
4299
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
4300
|
+
# detection, agent_action can be empty
|
4301
|
+
# Corresponds to the JSON property `agentAction`
|
4302
|
+
# @return [String]
|
4303
|
+
attr_accessor :agent_action
|
4304
|
+
|
4305
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
4306
|
+
# to cancel an order". If the users want the instruction to be triggered
|
4307
|
+
# unconditionally, the condition can be empty.
|
4308
|
+
# Corresponds to the JSON property `condition`
|
4309
|
+
# @return [String]
|
4310
|
+
attr_accessor :condition
|
4311
|
+
|
4312
|
+
# Optional. The detailed description of this instruction.
|
4313
|
+
# Corresponds to the JSON property `description`
|
4314
|
+
# @return [String]
|
4315
|
+
attr_accessor :description
|
4316
|
+
|
4317
|
+
# Optional. Display name for the instruction.
|
4318
|
+
# Corresponds to the JSON property `displayName`
|
4319
|
+
# @return [String]
|
4320
|
+
attr_accessor :display_name
|
4321
|
+
|
4322
|
+
# Optional. Additional information attached to this instruction.
|
4323
|
+
# Corresponds to the JSON property `metadata`
|
4324
|
+
# @return [Hash<String,String>]
|
4325
|
+
attr_accessor :metadata
|
4326
|
+
|
4327
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
4328
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
4329
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
4330
|
+
# Corresponds to the JSON property `systemAction`
|
4331
|
+
# @return [String]
|
4332
|
+
attr_accessor :system_action
|
4333
|
+
|
4334
|
+
def initialize(**args)
|
4335
|
+
update!(**args)
|
4336
|
+
end
|
4337
|
+
|
4338
|
+
# Update properties of this object
|
4339
|
+
def update!(**args)
|
4340
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
4341
|
+
@condition = args[:condition] if args.key?(:condition)
|
4342
|
+
@description = args[:description] if args.key?(:description)
|
4343
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4344
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
4345
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
4346
|
+
end
|
4347
|
+
end
|
4348
|
+
|
4349
|
+
# Suggestion for coaching agents.
|
4350
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion
|
4351
|
+
include Google::Apis::Core::Hashable
|
4352
|
+
|
4353
|
+
# Optional. Suggested actions for the agent to take.
|
4354
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
4355
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion>]
|
4356
|
+
attr_accessor :agent_action_suggestions
|
4357
|
+
|
4358
|
+
# Optional. Instructions applicable based on the current context.
|
4359
|
+
# Corresponds to the JSON property `applicableInstructions`
|
4360
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction>]
|
4361
|
+
attr_accessor :applicable_instructions
|
4362
|
+
|
4363
|
+
# Optional. Sample response for the Agent.
|
4364
|
+
# Corresponds to the JSON property `sampleResponses`
|
4365
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse>]
|
4366
|
+
attr_accessor :sample_responses
|
4367
|
+
|
4368
|
+
# Self evaluations of the suggestion.
|
4369
|
+
# Corresponds to the JSON property `suggestionEval`
|
4370
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval]
|
4371
|
+
attr_accessor :suggestion_eval
|
4372
|
+
|
4373
|
+
# Reasoning for the suggestion.
|
4374
|
+
# Corresponds to the JSON property `suggestionReasoning`
|
4375
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning]
|
4376
|
+
attr_accessor :suggestion_reasoning
|
4377
|
+
|
4378
|
+
def initialize(**args)
|
4379
|
+
update!(**args)
|
4380
|
+
end
|
4381
|
+
|
4382
|
+
# Update properties of this object
|
4383
|
+
def update!(**args)
|
4384
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
4385
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
4386
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
4387
|
+
@suggestion_eval = args[:suggestion_eval] if args.key?(:suggestion_eval)
|
4388
|
+
@suggestion_reasoning = args[:suggestion_reasoning] if args.key?(:suggestion_reasoning)
|
4389
|
+
end
|
4390
|
+
end
|
4391
|
+
|
4392
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
4393
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion
|
4394
|
+
include Google::Apis::Core::Hashable
|
4395
|
+
|
4396
|
+
# Optional. The suggested action for the agent.
|
4397
|
+
# Corresponds to the JSON property `agentAction`
|
4398
|
+
# @return [String]
|
4399
|
+
attr_accessor :agent_action
|
4400
|
+
|
4401
|
+
def initialize(**args)
|
4402
|
+
update!(**args)
|
4403
|
+
end
|
4404
|
+
|
4405
|
+
# Update properties of this object
|
4406
|
+
def update!(**args)
|
4407
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
4408
|
+
end
|
4409
|
+
end
|
4410
|
+
|
4411
|
+
# Self evaluations of the suggestion.
|
4412
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval
|
4413
|
+
include Google::Apis::Core::Hashable
|
4414
|
+
|
4415
|
+
# Optional. Eval for Agent action suggestion.
|
4416
|
+
# Corresponds to the JSON property `actionActionSuggestionEval`
|
4417
|
+
# @return [String]
|
4418
|
+
attr_accessor :action_action_suggestion_eval
|
4419
|
+
|
4420
|
+
# Optional. Eval for sample response.
|
4421
|
+
# Corresponds to the JSON property `sampleResponseEval`
|
4422
|
+
# @return [String]
|
4423
|
+
attr_accessor :sample_response_eval
|
4424
|
+
|
4425
|
+
def initialize(**args)
|
4426
|
+
update!(**args)
|
4427
|
+
end
|
4428
|
+
|
4429
|
+
# Update properties of this object
|
4430
|
+
def update!(**args)
|
4431
|
+
@action_action_suggestion_eval = args[:action_action_suggestion_eval] if args.key?(:action_action_suggestion_eval)
|
4432
|
+
@sample_response_eval = args[:sample_response_eval] if args.key?(:sample_response_eval)
|
4433
|
+
end
|
4434
|
+
end
|
4435
|
+
|
4436
|
+
# Reasoning for the suggestion.
|
4437
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
|
4438
|
+
include Google::Apis::Core::Hashable
|
4439
|
+
|
4440
|
+
# Optional. The actions that the agent has taken already.
|
4441
|
+
# Corresponds to the JSON property `agentActionTaken`
|
4442
|
+
# @return [String]
|
4443
|
+
attr_accessor :agent_action_taken
|
4444
|
+
|
4445
|
+
# Optional. Summary of the issue.
|
4446
|
+
# Corresponds to the JSON property `issueSummary`
|
4447
|
+
# @return [String]
|
4448
|
+
attr_accessor :issue_summary
|
4449
|
+
|
4450
|
+
def initialize(**args)
|
4451
|
+
update!(**args)
|
4452
|
+
end
|
4453
|
+
|
4454
|
+
# Update properties of this object
|
4455
|
+
def update!(**args)
|
4456
|
+
@agent_action_taken = args[:agent_action_taken] if args.key?(:agent_action_taken)
|
4457
|
+
@issue_summary = args[:issue_summary] if args.key?(:issue_summary)
|
4458
|
+
end
|
4459
|
+
end
|
4460
|
+
|
4461
|
+
# Sample response that the agent can use. This could be based on applicable
|
4462
|
+
# instructions and ingested data from other systems.
|
4463
|
+
class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse
|
4464
|
+
include Google::Apis::Core::Hashable
|
4465
|
+
|
4466
|
+
# Optional. Sample response for Agent in text.
|
4467
|
+
# Corresponds to the JSON property `responseText`
|
4468
|
+
# @return [String]
|
4469
|
+
attr_accessor :response_text
|
4470
|
+
|
4471
|
+
def initialize(**args)
|
4472
|
+
update!(**args)
|
4473
|
+
end
|
4474
|
+
|
4475
|
+
# Update properties of this object
|
4476
|
+
def update!(**args)
|
4477
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
4478
|
+
end
|
4479
|
+
end
|
4480
|
+
|
3649
4481
|
# The analysis resource.
|
3650
4482
|
class GoogleCloudContactcenterinsightsV1alpha1Analysis
|
3651
4483
|
include Google::Apis::Core::Hashable
|
@@ -3750,6 +4582,11 @@ module Google
|
|
3750
4582
|
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment>]
|
3751
4583
|
attr_accessor :sentiments
|
3752
4584
|
|
4585
|
+
# Conversation-level silence data.
|
4586
|
+
# Corresponds to the JSON property `silence`
|
4587
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence]
|
4588
|
+
attr_accessor :silence
|
4589
|
+
|
3753
4590
|
def initialize(**args)
|
3754
4591
|
update!(**args)
|
3755
4592
|
end
|
@@ -3762,6 +4599,7 @@ module Google
|
|
3762
4599
|
@issue_model_result = args[:issue_model_result] if args.key?(:issue_model_result)
|
3763
4600
|
@phrase_matchers = args[:phrase_matchers] if args.key?(:phrase_matchers)
|
3764
4601
|
@sentiments = args[:sentiments] if args.key?(:sentiments)
|
4602
|
+
@silence = args[:silence] if args.key?(:silence)
|
3765
4603
|
end
|
3766
4604
|
end
|
3767
4605
|
|
@@ -4518,6 +5356,31 @@ module Google
|
|
4518
5356
|
end
|
4519
5357
|
end
|
4520
5358
|
|
5359
|
+
# Conversation-level silence data.
|
5360
|
+
class GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence
|
5361
|
+
include Google::Apis::Core::Hashable
|
5362
|
+
|
5363
|
+
# Amount of time calculated to be in silence.
|
5364
|
+
# Corresponds to the JSON property `silenceDuration`
|
5365
|
+
# @return [String]
|
5366
|
+
attr_accessor :silence_duration
|
5367
|
+
|
5368
|
+
# Percentage of the total conversation spent in silence.
|
5369
|
+
# Corresponds to the JSON property `silencePercentage`
|
5370
|
+
# @return [Float]
|
5371
|
+
attr_accessor :silence_percentage
|
5372
|
+
|
5373
|
+
def initialize(**args)
|
5374
|
+
update!(**args)
|
5375
|
+
end
|
5376
|
+
|
5377
|
+
# Update properties of this object
|
5378
|
+
def update!(**args)
|
5379
|
+
@silence_duration = args[:silence_duration] if args.key?(:silence_duration)
|
5380
|
+
@silence_percentage = args[:silence_percentage] if args.key?(:silence_percentage)
|
5381
|
+
end
|
5382
|
+
end
|
5383
|
+
|
4521
5384
|
# The call participant speaking for a given utterance.
|
4522
5385
|
class GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant
|
4523
5386
|
include Google::Apis::Core::Hashable
|
@@ -5483,6 +6346,31 @@ module Google
|
|
5483
6346
|
end
|
5484
6347
|
end
|
5485
6348
|
|
6349
|
+
# Suggestion generated using free form generator.
|
6350
|
+
class GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion
|
6351
|
+
include Google::Apis::Core::Hashable
|
6352
|
+
|
6353
|
+
# Optional. Labels for the generator.
|
6354
|
+
# Corresponds to the JSON property `labels`
|
6355
|
+
# @return [Array<String>]
|
6356
|
+
attr_accessor :labels
|
6357
|
+
|
6358
|
+
# Required. Free form suggestion.
|
6359
|
+
# Corresponds to the JSON property `response`
|
6360
|
+
# @return [String]
|
6361
|
+
attr_accessor :response
|
6362
|
+
|
6363
|
+
def initialize(**args)
|
6364
|
+
update!(**args)
|
6365
|
+
end
|
6366
|
+
|
6367
|
+
# Update properties of this object
|
6368
|
+
def update!(**args)
|
6369
|
+
@labels = args[:labels] if args.key?(:labels)
|
6370
|
+
@response = args[:response] if args.key?(:response)
|
6371
|
+
end
|
6372
|
+
end
|
6373
|
+
|
5486
6374
|
# A Cloud Storage source of conversation data.
|
5487
6375
|
class GoogleCloudContactcenterinsightsV1alpha1GcsSource
|
5488
6376
|
include Google::Apis::Core::Hashable
|
@@ -5509,6 +6397,263 @@ module Google
|
|
5509
6397
|
end
|
5510
6398
|
end
|
5511
6399
|
|
6400
|
+
# Suggestion generated using a Generator.
|
6401
|
+
class GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion
|
6402
|
+
include Google::Apis::Core::Hashable
|
6403
|
+
|
6404
|
+
# Suggestion for coaching agents.
|
6405
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
6406
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion]
|
6407
|
+
attr_accessor :agent_coaching_suggestion
|
6408
|
+
|
6409
|
+
# Suggestion generated using free form generator.
|
6410
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
6411
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion]
|
6412
|
+
attr_accessor :free_form_suggestion
|
6413
|
+
|
6414
|
+
# Suggested summary of the conversation.
|
6415
|
+
# Corresponds to the JSON property `summarySuggestion`
|
6416
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion]
|
6417
|
+
attr_accessor :summary_suggestion
|
6418
|
+
|
6419
|
+
def initialize(**args)
|
6420
|
+
update!(**args)
|
6421
|
+
end
|
6422
|
+
|
6423
|
+
# Update properties of this object
|
6424
|
+
def update!(**args)
|
6425
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
6426
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
6427
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
6428
|
+
end
|
6429
|
+
end
|
6430
|
+
|
6431
|
+
# Represents response from generators.
|
6432
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse
|
6433
|
+
include Google::Apis::Core::Hashable
|
6434
|
+
|
6435
|
+
# Suggestion generated using a Generator.
|
6436
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
6437
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion]
|
6438
|
+
attr_accessor :generator_suggestion
|
6439
|
+
|
6440
|
+
def initialize(**args)
|
6441
|
+
update!(**args)
|
6442
|
+
end
|
6443
|
+
|
6444
|
+
# Update properties of this object
|
6445
|
+
def update!(**args)
|
6446
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
6447
|
+
end
|
6448
|
+
end
|
6449
|
+
|
6450
|
+
# Response for Knowledge Assist. Contains suggested query and optionally
|
6451
|
+
# includes an answer for the query.
|
6452
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse
|
6453
|
+
include Google::Apis::Core::Hashable
|
6454
|
+
|
6455
|
+
# Represents a suggested query.
|
6456
|
+
# Corresponds to the JSON property `suggestedQuery`
|
6457
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery]
|
6458
|
+
attr_accessor :suggested_query
|
6459
|
+
|
6460
|
+
# Represents an answer from Knowledge. Cuurently supports FAQ and Generative
|
6461
|
+
# answers.
|
6462
|
+
# Corresponds to the JSON property `suggestedQueryAnswer`
|
6463
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer]
|
6464
|
+
attr_accessor :suggested_query_answer
|
6465
|
+
|
6466
|
+
def initialize(**args)
|
6467
|
+
update!(**args)
|
6468
|
+
end
|
6469
|
+
|
6470
|
+
# Update properties of this object
|
6471
|
+
def update!(**args)
|
6472
|
+
@suggested_query = args[:suggested_query] if args.key?(:suggested_query)
|
6473
|
+
@suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
|
6474
|
+
end
|
6475
|
+
end
|
6476
|
+
|
6477
|
+
# Represents an answer from Knowledge. Cuurently supports FAQ and Generative
|
6478
|
+
# answers.
|
6479
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
|
6480
|
+
include Google::Apis::Core::Hashable
|
6481
|
+
|
6482
|
+
# The piece of text from the `source` that answers this suggested query.
|
6483
|
+
# Corresponds to the JSON property `answerText`
|
6484
|
+
# @return [String]
|
6485
|
+
attr_accessor :answer_text
|
6486
|
+
|
6487
|
+
# Details about source of FAQ answer.
|
6488
|
+
# Corresponds to the JSON property `faqSource`
|
6489
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource]
|
6490
|
+
attr_accessor :faq_source
|
6491
|
+
|
6492
|
+
# Details about source of Generative answer.
|
6493
|
+
# Corresponds to the JSON property `generativeSource`
|
6494
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource]
|
6495
|
+
attr_accessor :generative_source
|
6496
|
+
|
6497
|
+
# Details about source of Intent Matching answer.
|
6498
|
+
# Corresponds to the JSON property `intentMatchingSource`
|
6499
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource]
|
6500
|
+
attr_accessor :intent_matching_source
|
6501
|
+
|
6502
|
+
# The system's confidence score that this answer is a good match for this
|
6503
|
+
# conversational query. The range is from 0.0 (completely uncertain) to 1.0 (
|
6504
|
+
# completely certain).
|
6505
|
+
# Corresponds to the JSON property `matchConfidence`
|
6506
|
+
# @return [Float]
|
6507
|
+
attr_accessor :match_confidence
|
6508
|
+
|
6509
|
+
def initialize(**args)
|
6510
|
+
update!(**args)
|
6511
|
+
end
|
6512
|
+
|
6513
|
+
# Update properties of this object
|
6514
|
+
def update!(**args)
|
6515
|
+
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
6516
|
+
@faq_source = args[:faq_source] if args.key?(:faq_source)
|
6517
|
+
@generative_source = args[:generative_source] if args.key?(:generative_source)
|
6518
|
+
@intent_matching_source = args[:intent_matching_source] if args.key?(:intent_matching_source)
|
6519
|
+
@match_confidence = args[:match_confidence] if args.key?(:match_confidence)
|
6520
|
+
end
|
6521
|
+
end
|
6522
|
+
|
6523
|
+
# Details about source of FAQ answer.
|
6524
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
|
6525
|
+
include Google::Apis::Core::Hashable
|
6526
|
+
|
6527
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
6528
|
+
# projects//knowledgeBases//documents/`.
|
6529
|
+
# Corresponds to the JSON property `document`
|
6530
|
+
# @return [String]
|
6531
|
+
attr_accessor :document
|
6532
|
+
|
6533
|
+
# The corresponding FAQ question.
|
6534
|
+
# Corresponds to the JSON property `question`
|
6535
|
+
# @return [String]
|
6536
|
+
attr_accessor :question
|
6537
|
+
|
6538
|
+
def initialize(**args)
|
6539
|
+
update!(**args)
|
6540
|
+
end
|
6541
|
+
|
6542
|
+
# Update properties of this object
|
6543
|
+
def update!(**args)
|
6544
|
+
@document = args[:document] if args.key?(:document)
|
6545
|
+
@question = args[:question] if args.key?(:question)
|
6546
|
+
end
|
6547
|
+
end
|
6548
|
+
|
6549
|
+
# Details about source of Generative answer.
|
6550
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
|
6551
|
+
include Google::Apis::Core::Hashable
|
6552
|
+
|
6553
|
+
# All snippets used for this Generative Prediction, with their source URI and
|
6554
|
+
# data.
|
6555
|
+
# Corresponds to the JSON property `snippets`
|
6556
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet>]
|
6557
|
+
attr_accessor :snippets
|
6558
|
+
|
6559
|
+
def initialize(**args)
|
6560
|
+
update!(**args)
|
6561
|
+
end
|
6562
|
+
|
6563
|
+
# Update properties of this object
|
6564
|
+
def update!(**args)
|
6565
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
6566
|
+
end
|
6567
|
+
end
|
6568
|
+
|
6569
|
+
# Snippet Source for a Generative Prediction.
|
6570
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
|
6571
|
+
include Google::Apis::Core::Hashable
|
6572
|
+
|
6573
|
+
# Indicates which Knowledge Document this snippet was extracted from. Format: `
|
6574
|
+
# projects//knowledgeBases//documents/`.
|
6575
|
+
# Corresponds to the JSON property `document`
|
6576
|
+
# @return [String]
|
6577
|
+
attr_accessor :document
|
6578
|
+
|
6579
|
+
# text taken from that URI.
|
6580
|
+
# Corresponds to the JSON property `text`
|
6581
|
+
# @return [String]
|
6582
|
+
attr_accessor :text
|
6583
|
+
|
6584
|
+
# Title of the document.
|
6585
|
+
# Corresponds to the JSON property `title`
|
6586
|
+
# @return [String]
|
6587
|
+
attr_accessor :title
|
6588
|
+
|
6589
|
+
# URI the data is sourced from.
|
6590
|
+
# Corresponds to the JSON property `uri`
|
6591
|
+
# @return [String]
|
6592
|
+
attr_accessor :uri
|
6593
|
+
|
6594
|
+
def initialize(**args)
|
6595
|
+
update!(**args)
|
6596
|
+
end
|
6597
|
+
|
6598
|
+
# Update properties of this object
|
6599
|
+
def update!(**args)
|
6600
|
+
@document = args[:document] if args.key?(:document)
|
6601
|
+
@text = args[:text] if args.key?(:text)
|
6602
|
+
@title = args[:title] if args.key?(:title)
|
6603
|
+
@uri = args[:uri] if args.key?(:uri)
|
6604
|
+
end
|
6605
|
+
end
|
6606
|
+
|
6607
|
+
# Details about source of Intent Matching answer.
|
6608
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
|
6609
|
+
include Google::Apis::Core::Hashable
|
6610
|
+
|
6611
|
+
# Title of the document.
|
6612
|
+
# Corresponds to the JSON property `title`
|
6613
|
+
# @return [String]
|
6614
|
+
attr_accessor :title
|
6615
|
+
|
6616
|
+
# URI the data is sourced from.
|
6617
|
+
# Corresponds to the JSON property `uri`
|
6618
|
+
# @return [String]
|
6619
|
+
attr_accessor :uri
|
6620
|
+
|
6621
|
+
def initialize(**args)
|
6622
|
+
update!(**args)
|
6623
|
+
end
|
6624
|
+
|
6625
|
+
# Update properties of this object
|
6626
|
+
def update!(**args)
|
6627
|
+
@title = args[:title] if args.key?(:title)
|
6628
|
+
@uri = args[:uri] if args.key?(:uri)
|
6629
|
+
end
|
6630
|
+
end
|
6631
|
+
|
6632
|
+
# Represents a suggested query.
|
6633
|
+
class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery
|
6634
|
+
include Google::Apis::Core::Hashable
|
6635
|
+
|
6636
|
+
# Suggested query text.
|
6637
|
+
# Corresponds to the JSON property `queryText`
|
6638
|
+
# @return [String]
|
6639
|
+
attr_accessor :query_text
|
6640
|
+
|
6641
|
+
# Suggested query score.
|
6642
|
+
# Corresponds to the JSON property `score`
|
6643
|
+
# @return [Float]
|
6644
|
+
attr_accessor :score
|
6645
|
+
|
6646
|
+
def initialize(**args)
|
6647
|
+
update!(**args)
|
6648
|
+
end
|
6649
|
+
|
6650
|
+
# Update properties of this object
|
6651
|
+
def update!(**args)
|
6652
|
+
@query_text = args[:query_text] if args.key?(:query_text)
|
6653
|
+
@score = args[:score] if args.key?(:score)
|
6654
|
+
end
|
6655
|
+
end
|
6656
|
+
|
5512
6657
|
# The data for a hold annotation.
|
5513
6658
|
class GoogleCloudContactcenterinsightsV1alpha1HoldData
|
5514
6659
|
include Google::Apis::Core::Hashable
|
@@ -6270,6 +7415,22 @@ module Google
|
|
6270
7415
|
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData]
|
6271
7416
|
attr_accessor :faq_answer
|
6272
7417
|
|
7418
|
+
# Represents response from generators.
|
7419
|
+
# Corresponds to the JSON property `generatorSuggestionResult`
|
7420
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse]
|
7421
|
+
attr_accessor :generator_suggestion_result
|
7422
|
+
|
7423
|
+
# Response for Knowledge Assist. Contains suggested query and optionally
|
7424
|
+
# includes an answer for the query.
|
7425
|
+
# Corresponds to the JSON property `knowledgeAssistResult`
|
7426
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse]
|
7427
|
+
attr_accessor :knowledge_assist_result
|
7428
|
+
|
7429
|
+
# Represents a SearchKnowledge answer.
|
7430
|
+
# Corresponds to the JSON property `knowledgeSearchResult`
|
7431
|
+
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer]
|
7432
|
+
attr_accessor :knowledge_search_result
|
7433
|
+
|
6273
7434
|
# Agent Assist Smart Compose suggestion data.
|
6274
7435
|
# Corresponds to the JSON property `smartComposeSuggestion`
|
6275
7436
|
# @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData]
|
@@ -6299,12 +7460,97 @@ module Google
|
|
6299
7460
|
@dialogflow_interaction = args[:dialogflow_interaction] if args.key?(:dialogflow_interaction)
|
6300
7461
|
@end_boundary = args[:end_boundary] if args.key?(:end_boundary)
|
6301
7462
|
@faq_answer = args[:faq_answer] if args.key?(:faq_answer)
|
7463
|
+
@generator_suggestion_result = args[:generator_suggestion_result] if args.key?(:generator_suggestion_result)
|
7464
|
+
@knowledge_assist_result = args[:knowledge_assist_result] if args.key?(:knowledge_assist_result)
|
7465
|
+
@knowledge_search_result = args[:knowledge_search_result] if args.key?(:knowledge_search_result)
|
6302
7466
|
@smart_compose_suggestion = args[:smart_compose_suggestion] if args.key?(:smart_compose_suggestion)
|
6303
7467
|
@smart_reply = args[:smart_reply] if args.key?(:smart_reply)
|
6304
7468
|
@start_boundary = args[:start_boundary] if args.key?(:start_boundary)
|
6305
7469
|
end
|
6306
7470
|
end
|
6307
7471
|
|
7472
|
+
# Represents a SearchKnowledge answer.
|
7473
|
+
class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
|
7474
|
+
include Google::Apis::Core::Hashable
|
7475
|
+
|
7476
|
+
# The piece of text from the knowledge base documents that answers the search
|
7477
|
+
# query
|
7478
|
+
# Corresponds to the JSON property `answer`
|
7479
|
+
# @return [String]
|
7480
|
+
attr_accessor :answer
|
7481
|
+
|
7482
|
+
# The name of the answer record. Format: `projects//locations//answer Records/`
|
7483
|
+
# Corresponds to the JSON property `answerRecord`
|
7484
|
+
# @return [String]
|
7485
|
+
attr_accessor :answer_record
|
7486
|
+
|
7487
|
+
# All sources used to generate the answer.
|
7488
|
+
# Corresponds to the JSON property `answerSources`
|
7489
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource>]
|
7490
|
+
attr_accessor :answer_sources
|
7491
|
+
|
7492
|
+
# The type of the answer.
|
7493
|
+
# Corresponds to the JSON property `answerType`
|
7494
|
+
# @return [String]
|
7495
|
+
attr_accessor :answer_type
|
7496
|
+
|
7497
|
+
# The confidence score in [0.0, 1.0] range.
|
7498
|
+
# Corresponds to the JSON property `confidenceScore`
|
7499
|
+
# @return [Float]
|
7500
|
+
attr_accessor :confidence_score
|
7501
|
+
|
7502
|
+
def initialize(**args)
|
7503
|
+
update!(**args)
|
7504
|
+
end
|
7505
|
+
|
7506
|
+
# Update properties of this object
|
7507
|
+
def update!(**args)
|
7508
|
+
@answer = args[:answer] if args.key?(:answer)
|
7509
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
7510
|
+
@answer_sources = args[:answer_sources] if args.key?(:answer_sources)
|
7511
|
+
@answer_type = args[:answer_type] if args.key?(:answer_type)
|
7512
|
+
@confidence_score = args[:confidence_score] if args.key?(:confidence_score)
|
7513
|
+
end
|
7514
|
+
end
|
7515
|
+
|
7516
|
+
# The sources of the answers.
|
7517
|
+
class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource
|
7518
|
+
include Google::Apis::Core::Hashable
|
7519
|
+
|
7520
|
+
# The document from which the snippet was extracted. Format: `projects//
|
7521
|
+
# knowledgeBases//documents/`
|
7522
|
+
# Corresponds to the JSON property `document`
|
7523
|
+
# @return [String]
|
7524
|
+
attr_accessor :document
|
7525
|
+
|
7526
|
+
# The relevant snippet of the article.
|
7527
|
+
# Corresponds to the JSON property `snippet`
|
7528
|
+
# @return [String]
|
7529
|
+
attr_accessor :snippet
|
7530
|
+
|
7531
|
+
# The title of the article.
|
7532
|
+
# Corresponds to the JSON property `title`
|
7533
|
+
# @return [String]
|
7534
|
+
attr_accessor :title
|
7535
|
+
|
7536
|
+
# The URI of the article.
|
7537
|
+
# Corresponds to the JSON property `uri`
|
7538
|
+
# @return [String]
|
7539
|
+
attr_accessor :uri
|
7540
|
+
|
7541
|
+
def initialize(**args)
|
7542
|
+
update!(**args)
|
7543
|
+
end
|
7544
|
+
|
7545
|
+
# Update properties of this object
|
7546
|
+
def update!(**args)
|
7547
|
+
@document = args[:document] if args.key?(:document)
|
7548
|
+
@snippet = args[:snippet] if args.key?(:snippet)
|
7549
|
+
@title = args[:title] if args.key?(:title)
|
7550
|
+
@uri = args[:uri] if args.key?(:uri)
|
7551
|
+
end
|
7552
|
+
end
|
7553
|
+
|
6308
7554
|
# The data for a sentiment annotation.
|
6309
7555
|
class GoogleCloudContactcenterinsightsV1alpha1SentimentData
|
6310
7556
|
include Google::Apis::Core::Hashable
|
@@ -6446,6 +7692,50 @@ module Google
|
|
6446
7692
|
end
|
6447
7693
|
end
|
6448
7694
|
|
7695
|
+
# Suggested summary of the conversation.
|
7696
|
+
class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion
|
7697
|
+
include Google::Apis::Core::Hashable
|
7698
|
+
|
7699
|
+
# Required. All the parts of generated summary.
|
7700
|
+
# Corresponds to the JSON property `summarySections`
|
7701
|
+
# @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection>]
|
7702
|
+
attr_accessor :summary_sections
|
7703
|
+
|
7704
|
+
def initialize(**args)
|
7705
|
+
update!(**args)
|
7706
|
+
end
|
7707
|
+
|
7708
|
+
# Update properties of this object
|
7709
|
+
def update!(**args)
|
7710
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
7711
|
+
end
|
7712
|
+
end
|
7713
|
+
|
7714
|
+
# A component of the generated summary.
|
7715
|
+
class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection
|
7716
|
+
include Google::Apis::Core::Hashable
|
7717
|
+
|
7718
|
+
# Required. Name of the section.
|
7719
|
+
# Corresponds to the JSON property `section`
|
7720
|
+
# @return [String]
|
7721
|
+
attr_accessor :section
|
7722
|
+
|
7723
|
+
# Required. Summary text for the section.
|
7724
|
+
# Corresponds to the JSON property `summary`
|
7725
|
+
# @return [String]
|
7726
|
+
attr_accessor :summary
|
7727
|
+
|
7728
|
+
def initialize(**args)
|
7729
|
+
update!(**args)
|
7730
|
+
end
|
7731
|
+
|
7732
|
+
# Update properties of this object
|
7733
|
+
def update!(**args)
|
7734
|
+
@section = args[:section] if args.key?(:section)
|
7735
|
+
@summary = args[:summary] if args.key?(:summary)
|
7736
|
+
end
|
7737
|
+
end
|
7738
|
+
|
6449
7739
|
# Metadata for undeploying an issue model.
|
6450
7740
|
class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
|
6451
7741
|
include Google::Apis::Core::Hashable
|