blob: 90dce00f3abfd79c92e78a3403c9b39f611ac654 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes intents in the specified agent.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates an intent in the specified agent.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#get">get(name, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves the specified intent.</p>
92<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#list">list(parent, pageToken=None, languageCode=None, intentView=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Returns the list of all intents in the specified agent.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code><a href="#patch">patch(name, body=None, intentView=None, updateMask=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates the specified intent.</p>
101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 <pre>Deletes intents in the specified agent.
105
Dan O'Mearadd494642020-05-01 07:42:23 -0700106Operation &lt;response: google.protobuf.Empty&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107
108Args:
109 parent: string, Required. The name of the agent to delete all entities types for. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110`projects/&lt;Project ID&gt;/agent`. (required)
111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 # filled in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
118 # each agent, you define many intents, where your combined intents can handle a
119 # complete conversation. When an end-user writes or says something, referred to
120 # as an end-user expression or end-user input, Dialogflow matches the end-user
121 # input to the best intent in your agent. Matching an intent is also known as
122 # intent classification.
123 #
124 # For more information, see the [intent
125 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
127 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
128 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700129 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
130 # Note: The action name must not contain whitespaces.
131 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
133 # is matched. Context messages in this collection should not set the
134 # parameters field. Setting the `lifespan_count` to 0 will reset the context
135 # when the intent is matched.
136 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 { # Dialogflow contexts are similar to natural language context. If a person says
138 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
139 # is referring to. Similarly, for Dialogflow to handle an end-user expression
140 # like that, it needs to be provided with context in order to correctly match
141 # an intent.
142 #
143 # Using contexts, you can control the flow of a conversation. You can configure
144 # contexts for an intent by setting input and output contexts, which are
145 # identified by string names. When an intent is matched, any configured output
146 # contexts for that intent become active. While any contexts are active,
147 # Dialogflow is more likely to match intents that are configured with input
148 # contexts that correspond to the currently active contexts.
149 #
150 # For more information about context, see the
151 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
152 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
153 #
154 # Depending on your protocol or client library language, this is a
155 # map, associative array, symbol table, dictionary, or JSON object
156 # composed of a collection of (MapKey, MapValue) pairs:
157 #
158 # - MapKey type: string
159 # - MapKey value: parameter name
160 # - MapValue type:
161 # - If parameter&#x27;s entity type is a composite entity: map
162 # - Else: string or number, depending on parameter value type
163 # - MapValue value:
164 # - If parameter&#x27;s entity type is a composite entity:
165 # map from composite entity property names to property values
166 # - Else: parameter value
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
170 # context expires. The default is `0`. If set to `0`, the context expires
171 # immediately. Contexts expire automatically after 20 minutes if there
172 # are no matching queries.
173 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
174 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
175 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
176 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
177 #
178 # The `Context ID` is always converted to lowercase, may only contain
179 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
180 #
181 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
182 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
183 #
184 # The following context names are reserved for internal use by Dialogflow.
185 # You should not use these contexts or create contexts with these names:
186 #
187 # * `__system_counters__`
188 # * `*_id_dialog_context`
189 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 },
191 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
193 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
194 # session when this intent is matched.
195 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
196 # Note: If `ml_disabled` setting is set to true, then this intent is not
197 # taken into account during inference in `ML ONLY` match mode. Also,
198 # auto-markup in the UI is turned off.
199 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
200 # followup intents. It identifies the correct followup intents chain for
201 # this intent.
202 #
203 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
204 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
205 # trained on.
206 { # Represents an example that the agent is trained on.
207 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
208 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
209 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
210 # The parts are concatenated in order to form the training phrase.
211 #
212 # Note: The API does not automatically annotate training phrases like the
213 # Dialogflow Console does.
214 #
215 # Note: Do not forget to include whitespace at part boundaries,
216 # so the training phrase is well formatted when the parts are concatenated.
217 #
218 # If the training phrase does not need to be annotated with parameters,
219 # you just need a single part with only the Part.text field set.
220 #
221 # If you want to annotate the training phrase, you must create multiple
222 # parts, where the fields of each part are populated in one of two ways:
223 #
224 # - `Part.text` is set to a part of the phrase that has no parameters.
225 # - `Part.text` is set to a part of the phrase that you want to annotate,
226 # and the `entity_type`, `alias`, and `user_defined` fields are all
227 # set.
228 { # Represents a part of a training phrase.
229 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
230 # This field is set to true when the Dialogflow Console is used to
231 # manually annotate the part. When creating an annotated part with the
232 # API, you must set this to true.
233 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
234 # annotated part of the example.
235 # This field is required for annotated parts of the training phrase.
236 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
237 # This field is required for annotated parts of the training phrase.
238 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
239 },
240 ],
241 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
242 # the intent. Each time a developer adds an existing sample by editing an
243 # intent or training, this counter is increased.
244 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 ],
246 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
247 # `Response` field in the Dialogflow console.
248 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700249 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
250 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
251 { # The suggestion chip message that the user can tap to quickly post a reply
252 # to the conversation.
253 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
254 },
255 ],
256 },
257 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
258 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
259 &quot;mediaObjects&quot;: [ # Required. List of media objects.
260 { # Response media object for media content card.
261 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
262 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
263 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
264 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
265 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
266 },
267 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
268 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
269 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
270 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
271 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
272 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
273 },
274 },
275 ],
276 },
277 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
278 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
279 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
280 #
281 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
282 },
283 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
284 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
285 # Telephony Gateway.
286 #
287 # Telephony Gateway takes the synthesizer settings from
288 # `DetectIntentResponse.output_audio_config` which can either be set
289 # at request-level or can come from the agent-level synthesizer config.
290 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
291 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
292 # [SSML](https://developers.google.com/actions/reference/ssml).
293 },
294 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
295 # or website associated with this agent.
296 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
297 # suggestion chip.
298 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
299 },
300 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
301 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;A String&quot;,
303 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700304 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
305 },
306 &quot;card&quot;: { # The card response message. # Displays a card.
307 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
308 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
309 { # Optional. Contains information about a button.
310 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
311 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
312 # open.
313 },
314 ],
315 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
316 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
317 },
318 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
319 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
320 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
321 &quot;items&quot;: [ # Required. List items.
322 { # An item in the list.
323 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
324 # dialog.
325 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
326 # item in dialog.
327 &quot;A String&quot;,
328 ],
329 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
330 # response is given.
331 },
332 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
333 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
334 &quot;image&quot;: { # The image response message. # Optional. The image to display.
335 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
336 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
337 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
338 },
339 },
340 ],
341 },
342 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
343 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
344 { # The button object that appears at the bottom of a card.
345 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
346 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
347 },
348 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
349 },
350 ],
351 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
352 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
353 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
354 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
355 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
356 },
357 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
358 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
359 },
360 &quot;image&quot;: { # The image response message. # Displays an image.
361 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
362 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
363 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 },
365 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
366 #
367 # Rich cards allow you to respond to users with more vivid content, e.g.
368 # with media and suggestions.
369 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 # If you want to show a single card with more control over the layout,
371 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700372 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
374 # 2 cards and at most 10.
375 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
377 # be set. Media (image, GIF or a video) to include in the card.
378 # The following media-types are currently supported:
379 #
380 # Image Types
381 #
382 # * image/jpeg
383 # * image/jpg&#x27;
384 # * image/gif
385 # * image/png
386 #
387 # Video Types
388 #
389 # * video/h263
390 # * video/m4v
391 # * video/mp4
392 # * video/mpeg
393 # * video/mpeg4
394 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700396 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 # For a standalone card with horizontal layout, height is not
398 # customizable, and this field is ignored.
399 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
400 # determines the MIME type of the file from the content-type field in
401 # the HTTP headers when the platform fetches the file. The content-type
402 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700403 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
404 # provide a thumbnail URI, the RBM platform displays a blank
405 # placeholder thumbnail until the user&#x27;s device downloads the file.
406 # Depending on the user&#x27;s setting, the file may not download
407 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700409 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
410 #
411 # At least one of the title, description or media must be set.
412 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
413 #
414 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
416 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
417 # easily select/click a predefined response or perform an action (like
418 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
420 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700421 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
422 # If the user has an app installed that is
423 # registered as the default handler for the URL, then this app will be
424 # opened instead, and its icon will be used in the suggested action UI.
425 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
426 },
427 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
428 # to send back to the agent.
429 },
430 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700431 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700432 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700433 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
434 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
435 # format. An example of a correctly formatted phone number:
436 # +15556767888.
437 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
439 # when the user taps the suggested action. This data will be also
440 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700441 },
442 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
443 # instead of typing in their own response.
444 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
445 # when the user taps the suggested reply. This data will be also
446 # forwarded to webhook to allow performing custom business logic.
447 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 },
449 },
450 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 },
452 ],
453 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
455 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 { # The button object that appears at the bottom of a card.
457 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
458 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
459 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700460 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 },
462 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700463 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
465 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
466 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
467 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
468 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;rows&quot;: [ # Optional. Rows in this table of data.
470 { # Row of TableCard.
471 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
472 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
473 { # Cell of TableCardRow.
474 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
475 },
476 ],
477 },
478 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700480 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
481 { # Column properties for TableCard.
482 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
483 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
484 },
485 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700487 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
488 #
489 # RBM allows businesses to send enriched and branded versions of SMS. See
490 # https://jibe.google.com/business-messaging.
491 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
492 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
493 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
494 # easily select/click a predefined response or perform an action (like
495 # opening a web uri).
496 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
497 # can choose from the card.
498 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
499 # If the user has an app installed that is
500 # registered as the default handler for the URL, then this app will be
501 # opened instead, and its icon will be used in the suggested action UI.
502 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
503 },
504 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
505 # to send back to the agent.
506 },
507 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
508 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
509 # but does not dial automatically.
510 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
511 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
512 # format. An example of a correctly formatted phone number:
513 # +15556767888.
514 },
515 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
516 # when the user taps the suggested action. This data will be also
517 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
520 # instead of typing in their own response.
521 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
522 # when the user taps the suggested reply. This data will be also
523 # forwarded to webhook to allow performing custom business logic.
524 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700525 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 },
527 ],
528 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700529 &quot;payload&quot;: { # A custom platform-specific response.
530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700532 &quot;text&quot;: { # The text response message. # Returns a text response.
533 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
534 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 ],
536 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
538 #
539 # Rich cards allow you to respond to users with more vivid content, e.g.
540 # with media and suggestions.
541 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 # You can group multiple rich cards into one using RbmCarouselCard but
543 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
546 # be set. Media (image, GIF or a video) to include in the card.
547 # The following media-types are currently supported:
548 #
549 # Image Types
550 #
551 # * image/jpeg
552 # * image/jpg&#x27;
553 # * image/gif
554 # * image/png
555 #
556 # Video Types
557 #
558 # * video/h263
559 # * video/m4v
560 # * video/mp4
561 # * video/mpeg
562 # * video/mpeg4
563 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700565 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 # For a standalone card with horizontal layout, height is not
567 # customizable, and this field is ignored.
568 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
569 # determines the MIME type of the file from the content-type field in
570 # the HTTP headers when the platform fetches the file. The content-type
571 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700572 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
573 # provide a thumbnail URI, the RBM platform displays a blank
574 # placeholder thumbnail until the user&#x27;s device downloads the file.
575 # Depending on the user&#x27;s setting, the file may not download
576 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700578 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
579 #
580 # At least one of the title, description or media must be set.
581 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
582 #
583 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
585 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
586 # easily select/click a predefined response or perform an action (like
587 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
589 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
591 # If the user has an app installed that is
592 # registered as the default handler for the URL, then this app will be
593 # opened instead, and its icon will be used in the suggested action UI.
594 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
595 },
596 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
597 # to send back to the agent.
598 },
599 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700601 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700602 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
603 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
604 # format. An example of a correctly formatted phone number:
605 # +15556767888.
606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
608 # when the user taps the suggested action. This data will be also
609 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700610 },
611 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
612 # instead of typing in their own response.
613 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
614 # when the user taps the suggested reply. This data will be also
615 # forwarded to webhook to allow performing custom business logic.
616 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 },
618 },
619 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700621 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
622 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
623 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -0700624 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700625 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
626 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
627 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
628 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
629 #
630 # This object must be readable by the `service-&lt;Project
631 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
632 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
633 # (usually the same as the Dialogflow agent project). If the Google Cloud
634 # Storage bucket is in the Telephony Gateway project, this permission is
635 # added by default when enabling the Dialogflow V2 API.
636 #
637 # For audio from other sources, consider using the
638 # `TelephonySynthesizeSpeech` message with SSML.
639 },
640 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
641 &quot;items&quot;: [ # Required. Carousel items.
642 { # An item in the carousel.
643 &quot;image&quot;: { # The image response message. # Optional. The image to display.
644 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
645 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
646 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
647 },
648 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
649 # dialog.
650 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
651 # item in dialog.
652 &quot;A String&quot;,
653 ],
654 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
655 # response is given.
656 },
657 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
658 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
659 },
660 ],
661 },
662 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
663 # This message in `QueryResult.fulfillment_messages` and
664 # `WebhookResponse.fulfillment_messages` should contain only one
665 # `SimpleResponse`.
666 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
667 { # The simple response message containing speech or text.
668 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
669 # response to the user in the SSML format. Mutually exclusive with
670 # text_to_speech.
671 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
672 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
673 # speech output. Mutually exclusive with ssml.
674 },
675 ],
676 },
677 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
678 # https://developers.google.com/actions/assistant/responses#browsing_carousel
679 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
680 # items.
681 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
682 # items, maximum of ten.
683 { # Browsing carousel tile
684 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
685 # Card. Maximum of one line of text.
686 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
687 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
688 # text.
689 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
690 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
691 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
692 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
693 },
694 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
695 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
696 # the URL. Defaults to opening via web browser.
697 &quot;url&quot;: &quot;A String&quot;, # Required. URL
698 },
699 },
700 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700701 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 },
703 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700704 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
705 # chain of followup intents. You can set this field when creating an intent,
706 # for example with CreateIntent or
707 # BatchUpdateIntents, in order to make this
708 # intent a followup intent.
709 #
710 # It identifies the parent followup intent.
711 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
712 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
713 { # Represents intent parameters.
714 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
715 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
716 # whether the intent cannot be completed without collecting the parameter
717 # value.
718 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
719 # user in order to collect a value for the parameter.
720 &quot;A String&quot;,
721 ],
722 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
723 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
724 # describes values of the parameter. If the parameter is
725 # required, this must be provided.
726 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
727 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
728 #
729 # - a constant string,
730 # - a parameter value defined as `$parameter_name`,
731 # - an original parameter value defined as `$parameter_name.original`,
732 # - a parameter value from some context defined as
733 # `#context_name.parameter_name`.
734 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
735 # result.
736 # Default values can be extracted from contexts by using the following
737 # syntax: `#context_name.parameter_name`.
738 },
739 ],
740 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
741 # If the collection of input contexts is not empty, all of the contexts must
742 # be present in the active user session for an event to trigger this intent.
743 # Event names are limited to 150 characters.
744 &quot;A String&quot;,
745 ],
746 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
748 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
749 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -0700750 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700751 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
752 # Note: If `ml_enabled` setting is set to false, then this intent is not
753 # taken into account during inference in `ML ONLY` match mode. Also,
754 # auto-markup in the UI is turned off.
755 # DEPRECATED! Please use `ml_disabled` field instead.
756 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
757 # then the default value is determined as follows:
758 # - Before April 15th, 2018 the default is:
759 # ml_enabled = false / ml_disabled = true.
760 # - After April 15th, 2018 the default is:
761 # ml_enabled = true / ml_disabled = false.
762 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
763 # a direct or indirect parent. We populate this field only in the output.
764 { # Represents a single followup intent in the chain.
765 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
766 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
767 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
768 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
769 },
770 ],
771 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
772 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
773 &quot;A String&quot;,
774 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700777 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700780 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
781 # priorities.
782 #
783 # - If the supplied value is unspecified or 0, the service
784 # translates the value to 500,000, which corresponds to the
785 # `Normal` priority in the console.
786 # - If the supplied value is negative, the intent is ignored
787 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700788 },
789 ],
790 }
791
792 x__xgafv: string, V1 error format.
793 Allowed values
794 1 - v1 error format
795 2 - v2 error format
796
797Returns:
798 An object of the form:
799
800 { # This resource represents a long-running operation that is the result of a
801 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700802 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
803 # originally returns it. If you use the default HTTP mapping, the
804 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700805 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700806 # method returns no data on success, such as `Delete`, the response is
807 # `google.protobuf.Empty`. If the original method is standard
808 # `Get`/`Create`/`Update`, the response should be the resource. For other
809 # methods, the response should have the type `XxxResponse`, where `Xxx`
810 # is the original method name. For example, if the original method name
811 # is `TakeSnapshot()`, the inferred response type is
812 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700814 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700815 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
816 # If `true`, the operation is completed, and either `error` or `response` is
817 # available.
818 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
819 # different programming environments, including REST APIs and RPC APIs. It is
820 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
821 # three pieces of data: error code, error message, and error details.
822 #
823 # You can find out more about this error model and how to work with it in the
824 # [API Design Guide](https://cloud.google.com/apis/design/errors).
825 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
826 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
827 # message types for APIs to use.
828 {
829 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
830 },
831 ],
832 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
833 # user-facing error message should be localized and sent in the
834 # google.rpc.Status.details field, or localized by the client.
835 },
836 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
837 # contains progress information and common metadata such as create time.
838 # Some services might not provide such metadata. Any method that returns a
839 # long-running operation should document the metadata type, if any.
840 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
841 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700842 }</pre>
843</div>
844
845<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 <pre>Updates/Creates multiple intents in the specified agent.
848
Dan O'Mearadd494642020-05-01 07:42:23 -0700849Operation &lt;response: BatchUpdateIntentsResponse&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850
851Args:
852 parent: string, Required. The name of the agent to update or create intents in.
Dan O'Mearadd494642020-05-01 07:42:23 -0700853Format: `projects/&lt;Project ID&gt;/agent`. (required)
854 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 The object takes the form of:
856
857{ # The request message for Intents.BatchUpdateIntents.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700858 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or
859 # create. The file format can either be a serialized proto (of IntentBatch
860 # type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
861 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
862 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
863 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data.
864 # If not specified, the agent&#x27;s default language is used.
865 # For more information, see
866 # [Multilingual intent and entity
867 # data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -0700868 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
869 &quot;intents&quot;: [ # A collection of intents.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700870 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
871 # each agent, you define many intents, where your combined intents can handle a
872 # complete conversation. When an end-user writes or says something, referred to
873 # as an end-user expression or end-user input, Dialogflow matches the end-user
874 # input to the best intent in your agent. Matching an intent is also known as
875 # intent classification.
876 #
877 # For more information, see the [intent
878 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
880 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
881 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700882 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
883 # Note: The action name must not contain whitespaces.
884 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
886 # is matched. Context messages in this collection should not set the
887 # parameters field. Setting the `lifespan_count` to 0 will reset the context
888 # when the intent is matched.
889 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700890 { # Dialogflow contexts are similar to natural language context. If a person says
891 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
892 # is referring to. Similarly, for Dialogflow to handle an end-user expression
893 # like that, it needs to be provided with context in order to correctly match
894 # an intent.
895 #
896 # Using contexts, you can control the flow of a conversation. You can configure
897 # contexts for an intent by setting input and output contexts, which are
898 # identified by string names. When an intent is matched, any configured output
899 # contexts for that intent become active. While any contexts are active,
900 # Dialogflow is more likely to match intents that are configured with input
901 # contexts that correspond to the currently active contexts.
902 #
903 # For more information about context, see the
904 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
905 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
906 #
907 # Depending on your protocol or client library language, this is a
908 # map, associative array, symbol table, dictionary, or JSON object
909 # composed of a collection of (MapKey, MapValue) pairs:
910 #
911 # - MapKey type: string
912 # - MapKey value: parameter name
913 # - MapValue type:
914 # - If parameter&#x27;s entity type is a composite entity: map
915 # - Else: string or number, depending on parameter value type
916 # - MapValue value:
917 # - If parameter&#x27;s entity type is a composite entity:
918 # map from composite entity property names to property values
919 # - Else: parameter value
920 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
921 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
923 # context expires. The default is `0`. If set to `0`, the context expires
924 # immediately. Contexts expire automatically after 20 minutes if there
925 # are no matching queries.
926 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
927 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
928 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
929 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
930 #
931 # The `Context ID` is always converted to lowercase, may only contain
932 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
933 #
934 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
935 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
936 #
937 # The following context names are reserved for internal use by Dialogflow.
938 # You should not use these contexts or create contexts with these names:
939 #
940 # * `__system_counters__`
941 # * `*_id_dialog_context`
942 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 },
944 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700945 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
946 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
947 # session when this intent is matched.
948 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
949 # Note: If `ml_disabled` setting is set to true, then this intent is not
950 # taken into account during inference in `ML ONLY` match mode. Also,
951 # auto-markup in the UI is turned off.
952 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
953 # followup intents. It identifies the correct followup intents chain for
954 # this intent.
955 #
956 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
957 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
958 # trained on.
959 { # Represents an example that the agent is trained on.
960 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
961 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
962 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
963 # The parts are concatenated in order to form the training phrase.
964 #
965 # Note: The API does not automatically annotate training phrases like the
966 # Dialogflow Console does.
967 #
968 # Note: Do not forget to include whitespace at part boundaries,
969 # so the training phrase is well formatted when the parts are concatenated.
970 #
971 # If the training phrase does not need to be annotated with parameters,
972 # you just need a single part with only the Part.text field set.
973 #
974 # If you want to annotate the training phrase, you must create multiple
975 # parts, where the fields of each part are populated in one of two ways:
976 #
977 # - `Part.text` is set to a part of the phrase that has no parameters.
978 # - `Part.text` is set to a part of the phrase that you want to annotate,
979 # and the `entity_type`, `alias`, and `user_defined` fields are all
980 # set.
981 { # Represents a part of a training phrase.
982 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
983 # This field is set to true when the Dialogflow Console is used to
984 # manually annotate the part. When creating an annotated part with the
985 # API, you must set this to true.
986 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
987 # annotated part of the example.
988 # This field is required for annotated parts of the training phrase.
989 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
990 # This field is required for annotated parts of the training phrase.
991 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
992 },
993 ],
994 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
995 # the intent. Each time a developer adds an existing sample by editing an
996 # intent or training, this counter is increased.
997 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700998 ],
999 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1000 # `Response` field in the Dialogflow console.
1001 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001002 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1003 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1004 { # The suggestion chip message that the user can tap to quickly post a reply
1005 # to the conversation.
1006 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1007 },
1008 ],
1009 },
1010 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1011 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1012 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1013 { # Response media object for media content card.
1014 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1015 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1016 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1017 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1018 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1019 },
1020 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1021 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1022 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1023 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1024 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1025 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1026 },
1027 },
1028 ],
1029 },
1030 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1031 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1032 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1033 #
1034 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1035 },
1036 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1037 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1038 # Telephony Gateway.
1039 #
1040 # Telephony Gateway takes the synthesizer settings from
1041 # `DetectIntentResponse.output_audio_config` which can either be set
1042 # at request-level or can come from the agent-level synthesizer config.
1043 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1044 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1045 # [SSML](https://developers.google.com/actions/reference/ssml).
1046 },
1047 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
1048 # or website associated with this agent.
1049 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1050 # suggestion chip.
1051 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1052 },
1053 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1054 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07001055 &quot;A String&quot;,
1056 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001057 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1058 },
1059 &quot;card&quot;: { # The card response message. # Displays a card.
1060 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1061 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1062 { # Optional. Contains information about a button.
1063 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1064 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1065 # open.
1066 },
1067 ],
1068 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1069 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1070 },
1071 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1072 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1073 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1074 &quot;items&quot;: [ # Required. List items.
1075 { # An item in the list.
1076 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1077 # dialog.
1078 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1079 # item in dialog.
1080 &quot;A String&quot;,
1081 ],
1082 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1083 # response is given.
1084 },
1085 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1086 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1087 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1088 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1089 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1090 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1091 },
1092 },
1093 ],
1094 },
1095 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1096 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1097 { # The button object that appears at the bottom of a card.
1098 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1099 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1100 },
1101 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1102 },
1103 ],
1104 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1105 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1106 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1107 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1108 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1109 },
1110 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1111 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1112 },
1113 &quot;image&quot;: { # The image response message. # Displays an image.
1114 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1115 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1116 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 },
1118 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1119 #
1120 # Rich cards allow you to respond to users with more vivid content, e.g.
1121 # with media and suggestions.
1122 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 # If you want to show a single card with more control over the layout,
1124 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001125 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001126 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1127 # 2 cards and at most 10.
1128 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001129 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1130 # be set. Media (image, GIF or a video) to include in the card.
1131 # The following media-types are currently supported:
1132 #
1133 # Image Types
1134 #
1135 # * image/jpeg
1136 # * image/jpg&#x27;
1137 # * image/gif
1138 # * image/png
1139 #
1140 # Video Types
1141 #
1142 # * video/h263
1143 # * video/m4v
1144 # * video/mp4
1145 # * video/mpeg
1146 # * video/mpeg4
1147 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001148 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001149 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 # For a standalone card with horizontal layout, height is not
1151 # customizable, and this field is ignored.
1152 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1153 # determines the MIME type of the file from the content-type field in
1154 # the HTTP headers when the platform fetches the file. The content-type
1155 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001156 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1157 # provide a thumbnail URI, the RBM platform displays a blank
1158 # placeholder thumbnail until the user&#x27;s device downloads the file.
1159 # Depending on the user&#x27;s setting, the file may not download
1160 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001162 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1163 #
1164 # At least one of the title, description or media must be set.
1165 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1166 #
1167 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1169 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1170 # easily select/click a predefined response or perform an action (like
1171 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001172 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1173 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001174 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1175 # If the user has an app installed that is
1176 # registered as the default handler for the URL, then this app will be
1177 # opened instead, and its icon will be used in the suggested action UI.
1178 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1179 },
1180 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1181 # to send back to the agent.
1182 },
1183 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001184 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001185 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001186 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1187 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1188 # format. An example of a correctly formatted phone number:
1189 # +15556767888.
1190 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001191 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1192 # when the user taps the suggested action. This data will be also
1193 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001194 },
1195 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1196 # instead of typing in their own response.
1197 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1198 # when the user taps the suggested reply. This data will be also
1199 # forwarded to webhook to allow performing custom business logic.
1200 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001201 },
1202 },
1203 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001204 },
1205 ],
1206 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001207 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1208 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001209 { # The button object that appears at the bottom of a card.
1210 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1211 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1212 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001213 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 },
1215 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001216 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1218 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1219 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1220 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1221 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001222 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1223 { # Row of TableCard.
1224 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1225 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1226 { # Cell of TableCardRow.
1227 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1228 },
1229 ],
1230 },
1231 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001232 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001233 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1234 { # Column properties for TableCard.
1235 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1236 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1237 },
1238 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001239 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001240 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1241 #
1242 # RBM allows businesses to send enriched and branded versions of SMS. See
1243 # https://jibe.google.com/business-messaging.
1244 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1245 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1246 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1247 # easily select/click a predefined response or perform an action (like
1248 # opening a web uri).
1249 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1250 # can choose from the card.
1251 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1252 # If the user has an app installed that is
1253 # registered as the default handler for the URL, then this app will be
1254 # opened instead, and its icon will be used in the suggested action UI.
1255 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1256 },
1257 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1258 # to send back to the agent.
1259 },
1260 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1261 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
1262 # but does not dial automatically.
1263 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1264 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1265 # format. An example of a correctly formatted phone number:
1266 # +15556767888.
1267 },
1268 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1269 # when the user taps the suggested action. This data will be also
1270 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001271 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001272 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1273 # instead of typing in their own response.
1274 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1275 # when the user taps the suggested reply. This data will be also
1276 # forwarded to webhook to allow performing custom business logic.
1277 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001278 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 },
1280 ],
1281 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001282 &quot;payload&quot;: { # A custom platform-specific response.
1283 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001284 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001285 &quot;text&quot;: { # The text response message. # Returns a text response.
1286 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1287 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001288 ],
1289 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
1291 #
1292 # Rich cards allow you to respond to users with more vivid content, e.g.
1293 # with media and suggestions.
1294 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 # You can group multiple rich cards into one using RbmCarouselCard but
1296 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
1299 # be set. Media (image, GIF or a video) to include in the card.
1300 # The following media-types are currently supported:
1301 #
1302 # Image Types
1303 #
1304 # * image/jpeg
1305 # * image/jpg&#x27;
1306 # * image/gif
1307 # * image/png
1308 #
1309 # Video Types
1310 #
1311 # * video/h263
1312 # * video/m4v
1313 # * video/mp4
1314 # * video/mpeg
1315 # * video/mpeg4
1316 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001317 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001318 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001319 # For a standalone card with horizontal layout, height is not
1320 # customizable, and this field is ignored.
1321 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1322 # determines the MIME type of the file from the content-type field in
1323 # the HTTP headers when the platform fetches the file. The content-type
1324 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001325 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1326 # provide a thumbnail URI, the RBM platform displays a blank
1327 # placeholder thumbnail until the user&#x27;s device downloads the file.
1328 # Depending on the user&#x27;s setting, the file may not download
1329 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001331 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1332 #
1333 # At least one of the title, description or media must be set.
1334 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1335 #
1336 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1338 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1339 # easily select/click a predefined response or perform an action (like
1340 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001341 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1342 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001343 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1344 # If the user has an app installed that is
1345 # registered as the default handler for the URL, then this app will be
1346 # opened instead, and its icon will be used in the suggested action UI.
1347 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1348 },
1349 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1350 # to send back to the agent.
1351 },
1352 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001353 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001354 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001355 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1356 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1357 # format. An example of a correctly formatted phone number:
1358 # +15556767888.
1359 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1361 # when the user taps the suggested action. This data will be also
1362 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001363 },
1364 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1365 # instead of typing in their own response.
1366 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1367 # when the user taps the suggested reply. This data will be also
1368 # forwarded to webhook to allow performing custom business logic.
1369 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 },
1371 },
1372 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001373 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001374 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1375 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
1376 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001378 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1379 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
1380 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
1381 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
1382 #
1383 # This object must be readable by the `service-&lt;Project
1384 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
1385 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
1386 # (usually the same as the Dialogflow agent project). If the Google Cloud
1387 # Storage bucket is in the Telephony Gateway project, this permission is
1388 # added by default when enabling the Dialogflow V2 API.
1389 #
1390 # For audio from other sources, consider using the
1391 # `TelephonySynthesizeSpeech` message with SSML.
1392 },
1393 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1394 &quot;items&quot;: [ # Required. Carousel items.
1395 { # An item in the carousel.
1396 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1397 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1398 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1399 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1400 },
1401 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
1402 # dialog.
1403 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1404 # item in dialog.
1405 &quot;A String&quot;,
1406 ],
1407 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1408 # response is given.
1409 },
1410 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1411 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1412 },
1413 ],
1414 },
1415 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
1416 # This message in `QueryResult.fulfillment_messages` and
1417 # `WebhookResponse.fulfillment_messages` should contain only one
1418 # `SimpleResponse`.
1419 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1420 { # The simple response message containing speech or text.
1421 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
1422 # response to the user in the SSML format. Mutually exclusive with
1423 # text_to_speech.
1424 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1425 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
1426 # speech output. Mutually exclusive with ssml.
1427 },
1428 ],
1429 },
1430 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
1431 # https://developers.google.com/actions/assistant/responses#browsing_carousel
1432 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
1433 # items.
1434 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
1435 # items, maximum of ten.
1436 { # Browsing carousel tile
1437 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
1438 # Card. Maximum of one line of text.
1439 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1440 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
1441 # text.
1442 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1443 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1444 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1445 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1446 },
1447 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1448 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
1449 # the URL. Defaults to opening via web browser.
1450 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1451 },
1452 },
1453 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001454 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001455 },
1456 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001457 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
1458 # chain of followup intents. You can set this field when creating an intent,
1459 # for example with CreateIntent or
1460 # BatchUpdateIntents, in order to make this
1461 # intent a followup intent.
1462 #
1463 # It identifies the parent followup intent.
1464 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1465 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1466 { # Represents intent parameters.
1467 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1468 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
1469 # whether the intent cannot be completed without collecting the parameter
1470 # value.
1471 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
1472 # user in order to collect a value for the parameter.
1473 &quot;A String&quot;,
1474 ],
1475 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1476 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
1477 # describes values of the parameter. If the parameter is
1478 # required, this must be provided.
1479 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1480 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
1481 #
1482 # - a constant string,
1483 # - a parameter value defined as `$parameter_name`,
1484 # - an original parameter value defined as `$parameter_name.original`,
1485 # - a parameter value from some context defined as
1486 # `#context_name.parameter_name`.
1487 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
1488 # result.
1489 # Default values can be extracted from contexts by using the following
1490 # syntax: `#context_name.parameter_name`.
1491 },
1492 ],
1493 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
1494 # If the collection of input contexts is not empty, all of the contexts must
1495 # be present in the active user session for an event to trigger this intent.
1496 # Event names are limited to 150 characters.
1497 &quot;A String&quot;,
1498 ],
1499 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001500 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
1501 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
1502 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07001503 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001504 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
1505 # Note: If `ml_enabled` setting is set to false, then this intent is not
1506 # taken into account during inference in `ML ONLY` match mode. Also,
1507 # auto-markup in the UI is turned off.
1508 # DEPRECATED! Please use `ml_disabled` field instead.
1509 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
1510 # then the default value is determined as follows:
1511 # - Before April 15th, 2018 the default is:
1512 # ml_enabled = false / ml_disabled = true.
1513 # - After April 15th, 2018 the default is:
1514 # ml_enabled = true / ml_disabled = false.
1515 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
1516 # a direct or indirect parent. We populate this field only in the output.
1517 { # Represents a single followup intent in the chain.
1518 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
1519 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1520 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
1521 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1522 },
1523 ],
1524 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
1525 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1526 &quot;A String&quot;,
1527 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001529 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001530 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001532 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001533 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
1534 # priorities.
1535 #
1536 # - If the supplied value is unspecified or 0, the service
1537 # translates the value to 500,000, which corresponds to the
1538 # `Normal` priority in the console.
1539 # - If the supplied value is negative, the intent is ignored
1540 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541 },
1542 ],
1543 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001544 }
1545
1546 x__xgafv: string, V1 error format.
1547 Allowed values
1548 1 - v1 error format
1549 2 - v2 error format
1550
1551Returns:
1552 An object of the form:
1553
1554 { # This resource represents a long-running operation that is the result of a
1555 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001556 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1557 # originally returns it. If you use the default HTTP mapping, the
1558 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001560 # method returns no data on success, such as `Delete`, the response is
1561 # `google.protobuf.Empty`. If the original method is standard
1562 # `Get`/`Create`/`Update`, the response should be the resource. For other
1563 # methods, the response should have the type `XxxResponse`, where `Xxx`
1564 # is the original method name. For example, if the original method name
1565 # is `TakeSnapshot()`, the inferred response type is
1566 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001568 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001569 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1570 # If `true`, the operation is completed, and either `error` or `response` is
1571 # available.
1572 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1573 # different programming environments, including REST APIs and RPC APIs. It is
1574 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1575 # three pieces of data: error code, error message, and error details.
1576 #
1577 # You can find out more about this error model and how to work with it in the
1578 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1579 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1580 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1581 # message types for APIs to use.
1582 {
1583 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1584 },
1585 ],
1586 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1587 # user-facing error message should be localized and sent in the
1588 # google.rpc.Status.details field, or localized by the client.
1589 },
1590 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1591 # contains progress information and common metadata such as create time.
1592 # Some services might not provide such metadata. Any method that returns a
1593 # long-running operation should document the metadata type, if any.
1594 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1595 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001596 }</pre>
1597</div>
1598
1599<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001600 <code class="details" id="create">create(parent, body=None, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001601 <pre>Creates an intent in the specified agent.
1602
1603Args:
1604 parent: string, Required. The agent to create a intent for.
Dan O'Mearadd494642020-05-01 07:42:23 -07001605Format: `projects/&lt;Project ID&gt;/agent`. (required)
1606 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001607 The object takes the form of:
1608
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001609{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
1610 # each agent, you define many intents, where your combined intents can handle a
1611 # complete conversation. When an end-user writes or says something, referred to
1612 # as an end-user expression or end-user input, Dialogflow matches the end-user
1613 # input to the best intent in your agent. Matching an intent is also known as
1614 # intent classification.
1615 #
1616 # For more information, see the [intent
1617 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
1619 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
1620 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001621 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
1622 # Note: The action name must not contain whitespaces.
1623 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001625 # is matched. Context messages in this collection should not set the
1626 # parameters field. Setting the `lifespan_count` to 0 will reset the context
1627 # when the intent is matched.
Dan O'Mearadd494642020-05-01 07:42:23 -07001628 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001629 { # Dialogflow contexts are similar to natural language context. If a person says
1630 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
1631 # is referring to. Similarly, for Dialogflow to handle an end-user expression
1632 # like that, it needs to be provided with context in order to correctly match
1633 # an intent.
1634 #
1635 # Using contexts, you can control the flow of a conversation. You can configure
1636 # contexts for an intent by setting input and output contexts, which are
1637 # identified by string names. When an intent is matched, any configured output
1638 # contexts for that intent become active. While any contexts are active,
1639 # Dialogflow is more likely to match intents that are configured with input
1640 # contexts that correspond to the currently active contexts.
1641 #
1642 # For more information about context, see the
1643 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1644 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
1645 #
1646 # Depending on your protocol or client library language, this is a
1647 # map, associative array, symbol table, dictionary, or JSON object
1648 # composed of a collection of (MapKey, MapValue) pairs:
1649 #
1650 # - MapKey type: string
1651 # - MapKey value: parameter name
1652 # - MapValue type:
1653 # - If parameter&#x27;s entity type is a composite entity: map
1654 # - Else: string or number, depending on parameter value type
1655 # - MapValue value:
1656 # - If parameter&#x27;s entity type is a composite entity:
1657 # map from composite entity property names to property values
1658 # - Else: parameter value
1659 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1660 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
1662 # context expires. The default is `0`. If set to `0`, the context expires
1663 # immediately. Contexts expire automatically after 20 minutes if there
1664 # are no matching queries.
1665 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
Dan O'Mearadd494642020-05-01 07:42:23 -07001666 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
1667 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
1668 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001669 #
1670 # The `Context ID` is always converted to lowercase, may only contain
1671 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
1672 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
1674 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
Dan O'Mearadd494642020-05-01 07:42:23 -07001675 #
1676 # The following context names are reserved for internal use by Dialogflow.
1677 # You should not use these contexts or create contexts with these names:
1678 #
1679 # * `__system_counters__`
1680 # * `*_id_dialog_context`
1681 # * `*_dialog_params_size`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 },
1683 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001684 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1685 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
1686 # session when this intent is matched.
1687 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
1688 # Note: If `ml_disabled` setting is set to true, then this intent is not
1689 # taken into account during inference in `ML ONLY` match mode. Also,
1690 # auto-markup in the UI is turned off.
1691 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
1692 # followup intents. It identifies the correct followup intents chain for
1693 # this intent.
1694 #
1695 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
1696 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
1697 # trained on.
1698 { # Represents an example that the agent is trained on.
1699 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1700 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1701 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
1702 # The parts are concatenated in order to form the training phrase.
1703 #
1704 # Note: The API does not automatically annotate training phrases like the
1705 # Dialogflow Console does.
1706 #
1707 # Note: Do not forget to include whitespace at part boundaries,
1708 # so the training phrase is well formatted when the parts are concatenated.
1709 #
1710 # If the training phrase does not need to be annotated with parameters,
1711 # you just need a single part with only the Part.text field set.
1712 #
1713 # If you want to annotate the training phrase, you must create multiple
1714 # parts, where the fields of each part are populated in one of two ways:
1715 #
1716 # - `Part.text` is set to a part of the phrase that has no parameters.
1717 # - `Part.text` is set to a part of the phrase that you want to annotate,
1718 # and the `entity_type`, `alias`, and `user_defined` fields are all
1719 # set.
1720 { # Represents a part of a training phrase.
1721 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
1722 # This field is set to true when the Dialogflow Console is used to
1723 # manually annotate the part. When creating an annotated part with the
1724 # API, you must set this to true.
1725 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
1726 # annotated part of the example.
1727 # This field is required for annotated parts of the training phrase.
1728 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
1729 # This field is required for annotated parts of the training phrase.
1730 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1731 },
1732 ],
1733 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
1734 # the intent. Each time a developer adds an existing sample by editing an
1735 # intent or training, this counter is increased.
1736 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001738 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
1739 # `Response` field in the Dialogflow console.
1740 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001741 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1742 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1743 { # The suggestion chip message that the user can tap to quickly post a reply
1744 # to the conversation.
1745 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1746 },
1747 ],
1748 },
1749 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1750 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1751 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1752 { # Response media object for media content card.
1753 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1754 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1755 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1756 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1757 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1758 },
1759 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1760 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1761 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1762 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1763 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1764 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1765 },
1766 },
1767 ],
1768 },
1769 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1770 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
1771 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1772 #
1773 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1774 },
1775 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1776 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
1777 # Telephony Gateway.
1778 #
1779 # Telephony Gateway takes the synthesizer settings from
1780 # `DetectIntentResponse.output_audio_config` which can either be set
1781 # at request-level or can come from the agent-level synthesizer config.
1782 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1783 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
1784 # [SSML](https://developers.google.com/actions/reference/ssml).
1785 },
1786 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
1787 # or website associated with this agent.
1788 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
1789 # suggestion chip.
1790 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1791 },
1792 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1793 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001795 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001796 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1797 },
1798 &quot;card&quot;: { # The card response message. # Displays a card.
1799 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1800 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1801 { # Optional. Contains information about a button.
1802 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1803 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
1804 # open.
1805 },
1806 ],
1807 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1808 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1809 },
1810 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1811 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1812 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1813 &quot;items&quot;: [ # Required. List items.
1814 { # An item in the list.
1815 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
1816 # dialog.
1817 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
1818 # item in dialog.
1819 &quot;A String&quot;,
1820 ],
1821 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
1822 # response is given.
1823 },
1824 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1825 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1826 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1827 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1828 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1829 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1830 },
1831 },
1832 ],
1833 },
1834 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1835 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1836 { # The button object that appears at the bottom of a card.
1837 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1838 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1839 },
1840 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1841 },
1842 ],
1843 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1844 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1845 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1846 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1847 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
1848 },
1849 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1850 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1851 },
1852 &quot;image&quot;: { # The image response message. # Displays an image.
1853 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1854 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1855 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001856 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001857 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
1858 #
1859 # Rich cards allow you to respond to users with more vivid content, e.g.
1860 # with media and suggestions.
1861 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 # If you want to show a single card with more control over the layout,
1863 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001864 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
1866 # 2 cards and at most 10.
1867 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07001868 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
Dan O'Mearadd494642020-05-01 07:42:23 -07001869 # be set. Media (image, GIF or a video) to include in the card.
1870 # The following media-types are currently supported:
1871 #
1872 # Image Types
1873 #
1874 # * image/jpeg
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 # * image/jpg&#x27;
Dan O'Mearadd494642020-05-01 07:42:23 -07001876 # * image/gif
1877 # * image/png
1878 #
1879 # Video Types
1880 #
1881 # * video/h263
1882 # * video/m4v
1883 # * video/mp4
1884 # * video/mpeg
1885 # * video/mpeg4
1886 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07001887 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001888 # within a rich card with a vertical layout.
Dan O'Mearadd494642020-05-01 07:42:23 -07001889 # For a standalone card with horizontal layout, height is not
1890 # customizable, and this field is ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
1892 # determines the MIME type of the file from the content-type field in
1893 # the HTTP headers when the platform fetches the file. The content-type
1894 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001895 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
1896 # provide a thumbnail URI, the RBM platform displays a blank
1897 # placeholder thumbnail until the user&#x27;s device downloads the file.
1898 # Depending on the user&#x27;s setting, the file may not download
1899 # automatically and may require the user to tap a download button.
Dan O'Mearadd494642020-05-01 07:42:23 -07001900 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001901 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
1902 #
1903 # At least one of the title, description or media must be set.
1904 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
1905 #
1906 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07001907 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
Dan O'Mearadd494642020-05-01 07:42:23 -07001908 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1909 # easily select/click a predefined response or perform an action (like
1910 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07001911 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
Dan O'Mearadd494642020-05-01 07:42:23 -07001912 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001913 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1914 # If the user has an app installed that is
1915 # registered as the default handler for the URL, then this app will be
1916 # opened instead, and its icon will be used in the suggested action UI.
1917 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1918 },
1919 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1920 # to send back to the agent.
1921 },
1922 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001923 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001924 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001925 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
1926 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
1927 # format. An example of a correctly formatted phone number:
1928 # +15556767888.
1929 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1931 # when the user taps the suggested action. This data will be also
1932 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001933 },
1934 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
1935 # instead of typing in their own response.
1936 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
1937 # when the user taps the suggested reply. This data will be also
1938 # forwarded to webhook to allow performing custom business logic.
1939 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Dan O'Mearadd494642020-05-01 07:42:23 -07001940 },
1941 },
1942 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001943 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001944 ],
1945 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001946 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1947 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001948 { # The button object that appears at the bottom of a card.
1949 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1950 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001952 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001953 },
1954 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001955 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07001956 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1957 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1958 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
1959 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001960 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001961 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1962 { # Row of TableCard.
1963 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1964 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1965 { # Cell of TableCardRow.
1966 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1967 },
1968 ],
1969 },
1970 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001971 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001972 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1973 { # Column properties for TableCard.
1974 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1975 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1976 },
1977 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001978 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001979 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
1980 #
1981 # RBM allows businesses to send enriched and branded versions of SMS. See
1982 # https://jibe.google.com/business-messaging.
1983 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1984 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1985 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
1986 # easily select/click a predefined response or perform an action (like
1987 # opening a web uri).
1988 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
1989 # can choose from the card.
1990 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
1991 # If the user has an app installed that is
1992 # registered as the default handler for the URL, then this app will be
1993 # opened instead, and its icon will be used in the suggested action UI.
1994 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1995 },
1996 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
1997 # to send back to the agent.
1998 },
1999 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2000 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2001 # but does not dial automatically.
2002 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2003 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2004 # format. An example of a correctly formatted phone number:
2005 # +15556767888.
2006 },
2007 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2008 # when the user taps the suggested action. This data will be also
2009 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002010 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002011 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2012 # instead of typing in their own response.
2013 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2014 # when the user taps the suggested reply. This data will be also
2015 # forwarded to webhook to allow performing custom business logic.
2016 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002017 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002018 },
2019 ],
2020 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002021 &quot;payload&quot;: { # A custom platform-specific response.
2022 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002023 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002024 &quot;text&quot;: { # The text response message. # Returns a text response.
2025 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2026 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002027 ],
2028 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002029 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2030 #
2031 # Rich cards allow you to respond to users with more vivid content, e.g.
2032 # with media and suggestions.
2033 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002034 # You can group multiple rich cards into one using RbmCarouselCard but
2035 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002036 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002037 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2038 # be set. Media (image, GIF or a video) to include in the card.
2039 # The following media-types are currently supported:
2040 #
2041 # Image Types
2042 #
2043 # * image/jpeg
2044 # * image/jpg&#x27;
2045 # * image/gif
2046 # * image/png
2047 #
2048 # Video Types
2049 #
2050 # * video/h263
2051 # * video/m4v
2052 # * video/mp4
2053 # * video/mpeg
2054 # * video/mpeg4
2055 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002057 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002058 # For a standalone card with horizontal layout, height is not
2059 # customizable, and this field is ignored.
2060 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2061 # determines the MIME type of the file from the content-type field in
2062 # the HTTP headers when the platform fetches the file. The content-type
2063 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002064 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2065 # provide a thumbnail URI, the RBM platform displays a blank
2066 # placeholder thumbnail until the user&#x27;s device downloads the file.
2067 # Depending on the user&#x27;s setting, the file may not download
2068 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002069 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002070 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2071 #
2072 # At least one of the title, description or media must be set.
2073 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2074 #
2075 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2077 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2078 # easily select/click a predefined response or perform an action (like
2079 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07002080 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2081 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002082 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2083 # If the user has an app installed that is
2084 # registered as the default handler for the URL, then this app will be
2085 # opened instead, and its icon will be used in the suggested action UI.
2086 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2087 },
2088 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2089 # to send back to the agent.
2090 },
2091 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002092 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002093 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002094 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2095 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2096 # format. An example of a correctly formatted phone number:
2097 # +15556767888.
2098 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002099 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2100 # when the user taps the suggested action. This data will be also
2101 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002102 },
2103 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2104 # instead of typing in their own response.
2105 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2106 # when the user taps the suggested reply. This data will be also
2107 # forwarded to webhook to allow performing custom business logic.
2108 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002109 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002110 },
2111 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002112 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002113 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2114 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2115 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002116 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002117 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2118 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2119 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2120 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2121 #
2122 # This object must be readable by the `service-&lt;Project
2123 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2124 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2125 # (usually the same as the Dialogflow agent project). If the Google Cloud
2126 # Storage bucket is in the Telephony Gateway project, this permission is
2127 # added by default when enabling the Dialogflow V2 API.
2128 #
2129 # For audio from other sources, consider using the
2130 # `TelephonySynthesizeSpeech` message with SSML.
2131 },
2132 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2133 &quot;items&quot;: [ # Required. Carousel items.
2134 { # An item in the carousel.
2135 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2136 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2137 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2138 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2139 },
2140 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2141 # dialog.
2142 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2143 # item in dialog.
2144 &quot;A String&quot;,
2145 ],
2146 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2147 # response is given.
2148 },
2149 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2150 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2151 },
2152 ],
2153 },
2154 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2155 # This message in `QueryResult.fulfillment_messages` and
2156 # `WebhookResponse.fulfillment_messages` should contain only one
2157 # `SimpleResponse`.
2158 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2159 { # The simple response message containing speech or text.
2160 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2161 # response to the user in the SSML format. Mutually exclusive with
2162 # text_to_speech.
2163 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2164 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2165 # speech output. Mutually exclusive with ssml.
2166 },
2167 ],
2168 },
2169 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2170 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2171 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2172 # items.
2173 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2174 # items, maximum of ten.
2175 { # Browsing carousel tile
2176 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2177 # Card. Maximum of one line of text.
2178 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2179 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2180 # text.
2181 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2182 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2183 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2184 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2185 },
2186 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2187 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2188 # the URL. Defaults to opening via web browser.
2189 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2190 },
2191 },
2192 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002194 },
2195 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002196 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
2197 # chain of followup intents. You can set this field when creating an intent,
2198 # for example with CreateIntent or
2199 # BatchUpdateIntents, in order to make this
2200 # intent a followup intent.
2201 #
2202 # It identifies the parent followup intent.
2203 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2204 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2205 { # Represents intent parameters.
2206 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2207 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2208 # whether the intent cannot be completed without collecting the parameter
2209 # value.
2210 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2211 # user in order to collect a value for the parameter.
2212 &quot;A String&quot;,
2213 ],
2214 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2215 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2216 # describes values of the parameter. If the parameter is
2217 # required, this must be provided.
2218 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2219 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
2220 #
2221 # - a constant string,
2222 # - a parameter value defined as `$parameter_name`,
2223 # - an original parameter value defined as `$parameter_name.original`,
2224 # - a parameter value from some context defined as
2225 # `#context_name.parameter_name`.
2226 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2227 # result.
2228 # Default values can be extracted from contexts by using the following
2229 # syntax: `#context_name.parameter_name`.
2230 },
2231 ],
2232 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2233 # If the collection of input contexts is not empty, all of the contexts must
2234 # be present in the active user session for an event to trigger this intent.
2235 # Event names are limited to 150 characters.
2236 &quot;A String&quot;,
2237 ],
2238 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002239 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2240 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2241 # methods.
2242 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002243 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
2244 # Note: If `ml_enabled` setting is set to false, then this intent is not
2245 # taken into account during inference in `ML ONLY` match mode. Also,
2246 # auto-markup in the UI is turned off.
2247 # DEPRECATED! Please use `ml_disabled` field instead.
2248 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2249 # then the default value is determined as follows:
2250 # - Before April 15th, 2018 the default is:
2251 # ml_enabled = false / ml_disabled = true.
2252 # - After April 15th, 2018 the default is:
2253 # ml_enabled = true / ml_disabled = false.
2254 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2255 # a direct or indirect parent. We populate this field only in the output.
2256 { # Represents a single followup intent in the chain.
2257 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2258 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2259 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2260 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2261 },
2262 ],
2263 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2264 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2265 &quot;A String&quot;,
2266 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002267 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
2268 # triggered.
2269 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
2270 &quot;A String&quot;,
2271 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002272 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2273 # priorities.
2274 #
2275 # - If the supplied value is unspecified or 0, the service
2276 # translates the value to 500,000, which corresponds to the
2277 # `Normal` priority in the console.
2278 # - If the supplied value is negative, the intent is ignored
2279 # in runtime detect intent requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002280}
2281
Bu Sun Kim65020912020-05-20 12:08:20 -07002282 languageCode: string, Optional. The language used to access language-specific data.
2283If not specified, the agent&#x27;s default language is used.
2284For more information, see
2285[Multilingual intent and entity
2286data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002287 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002288 x__xgafv: string, V1 error format.
2289 Allowed values
2290 1 - v1 error format
2291 2 - v2 error format
2292
2293Returns:
2294 An object of the form:
2295
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002296 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
2297 # each agent, you define many intents, where your combined intents can handle a
2298 # complete conversation. When an end-user writes or says something, referred to
2299 # as an end-user expression or end-user input, Dialogflow matches the end-user
2300 # input to the best intent in your agent. Matching an intent is also known as
2301 # intent classification.
2302 #
2303 # For more information, see the [intent
2304 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07002305 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
2306 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
2307 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002308 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
2309 # Note: The action name must not contain whitespaces.
2310 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002311 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
2312 # is matched. Context messages in this collection should not set the
2313 # parameters field. Setting the `lifespan_count` to 0 will reset the context
2314 # when the intent is matched.
2315 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002316 { # Dialogflow contexts are similar to natural language context. If a person says
2317 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
2318 # is referring to. Similarly, for Dialogflow to handle an end-user expression
2319 # like that, it needs to be provided with context in order to correctly match
2320 # an intent.
2321 #
2322 # Using contexts, you can control the flow of a conversation. You can configure
2323 # contexts for an intent by setting input and output contexts, which are
2324 # identified by string names. When an intent is matched, any configured output
2325 # contexts for that intent become active. While any contexts are active,
2326 # Dialogflow is more likely to match intents that are configured with input
2327 # contexts that correspond to the currently active contexts.
2328 #
2329 # For more information about context, see the
2330 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2331 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
2332 #
2333 # Depending on your protocol or client library language, this is a
2334 # map, associative array, symbol table, dictionary, or JSON object
2335 # composed of a collection of (MapKey, MapValue) pairs:
2336 #
2337 # - MapKey type: string
2338 # - MapKey value: parameter name
2339 # - MapValue type:
2340 # - If parameter&#x27;s entity type is a composite entity: map
2341 # - Else: string or number, depending on parameter value type
2342 # - MapValue value:
2343 # - If parameter&#x27;s entity type is a composite entity:
2344 # map from composite entity property names to property values
2345 # - Else: parameter value
2346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2347 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002348 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
2349 # context expires. The default is `0`. If set to `0`, the context expires
2350 # immediately. Contexts expire automatically after 20 minutes if there
2351 # are no matching queries.
2352 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
2353 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
2354 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
2355 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
2356 #
2357 # The `Context ID` is always converted to lowercase, may only contain
2358 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
2359 #
2360 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
2361 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
2362 #
2363 # The following context names are reserved for internal use by Dialogflow.
2364 # You should not use these contexts or create contexts with these names:
2365 #
2366 # * `__system_counters__`
2367 # * `*_id_dialog_context`
2368 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07002369 },
2370 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002371 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2372 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
2373 # session when this intent is matched.
2374 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
2375 # Note: If `ml_disabled` setting is set to true, then this intent is not
2376 # taken into account during inference in `ML ONLY` match mode. Also,
2377 # auto-markup in the UI is turned off.
2378 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
2379 # followup intents. It identifies the correct followup intents chain for
2380 # this intent.
2381 #
2382 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2383 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
2384 # trained on.
2385 { # Represents an example that the agent is trained on.
2386 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2387 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2388 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
2389 # The parts are concatenated in order to form the training phrase.
2390 #
2391 # Note: The API does not automatically annotate training phrases like the
2392 # Dialogflow Console does.
2393 #
2394 # Note: Do not forget to include whitespace at part boundaries,
2395 # so the training phrase is well formatted when the parts are concatenated.
2396 #
2397 # If the training phrase does not need to be annotated with parameters,
2398 # you just need a single part with only the Part.text field set.
2399 #
2400 # If you want to annotate the training phrase, you must create multiple
2401 # parts, where the fields of each part are populated in one of two ways:
2402 #
2403 # - `Part.text` is set to a part of the phrase that has no parameters.
2404 # - `Part.text` is set to a part of the phrase that you want to annotate,
2405 # and the `entity_type`, `alias`, and `user_defined` fields are all
2406 # set.
2407 { # Represents a part of a training phrase.
2408 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
2409 # This field is set to true when the Dialogflow Console is used to
2410 # manually annotate the part. When creating an annotated part with the
2411 # API, you must set this to true.
2412 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
2413 # annotated part of the example.
2414 # This field is required for annotated parts of the training phrase.
2415 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
2416 # This field is required for annotated parts of the training phrase.
2417 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2418 },
2419 ],
2420 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
2421 # the intent. Each time a developer adds an existing sample by editing an
2422 # intent or training, this counter is increased.
2423 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002424 ],
2425 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
2426 # `Response` field in the Dialogflow console.
2427 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002428 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2429 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2430 { # The suggestion chip message that the user can tap to quickly post a reply
2431 # to the conversation.
2432 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2433 },
2434 ],
2435 },
2436 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2437 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2438 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2439 { # Response media object for media content card.
2440 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2441 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2442 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2443 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2444 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2445 },
2446 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2447 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2448 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2449 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2450 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2451 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2452 },
2453 },
2454 ],
2455 },
2456 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2457 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
2458 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
2459 #
2460 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2461 },
2462 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2463 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
2464 # Telephony Gateway.
2465 #
2466 # Telephony Gateway takes the synthesizer settings from
2467 # `DetectIntentResponse.output_audio_config` which can either be set
2468 # at request-level or can come from the agent-level synthesizer config.
2469 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2470 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
2471 # [SSML](https://developers.google.com/actions/reference/ssml).
2472 },
2473 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
2474 # or website associated with this agent.
2475 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
2476 # suggestion chip.
2477 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2478 },
2479 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2480 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07002481 &quot;A String&quot;,
2482 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002483 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2484 },
2485 &quot;card&quot;: { # The card response message. # Displays a card.
2486 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2487 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2488 { # Optional. Contains information about a button.
2489 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2490 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
2491 # open.
2492 },
2493 ],
2494 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2495 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2496 },
2497 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2498 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2499 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2500 &quot;items&quot;: [ # Required. List items.
2501 { # An item in the list.
2502 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
2503 # dialog.
2504 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2505 # item in dialog.
2506 &quot;A String&quot;,
2507 ],
2508 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2509 # response is given.
2510 },
2511 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2512 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2513 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2514 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2515 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2516 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2517 },
2518 },
2519 ],
2520 },
2521 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2522 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2523 { # The button object that appears at the bottom of a card.
2524 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2525 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2526 },
2527 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2528 },
2529 ],
2530 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2531 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2532 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2533 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2534 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2535 },
2536 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2537 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2538 },
2539 &quot;image&quot;: { # The image response message. # Displays an image.
2540 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2541 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2542 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07002543 },
2544 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
2545 #
2546 # Rich cards allow you to respond to users with more vivid content, e.g.
2547 # with media and suggestions.
2548 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002549 # If you want to show a single card with more control over the layout,
2550 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002551 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002552 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
2553 # 2 cards and at most 10.
2554 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07002555 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2556 # be set. Media (image, GIF or a video) to include in the card.
2557 # The following media-types are currently supported:
2558 #
2559 # Image Types
2560 #
2561 # * image/jpeg
2562 # * image/jpg&#x27;
2563 # * image/gif
2564 # * image/png
2565 #
2566 # Video Types
2567 #
2568 # * video/h263
2569 # * video/m4v
2570 # * video/mp4
2571 # * video/mpeg
2572 # * video/mpeg4
2573 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07002574 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002575 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002576 # For a standalone card with horizontal layout, height is not
2577 # customizable, and this field is ignored.
2578 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2579 # determines the MIME type of the file from the content-type field in
2580 # the HTTP headers when the platform fetches the file. The content-type
2581 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002582 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2583 # provide a thumbnail URI, the RBM platform displays a blank
2584 # placeholder thumbnail until the user&#x27;s device downloads the file.
2585 # Depending on the user&#x27;s setting, the file may not download
2586 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002587 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002588 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2589 #
2590 # At least one of the title, description or media must be set.
2591 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2592 #
2593 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002594 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2595 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2596 # easily select/click a predefined response or perform an action (like
2597 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07002598 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2599 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002600 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2601 # If the user has an app installed that is
2602 # registered as the default handler for the URL, then this app will be
2603 # opened instead, and its icon will be used in the suggested action UI.
2604 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2605 },
2606 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2607 # to send back to the agent.
2608 },
2609 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002610 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002611 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002612 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2613 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2614 # format. An example of a correctly formatted phone number:
2615 # +15556767888.
2616 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002617 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2618 # when the user taps the suggested action. This data will be also
2619 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002620 },
2621 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2622 # instead of typing in their own response.
2623 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2624 # when the user taps the suggested reply. This data will be also
2625 # forwarded to webhook to allow performing custom business logic.
2626 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002627 },
2628 },
2629 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002630 },
2631 ],
2632 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002633 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2634 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002635 { # The button object that appears at the bottom of a card.
2636 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2637 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2638 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002639 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002640 },
2641 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002642 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07002643 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2644 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2645 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2646 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2647 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002648 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2649 { # Row of TableCard.
2650 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2651 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2652 { # Cell of TableCardRow.
2653 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2654 },
2655 ],
2656 },
2657 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002658 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002659 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2660 { # Column properties for TableCard.
2661 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2662 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2663 },
2664 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002665 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002666 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
2667 #
2668 # RBM allows businesses to send enriched and branded versions of SMS. See
2669 # https://jibe.google.com/business-messaging.
2670 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2671 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2672 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2673 # easily select/click a predefined response or perform an action (like
2674 # opening a web uri).
2675 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2676 # can choose from the card.
2677 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2678 # If the user has an app installed that is
2679 # registered as the default handler for the URL, then this app will be
2680 # opened instead, and its icon will be used in the suggested action UI.
2681 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2682 },
2683 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2684 # to send back to the agent.
2685 },
2686 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2687 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
2688 # but does not dial automatically.
2689 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2690 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2691 # format. An example of a correctly formatted phone number:
2692 # +15556767888.
2693 },
2694 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2695 # when the user taps the suggested action. This data will be also
2696 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002697 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002698 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2699 # instead of typing in their own response.
2700 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2701 # when the user taps the suggested reply. This data will be also
2702 # forwarded to webhook to allow performing custom business logic.
2703 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002704 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002705 },
2706 ],
2707 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002708 &quot;payload&quot;: { # A custom platform-specific response.
2709 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002710 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002711 &quot;text&quot;: { # The text response message. # Returns a text response.
2712 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2713 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002714 ],
2715 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002716 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
2717 #
2718 # Rich cards allow you to respond to users with more vivid content, e.g.
2719 # with media and suggestions.
2720 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002721 # You can group multiple rich cards into one using RbmCarouselCard but
2722 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002723 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07002724 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
2725 # be set. Media (image, GIF or a video) to include in the card.
2726 # The following media-types are currently supported:
2727 #
2728 # Image Types
2729 #
2730 # * image/jpeg
2731 # * image/jpg&#x27;
2732 # * image/gif
2733 # * image/png
2734 #
2735 # Video Types
2736 #
2737 # * video/h263
2738 # * video/m4v
2739 # * video/mp4
2740 # * video/mpeg
2741 # * video/mpeg4
2742 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07002743 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002744 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002745 # For a standalone card with horizontal layout, height is not
2746 # customizable, and this field is ignored.
2747 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
2748 # determines the MIME type of the file from the content-type field in
2749 # the HTTP headers when the platform fetches the file. The content-type
2750 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002751 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
2752 # provide a thumbnail URI, the RBM platform displays a blank
2753 # placeholder thumbnail until the user&#x27;s device downloads the file.
2754 # Depending on the user&#x27;s setting, the file may not download
2755 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002756 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002757 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
2758 #
2759 # At least one of the title, description or media must be set.
2760 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
2761 #
2762 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07002763 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2764 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
2765 # easily select/click a predefined response or perform an action (like
2766 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07002767 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
2768 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002769 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
2770 # If the user has an app installed that is
2771 # registered as the default handler for the URL, then this app will be
2772 # opened instead, and its icon will be used in the suggested action UI.
2773 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2774 },
2775 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
2776 # to send back to the agent.
2777 },
2778 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002779 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002780 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002781 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
2782 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
2783 # format. An example of a correctly formatted phone number:
2784 # +15556767888.
2785 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002786 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2787 # when the user taps the suggested action. This data will be also
2788 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002789 },
2790 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
2791 # instead of typing in their own response.
2792 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
2793 # when the user taps the suggested reply. This data will be also
2794 # forwarded to webhook to allow performing custom business logic.
2795 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002796 },
2797 },
2798 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002799 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002800 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2801 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
2802 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07002803 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002804 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2805 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
2806 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
2807 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
2808 #
2809 # This object must be readable by the `service-&lt;Project
2810 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
2811 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
2812 # (usually the same as the Dialogflow agent project). If the Google Cloud
2813 # Storage bucket is in the Telephony Gateway project, this permission is
2814 # added by default when enabling the Dialogflow V2 API.
2815 #
2816 # For audio from other sources, consider using the
2817 # `TelephonySynthesizeSpeech` message with SSML.
2818 },
2819 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2820 &quot;items&quot;: [ # Required. Carousel items.
2821 { # An item in the carousel.
2822 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2823 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2824 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2825 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2826 },
2827 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
2828 # dialog.
2829 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
2830 # item in dialog.
2831 &quot;A String&quot;,
2832 ],
2833 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
2834 # response is given.
2835 },
2836 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2837 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2838 },
2839 ],
2840 },
2841 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
2842 # This message in `QueryResult.fulfillment_messages` and
2843 # `WebhookResponse.fulfillment_messages` should contain only one
2844 # `SimpleResponse`.
2845 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2846 { # The simple response message containing speech or text.
2847 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
2848 # response to the user in the SSML format. Mutually exclusive with
2849 # text_to_speech.
2850 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2851 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
2852 # speech output. Mutually exclusive with ssml.
2853 },
2854 ],
2855 },
2856 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
2857 # https://developers.google.com/actions/assistant/responses#browsing_carousel
2858 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
2859 # items.
2860 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
2861 # items, maximum of ten.
2862 { # Browsing carousel tile
2863 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
2864 # Card. Maximum of one line of text.
2865 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2866 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
2867 # text.
2868 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2869 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2870 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
2871 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
2872 },
2873 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2874 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
2875 # the URL. Defaults to opening via web browser.
2876 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2877 },
2878 },
2879 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002880 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002881 },
2882 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002883 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
2884 # chain of followup intents. You can set this field when creating an intent,
2885 # for example with CreateIntent or
2886 # BatchUpdateIntents, in order to make this
2887 # intent a followup intent.
2888 #
2889 # It identifies the parent followup intent.
2890 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2891 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2892 { # Represents intent parameters.
2893 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2894 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
2895 # whether the intent cannot be completed without collecting the parameter
2896 # value.
2897 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
2898 # user in order to collect a value for the parameter.
2899 &quot;A String&quot;,
2900 ],
2901 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2902 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
2903 # describes values of the parameter. If the parameter is
2904 # required, this must be provided.
2905 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2906 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
2907 #
2908 # - a constant string,
2909 # - a parameter value defined as `$parameter_name`,
2910 # - an original parameter value defined as `$parameter_name.original`,
2911 # - a parameter value from some context defined as
2912 # `#context_name.parameter_name`.
2913 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
2914 # result.
2915 # Default values can be extracted from contexts by using the following
2916 # syntax: `#context_name.parameter_name`.
2917 },
2918 ],
2919 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
2920 # If the collection of input contexts is not empty, all of the contexts must
2921 # be present in the active user session for an event to trigger this intent.
2922 # Event names are limited to 150 characters.
2923 &quot;A String&quot;,
2924 ],
2925 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07002926 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
2927 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
2928 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07002929 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002930 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
2931 # Note: If `ml_enabled` setting is set to false, then this intent is not
2932 # taken into account during inference in `ML ONLY` match mode. Also,
2933 # auto-markup in the UI is turned off.
2934 # DEPRECATED! Please use `ml_disabled` field instead.
2935 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
2936 # then the default value is determined as follows:
2937 # - Before April 15th, 2018 the default is:
2938 # ml_enabled = false / ml_disabled = true.
2939 # - After April 15th, 2018 the default is:
2940 # ml_enabled = true / ml_disabled = false.
2941 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
2942 # a direct or indirect parent. We populate this field only in the output.
2943 { # Represents a single followup intent in the chain.
2944 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
2945 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2946 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
2947 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
2948 },
2949 ],
2950 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
2951 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2952 &quot;A String&quot;,
2953 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002954 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002955 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002956 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002957 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002958 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002959 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
2960 # priorities.
2961 #
2962 # - If the supplied value is unspecified or 0, the service
2963 # translates the value to 500,000, which corresponds to the
2964 # `Normal` priority in the console.
2965 # - If the supplied value is negative, the intent is ignored
2966 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002967 }</pre>
2968</div>
2969
2970<div class="method">
2971 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
2972 <pre>Deletes the specified intent and its direct or indirect followup intents.
2973
2974Args:
2975 name: string, Required. The name of the intent to delete. If this intent has direct or
2976indirect followup intents, we also delete them.
2977
Dan O'Mearadd494642020-05-01 07:42:23 -07002978Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002979 x__xgafv: string, V1 error format.
2980 Allowed values
2981 1 - v1 error format
2982 2 - v2 error format
2983
2984Returns:
2985 An object of the form:
2986
2987 { # A generic empty message that you can re-use to avoid defining duplicated
2988 # empty messages in your APIs. A typical example is to use it as the request
2989 # or the response type of an API method. For instance:
2990 #
2991 # service Foo {
2992 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2993 # }
2994 #
2995 # The JSON representation for `Empty` is empty JSON object `{}`.
2996 }</pre>
2997</div>
2998
2999<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003000 <code class="details" id="get">get(name, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003001 <pre>Retrieves the specified intent.
3002
3003Args:
3004 name: string, Required. The name of the intent.
Dan O'Mearadd494642020-05-01 07:42:23 -07003005Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
3006 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003007If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003008For more information, see
3009[Multilingual intent and entity
3010data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003011 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003012 x__xgafv: string, V1 error format.
3013 Allowed values
3014 1 - v1 error format
3015 2 - v2 error format
3016
3017Returns:
3018 An object of the form:
3019
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003020 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
3021 # each agent, you define many intents, where your combined intents can handle a
3022 # complete conversation. When an end-user writes or says something, referred to
3023 # as an end-user expression or end-user input, Dialogflow matches the end-user
3024 # input to the best intent in your agent. Matching an intent is also known as
3025 # intent classification.
3026 #
3027 # For more information, see the [intent
3028 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3030 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3031 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003032 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3033 # Note: The action name must not contain whitespaces.
3034 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003035 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3036 # is matched. Context messages in this collection should not set the
3037 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3038 # when the intent is matched.
3039 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003040 { # Dialogflow contexts are similar to natural language context. If a person says
3041 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
3042 # is referring to. Similarly, for Dialogflow to handle an end-user expression
3043 # like that, it needs to be provided with context in order to correctly match
3044 # an intent.
3045 #
3046 # Using contexts, you can control the flow of a conversation. You can configure
3047 # contexts for an intent by setting input and output contexts, which are
3048 # identified by string names. When an intent is matched, any configured output
3049 # contexts for that intent become active. While any contexts are active,
3050 # Dialogflow is more likely to match intents that are configured with input
3051 # contexts that correspond to the currently active contexts.
3052 #
3053 # For more information about context, see the
3054 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
3055 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3056 #
3057 # Depending on your protocol or client library language, this is a
3058 # map, associative array, symbol table, dictionary, or JSON object
3059 # composed of a collection of (MapKey, MapValue) pairs:
3060 #
3061 # - MapKey type: string
3062 # - MapKey value: parameter name
3063 # - MapValue type:
3064 # - If parameter&#x27;s entity type is a composite entity: map
3065 # - Else: string or number, depending on parameter value type
3066 # - MapValue value:
3067 # - If parameter&#x27;s entity type is a composite entity:
3068 # map from composite entity property names to property values
3069 # - Else: parameter value
3070 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3071 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003072 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3073 # context expires. The default is `0`. If set to `0`, the context expires
3074 # immediately. Contexts expire automatically after 20 minutes if there
3075 # are no matching queries.
3076 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3077 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3078 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3079 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3080 #
3081 # The `Context ID` is always converted to lowercase, may only contain
3082 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3083 #
3084 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3085 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3086 #
3087 # The following context names are reserved for internal use by Dialogflow.
3088 # You should not use these contexts or create contexts with these names:
3089 #
3090 # * `__system_counters__`
3091 # * `*_id_dialog_context`
3092 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07003093 },
3094 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003095 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
3096 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3097 # session when this intent is matched.
3098 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3099 # Note: If `ml_disabled` setting is set to true, then this intent is not
3100 # taken into account during inference in `ML ONLY` match mode. Also,
3101 # auto-markup in the UI is turned off.
3102 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
3103 # followup intents. It identifies the correct followup intents chain for
3104 # this intent.
3105 #
3106 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3107 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
3108 # trained on.
3109 { # Represents an example that the agent is trained on.
3110 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
3111 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3112 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
3113 # The parts are concatenated in order to form the training phrase.
3114 #
3115 # Note: The API does not automatically annotate training phrases like the
3116 # Dialogflow Console does.
3117 #
3118 # Note: Do not forget to include whitespace at part boundaries,
3119 # so the training phrase is well formatted when the parts are concatenated.
3120 #
3121 # If the training phrase does not need to be annotated with parameters,
3122 # you just need a single part with only the Part.text field set.
3123 #
3124 # If you want to annotate the training phrase, you must create multiple
3125 # parts, where the fields of each part are populated in one of two ways:
3126 #
3127 # - `Part.text` is set to a part of the phrase that has no parameters.
3128 # - `Part.text` is set to a part of the phrase that you want to annotate,
3129 # and the `entity_type`, `alias`, and `user_defined` fields are all
3130 # set.
3131 { # Represents a part of a training phrase.
3132 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
3133 # This field is set to true when the Dialogflow Console is used to
3134 # manually annotate the part. When creating an annotated part with the
3135 # API, you must set this to true.
3136 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
3137 # annotated part of the example.
3138 # This field is required for annotated parts of the training phrase.
3139 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3140 # This field is required for annotated parts of the training phrase.
3141 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3142 },
3143 ],
3144 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3145 # the intent. Each time a developer adds an existing sample by editing an
3146 # intent or training, this counter is increased.
3147 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003148 ],
3149 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3150 # `Response` field in the Dialogflow console.
3151 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003152 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3153 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3154 { # The suggestion chip message that the user can tap to quickly post a reply
3155 # to the conversation.
3156 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3157 },
3158 ],
3159 },
3160 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3161 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3162 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3163 { # Response media object for media content card.
3164 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3165 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3166 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3167 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3168 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3169 },
3170 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3171 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3172 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3173 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3174 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3175 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3176 },
3177 },
3178 ],
3179 },
3180 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3181 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
3182 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
3183 #
3184 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3185 },
3186 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3187 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
3188 # Telephony Gateway.
3189 #
3190 # Telephony Gateway takes the synthesizer settings from
3191 # `DetectIntentResponse.output_audio_config` which can either be set
3192 # at request-level or can come from the agent-level synthesizer config.
3193 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3194 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
3195 # [SSML](https://developers.google.com/actions/reference/ssml).
3196 },
3197 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
3198 # or website associated with this agent.
3199 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3200 # suggestion chip.
3201 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3202 },
3203 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3204 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07003205 &quot;A String&quot;,
3206 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003207 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3208 },
3209 &quot;card&quot;: { # The card response message. # Displays a card.
3210 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3211 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3212 { # Optional. Contains information about a button.
3213 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3214 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3215 # open.
3216 },
3217 ],
3218 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3219 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3220 },
3221 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3222 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3223 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3224 &quot;items&quot;: [ # Required. List items.
3225 { # An item in the list.
3226 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3227 # dialog.
3228 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3229 # item in dialog.
3230 &quot;A String&quot;,
3231 ],
3232 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3233 # response is given.
3234 },
3235 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3236 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3237 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3238 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3239 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3240 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3241 },
3242 },
3243 ],
3244 },
3245 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
3246 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3247 { # The button object that appears at the bottom of a card.
3248 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3249 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3250 },
3251 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3252 },
3253 ],
3254 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3255 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3256 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3257 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3258 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3259 },
3260 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3261 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3262 },
3263 &quot;image&quot;: { # The image response message. # Displays an image.
3264 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3265 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3266 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07003267 },
3268 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3269 #
3270 # Rich cards allow you to respond to users with more vivid content, e.g.
3271 # with media and suggestions.
3272 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003273 # If you want to show a single card with more control over the layout,
3274 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003275 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003276 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3277 # 2 cards and at most 10.
3278 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07003279 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3280 # be set. Media (image, GIF or a video) to include in the card.
3281 # The following media-types are currently supported:
3282 #
3283 # Image Types
3284 #
3285 # * image/jpeg
3286 # * image/jpg&#x27;
3287 # * image/gif
3288 # * image/png
3289 #
3290 # Video Types
3291 #
3292 # * video/h263
3293 # * video/m4v
3294 # * video/mp4
3295 # * video/mpeg
3296 # * video/mpeg4
3297 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07003298 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003299 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07003300 # For a standalone card with horizontal layout, height is not
3301 # customizable, and this field is ignored.
3302 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3303 # determines the MIME type of the file from the content-type field in
3304 # the HTTP headers when the platform fetches the file. The content-type
3305 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003306 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3307 # provide a thumbnail URI, the RBM platform displays a blank
3308 # placeholder thumbnail until the user&#x27;s device downloads the file.
3309 # Depending on the user&#x27;s setting, the file may not download
3310 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003311 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003312 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3313 #
3314 # At least one of the title, description or media must be set.
3315 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3316 #
3317 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003318 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3319 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3320 # easily select/click a predefined response or perform an action (like
3321 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07003322 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3323 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003324 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3325 # If the user has an app installed that is
3326 # registered as the default handler for the URL, then this app will be
3327 # opened instead, and its icon will be used in the suggested action UI.
3328 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3329 },
3330 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3331 # to send back to the agent.
3332 },
3333 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003334 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003335 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003336 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3337 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3338 # format. An example of a correctly formatted phone number:
3339 # +15556767888.
3340 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003341 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3342 # when the user taps the suggested action. This data will be also
3343 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003344 },
3345 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3346 # instead of typing in their own response.
3347 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3348 # when the user taps the suggested reply. This data will be also
3349 # forwarded to webhook to allow performing custom business logic.
3350 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003351 },
3352 },
3353 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003354 },
3355 ],
3356 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003357 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
3358 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003359 { # The button object that appears at the bottom of a card.
3360 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3361 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3362 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003363 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003364 },
3365 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003366 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07003367 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3368 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3369 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3370 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3371 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003372 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3373 { # Row of TableCard.
3374 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3375 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3376 { # Cell of TableCardRow.
3377 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3378 },
3379 ],
3380 },
3381 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003382 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003383 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3384 { # Column properties for TableCard.
3385 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3386 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3387 },
3388 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003389 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003390 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
3391 #
3392 # RBM allows businesses to send enriched and branded versions of SMS. See
3393 # https://jibe.google.com/business-messaging.
3394 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
3395 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
3396 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3397 # easily select/click a predefined response or perform an action (like
3398 # opening a web uri).
3399 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3400 # can choose from the card.
3401 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3402 # If the user has an app installed that is
3403 # registered as the default handler for the URL, then this app will be
3404 # opened instead, and its icon will be used in the suggested action UI.
3405 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3406 },
3407 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3408 # to send back to the agent.
3409 },
3410 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3411 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
3412 # but does not dial automatically.
3413 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3414 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3415 # format. An example of a correctly formatted phone number:
3416 # +15556767888.
3417 },
3418 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3419 # when the user taps the suggested action. This data will be also
3420 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07003421 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003422 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3423 # instead of typing in their own response.
3424 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3425 # when the user taps the suggested reply. This data will be also
3426 # forwarded to webhook to allow performing custom business logic.
3427 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003428 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003429 },
3430 ],
3431 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003432 &quot;payload&quot;: { # A custom platform-specific response.
3433 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07003434 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003435 &quot;text&quot;: { # The text response message. # Returns a text response.
3436 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3437 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07003438 ],
3439 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003440 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
3441 #
3442 # Rich cards allow you to respond to users with more vivid content, e.g.
3443 # with media and suggestions.
3444 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003445 # You can group multiple rich cards into one using RbmCarouselCard but
3446 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07003447 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07003448 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3449 # be set. Media (image, GIF or a video) to include in the card.
3450 # The following media-types are currently supported:
3451 #
3452 # Image Types
3453 #
3454 # * image/jpeg
3455 # * image/jpg&#x27;
3456 # * image/gif
3457 # * image/png
3458 #
3459 # Video Types
3460 #
3461 # * video/h263
3462 # * video/m4v
3463 # * video/mp4
3464 # * video/mpeg
3465 # * video/mpeg4
3466 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07003467 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003468 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07003469 # For a standalone card with horizontal layout, height is not
3470 # customizable, and this field is ignored.
3471 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
3472 # determines the MIME type of the file from the content-type field in
3473 # the HTTP headers when the platform fetches the file. The content-type
3474 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003475 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
3476 # provide a thumbnail URI, the RBM platform displays a blank
3477 # placeholder thumbnail until the user&#x27;s device downloads the file.
3478 # Depending on the user&#x27;s setting, the file may not download
3479 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07003480 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003481 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
3482 #
3483 # At least one of the title, description or media must be set.
3484 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
3485 #
3486 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07003487 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3488 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
3489 # easily select/click a predefined response or perform an action (like
3490 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07003491 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
3492 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003493 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
3494 # If the user has an app installed that is
3495 # registered as the default handler for the URL, then this app will be
3496 # opened instead, and its icon will be used in the suggested action UI.
3497 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3498 },
3499 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
3500 # to send back to the agent.
3501 },
3502 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003503 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003504 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003505 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
3506 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
3507 # format. An example of a correctly formatted phone number:
3508 # +15556767888.
3509 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003510 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3511 # when the user taps the suggested action. This data will be also
3512 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003513 },
3514 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
3515 # instead of typing in their own response.
3516 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
3517 # when the user taps the suggested reply. This data will be also
3518 # forwarded to webhook to allow performing custom business logic.
3519 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07003520 },
3521 },
3522 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003523 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003524 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
3525 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
3526 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07003527 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003528 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3529 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
3530 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
3531 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
3532 #
3533 # This object must be readable by the `service-&lt;Project
3534 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
3535 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
3536 # (usually the same as the Dialogflow agent project). If the Google Cloud
3537 # Storage bucket is in the Telephony Gateway project, this permission is
3538 # added by default when enabling the Dialogflow V2 API.
3539 #
3540 # For audio from other sources, consider using the
3541 # `TelephonySynthesizeSpeech` message with SSML.
3542 },
3543 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
3544 &quot;items&quot;: [ # Required. Carousel items.
3545 { # An item in the carousel.
3546 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3547 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3548 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3549 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3550 },
3551 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
3552 # dialog.
3553 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3554 # item in dialog.
3555 &quot;A String&quot;,
3556 ],
3557 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3558 # response is given.
3559 },
3560 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
3561 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
3562 },
3563 ],
3564 },
3565 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
3566 # This message in `QueryResult.fulfillment_messages` and
3567 # `WebhookResponse.fulfillment_messages` should contain only one
3568 # `SimpleResponse`.
3569 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3570 { # The simple response message containing speech or text.
3571 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
3572 # response to the user in the SSML format. Mutually exclusive with
3573 # text_to_speech.
3574 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
3575 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
3576 # speech output. Mutually exclusive with ssml.
3577 },
3578 ],
3579 },
3580 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
3581 # https://developers.google.com/actions/assistant/responses#browsing_carousel
3582 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
3583 # items.
3584 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
3585 # items, maximum of ten.
3586 { # Browsing carousel tile
3587 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
3588 # Card. Maximum of one line of text.
3589 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3590 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
3591 # text.
3592 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3593 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3594 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3595 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3596 },
3597 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3598 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
3599 # the URL. Defaults to opening via web browser.
3600 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3601 },
3602 },
3603 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003604 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003605 },
3606 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003607 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
3608 # chain of followup intents. You can set this field when creating an intent,
3609 # for example with CreateIntent or
3610 # BatchUpdateIntents, in order to make this
3611 # intent a followup intent.
3612 #
3613 # It identifies the parent followup intent.
3614 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3615 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3616 { # Represents intent parameters.
3617 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3618 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
3619 # whether the intent cannot be completed without collecting the parameter
3620 # value.
3621 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
3622 # user in order to collect a value for the parameter.
3623 &quot;A String&quot;,
3624 ],
3625 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3626 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
3627 # describes values of the parameter. If the parameter is
3628 # required, this must be provided.
3629 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3630 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
3631 #
3632 # - a constant string,
3633 # - a parameter value defined as `$parameter_name`,
3634 # - an original parameter value defined as `$parameter_name.original`,
3635 # - a parameter value from some context defined as
3636 # `#context_name.parameter_name`.
3637 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
3638 # result.
3639 # Default values can be extracted from contexts by using the following
3640 # syntax: `#context_name.parameter_name`.
3641 },
3642 ],
3643 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
3644 # If the collection of input contexts is not empty, all of the contexts must
3645 # be present in the active user session for an event to trigger this intent.
3646 # Event names are limited to 150 characters.
3647 &quot;A String&quot;,
3648 ],
3649 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003650 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
3651 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
3652 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07003653 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003654 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
3655 # Note: If `ml_enabled` setting is set to false, then this intent is not
3656 # taken into account during inference in `ML ONLY` match mode. Also,
3657 # auto-markup in the UI is turned off.
3658 # DEPRECATED! Please use `ml_disabled` field instead.
3659 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
3660 # then the default value is determined as follows:
3661 # - Before April 15th, 2018 the default is:
3662 # ml_enabled = false / ml_disabled = true.
3663 # - After April 15th, 2018 the default is:
3664 # ml_enabled = true / ml_disabled = false.
3665 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
3666 # a direct or indirect parent. We populate this field only in the output.
3667 { # Represents a single followup intent in the chain.
3668 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
3669 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3670 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
3671 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3672 },
3673 ],
3674 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
3675 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
3676 &quot;A String&quot;,
3677 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003678 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003679 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003680 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003681 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003682 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003683 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
3684 # priorities.
3685 #
3686 # - If the supplied value is unspecified or 0, the service
3687 # translates the value to 500,000, which corresponds to the
3688 # `Normal` priority in the console.
3689 # - If the supplied value is negative, the intent is ignored
3690 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003691 }</pre>
3692</div>
3693
3694<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003695 <code class="details" id="list">list(parent, pageToken=None, languageCode=None, intentView=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003696 <pre>Returns the list of all intents in the specified agent.
3697
3698Args:
3699 parent: string, Required. The agent to list all intents from.
Dan O'Mearadd494642020-05-01 07:42:23 -07003700Format: `projects/&lt;Project ID&gt;/agent`. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003701 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Dan O'Mearadd494642020-05-01 07:42:23 -07003702 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07003703If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07003704For more information, see
3705[Multilingual intent and entity
3706data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003707 intentView: string, Optional. The resource view to apply to the returned intent.
3708 pageSize: integer, Optional. The maximum number of items to return in a single page. By
3709default 100 and at most 1000.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003710 x__xgafv: string, V1 error format.
3711 Allowed values
3712 1 - v1 error format
3713 2 - v2 error format
3714
3715Returns:
3716 An object of the form:
3717
3718 { # The response message for Intents.ListIntents.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003719 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
3720 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07003721 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003722 # returned based on the page_size field in the request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003723 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
3724 # each agent, you define many intents, where your combined intents can handle a
3725 # complete conversation. When an end-user writes or says something, referred to
3726 # as an end-user expression or end-user input, Dialogflow matches the end-user
3727 # input to the best intent in your agent. Matching an intent is also known as
3728 # intent classification.
3729 #
3730 # For more information, see the [intent
3731 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07003732 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
3733 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
3734 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003735 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
3736 # Note: The action name must not contain whitespaces.
3737 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07003738 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
3739 # is matched. Context messages in this collection should not set the
3740 # parameters field. Setting the `lifespan_count` to 0 will reset the context
3741 # when the intent is matched.
3742 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003743 { # Dialogflow contexts are similar to natural language context. If a person says
3744 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
3745 # is referring to. Similarly, for Dialogflow to handle an end-user expression
3746 # like that, it needs to be provided with context in order to correctly match
3747 # an intent.
3748 #
3749 # Using contexts, you can control the flow of a conversation. You can configure
3750 # contexts for an intent by setting input and output contexts, which are
3751 # identified by string names. When an intent is matched, any configured output
3752 # contexts for that intent become active. While any contexts are active,
3753 # Dialogflow is more likely to match intents that are configured with input
3754 # contexts that correspond to the currently active contexts.
3755 #
3756 # For more information about context, see the
3757 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
3758 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
3759 #
3760 # Depending on your protocol or client library language, this is a
3761 # map, associative array, symbol table, dictionary, or JSON object
3762 # composed of a collection of (MapKey, MapValue) pairs:
3763 #
3764 # - MapKey type: string
3765 # - MapKey value: parameter name
3766 # - MapValue type:
3767 # - If parameter&#x27;s entity type is a composite entity: map
3768 # - Else: string or number, depending on parameter value type
3769 # - MapValue value:
3770 # - If parameter&#x27;s entity type is a composite entity:
3771 # map from composite entity property names to property values
3772 # - Else: parameter value
3773 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3774 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003775 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
3776 # context expires. The default is `0`. If set to `0`, the context expires
3777 # immediately. Contexts expire automatically after 20 minutes if there
3778 # are no matching queries.
3779 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
3780 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
3781 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
3782 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
3783 #
3784 # The `Context ID` is always converted to lowercase, may only contain
3785 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
3786 #
3787 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
3788 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
3789 #
3790 # The following context names are reserved for internal use by Dialogflow.
3791 # You should not use these contexts or create contexts with these names:
3792 #
3793 # * `__system_counters__`
3794 # * `*_id_dialog_context`
3795 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07003796 },
3797 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003798 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
3799 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
3800 # session when this intent is matched.
3801 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
3802 # Note: If `ml_disabled` setting is set to true, then this intent is not
3803 # taken into account during inference in `ML ONLY` match mode. Also,
3804 # auto-markup in the UI is turned off.
3805 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
3806 # followup intents. It identifies the correct followup intents chain for
3807 # this intent.
3808 #
3809 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
3810 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
3811 # trained on.
3812 { # Represents an example that the agent is trained on.
3813 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
3814 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3815 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
3816 # The parts are concatenated in order to form the training phrase.
3817 #
3818 # Note: The API does not automatically annotate training phrases like the
3819 # Dialogflow Console does.
3820 #
3821 # Note: Do not forget to include whitespace at part boundaries,
3822 # so the training phrase is well formatted when the parts are concatenated.
3823 #
3824 # If the training phrase does not need to be annotated with parameters,
3825 # you just need a single part with only the Part.text field set.
3826 #
3827 # If you want to annotate the training phrase, you must create multiple
3828 # parts, where the fields of each part are populated in one of two ways:
3829 #
3830 # - `Part.text` is set to a part of the phrase that has no parameters.
3831 # - `Part.text` is set to a part of the phrase that you want to annotate,
3832 # and the `entity_type`, `alias`, and `user_defined` fields are all
3833 # set.
3834 { # Represents a part of a training phrase.
3835 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
3836 # This field is set to true when the Dialogflow Console is used to
3837 # manually annotate the part. When creating an annotated part with the
3838 # API, you must set this to true.
3839 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
3840 # annotated part of the example.
3841 # This field is required for annotated parts of the training phrase.
3842 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
3843 # This field is required for annotated parts of the training phrase.
3844 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3845 },
3846 ],
3847 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
3848 # the intent. Each time a developer adds an existing sample by editing an
3849 # intent or training, this counter is increased.
3850 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003851 ],
3852 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
3853 # `Response` field in the Dialogflow console.
3854 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003855 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
3856 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
3857 { # The suggestion chip message that the user can tap to quickly post a reply
3858 # to the conversation.
3859 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
3860 },
3861 ],
3862 },
3863 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3864 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
3865 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3866 { # Response media object for media content card.
3867 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3868 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3869 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3870 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3871 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3872 },
3873 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3874 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3875 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3876 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3877 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3878 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3879 },
3880 },
3881 ],
3882 },
3883 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3884 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
3885 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
3886 #
3887 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3888 },
3889 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
3890 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
3891 # Telephony Gateway.
3892 #
3893 # Telephony Gateway takes the synthesizer settings from
3894 # `DetectIntentResponse.output_audio_config` which can either be set
3895 # at request-level or can come from the agent-level synthesizer config.
3896 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3897 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
3898 # [SSML](https://developers.google.com/actions/reference/ssml).
3899 },
3900 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
3901 # or website associated with this agent.
3902 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
3903 # suggestion chip.
3904 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3905 },
3906 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3907 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07003908 &quot;A String&quot;,
3909 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003910 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3911 },
3912 &quot;card&quot;: { # The card response message. # Displays a card.
3913 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3914 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3915 { # Optional. Contains information about a button.
3916 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3917 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
3918 # open.
3919 },
3920 ],
3921 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3922 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3923 },
3924 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3925 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3926 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
3927 &quot;items&quot;: [ # Required. List items.
3928 { # An item in the list.
3929 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
3930 # dialog.
3931 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
3932 # item in dialog.
3933 &quot;A String&quot;,
3934 ],
3935 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
3936 # response is given.
3937 },
3938 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3939 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3940 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3941 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3942 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3943 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3944 },
3945 },
3946 ],
3947 },
3948 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
3949 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3950 { # The button object that appears at the bottom of a card.
3951 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3952 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3953 },
3954 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3955 },
3956 ],
3957 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3958 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
3959 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3960 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3961 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
3962 },
3963 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3964 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
3965 },
3966 &quot;image&quot;: { # The image response message. # Displays an image.
3967 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3968 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
3969 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07003970 },
3971 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
3972 #
3973 # Rich cards allow you to respond to users with more vivid content, e.g.
3974 # with media and suggestions.
3975 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003976 # If you want to show a single card with more control over the layout,
3977 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003978 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07003979 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
3980 # 2 cards and at most 10.
3981 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07003982 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
3983 # be set. Media (image, GIF or a video) to include in the card.
3984 # The following media-types are currently supported:
3985 #
3986 # Image Types
3987 #
3988 # * image/jpeg
3989 # * image/jpg&#x27;
3990 # * image/gif
3991 # * image/png
3992 #
3993 # Video Types
3994 #
3995 # * video/h263
3996 # * video/m4v
3997 # * video/mp4
3998 # * video/mpeg
3999 # * video/mpeg4
4000 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07004001 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004002 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004003 # For a standalone card with horizontal layout, height is not
4004 # customizable, and this field is ignored.
4005 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4006 # determines the MIME type of the file from the content-type field in
4007 # the HTTP headers when the platform fetches the file. The content-type
4008 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004009 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4010 # provide a thumbnail URI, the RBM platform displays a blank
4011 # placeholder thumbnail until the user&#x27;s device downloads the file.
4012 # Depending on the user&#x27;s setting, the file may not download
4013 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004014 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004015 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4016 #
4017 # At least one of the title, description or media must be set.
4018 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4019 #
4020 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004021 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4022 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4023 # easily select/click a predefined response or perform an action (like
4024 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07004025 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4026 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004027 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4028 # If the user has an app installed that is
4029 # registered as the default handler for the URL, then this app will be
4030 # opened instead, and its icon will be used in the suggested action UI.
4031 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4032 },
4033 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4034 # to send back to the agent.
4035 },
4036 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004037 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004038 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004039 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4040 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4041 # format. An example of a correctly formatted phone number:
4042 # +15556767888.
4043 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004044 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4045 # when the user taps the suggested action. This data will be also
4046 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004047 },
4048 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4049 # instead of typing in their own response.
4050 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4051 # when the user taps the suggested reply. This data will be also
4052 # forwarded to webhook to allow performing custom business logic.
4053 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004054 },
4055 },
4056 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004057 },
4058 ],
4059 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004060 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
4061 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004062 { # The button object that appears at the bottom of a card.
4063 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4064 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4065 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004066 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004067 },
4068 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004069 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07004070 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4071 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4072 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4073 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4074 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004075 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4076 { # Row of TableCard.
4077 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4078 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4079 { # Cell of TableCardRow.
4080 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4081 },
4082 ],
4083 },
4084 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004085 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004086 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4087 { # Column properties for TableCard.
4088 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4089 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4090 },
4091 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004092 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004093 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
4094 #
4095 # RBM allows businesses to send enriched and branded versions of SMS. See
4096 # https://jibe.google.com/business-messaging.
4097 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
4098 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
4099 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4100 # easily select/click a predefined response or perform an action (like
4101 # opening a web uri).
4102 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4103 # can choose from the card.
4104 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4105 # If the user has an app installed that is
4106 # registered as the default handler for the URL, then this app will be
4107 # opened instead, and its icon will be used in the suggested action UI.
4108 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4109 },
4110 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4111 # to send back to the agent.
4112 },
4113 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4114 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4115 # but does not dial automatically.
4116 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4117 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4118 # format. An example of a correctly formatted phone number:
4119 # +15556767888.
4120 },
4121 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4122 # when the user taps the suggested action. This data will be also
4123 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07004124 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004125 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4126 # instead of typing in their own response.
4127 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4128 # when the user taps the suggested reply. This data will be also
4129 # forwarded to webhook to allow performing custom business logic.
4130 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004131 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004132 },
4133 ],
4134 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004135 &quot;payload&quot;: { # A custom platform-specific response.
4136 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07004137 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004138 &quot;text&quot;: { # The text response message. # Returns a text response.
4139 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
4140 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07004141 ],
4142 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004143 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4144 #
4145 # Rich cards allow you to respond to users with more vivid content, e.g.
4146 # with media and suggestions.
4147 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004148 # You can group multiple rich cards into one using RbmCarouselCard but
4149 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004150 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07004151 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4152 # be set. Media (image, GIF or a video) to include in the card.
4153 # The following media-types are currently supported:
4154 #
4155 # Image Types
4156 #
4157 # * image/jpeg
4158 # * image/jpg&#x27;
4159 # * image/gif
4160 # * image/png
4161 #
4162 # Video Types
4163 #
4164 # * video/h263
4165 # * video/m4v
4166 # * video/mp4
4167 # * video/mpeg
4168 # * video/mpeg4
4169 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07004170 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004171 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004172 # For a standalone card with horizontal layout, height is not
4173 # customizable, and this field is ignored.
4174 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4175 # determines the MIME type of the file from the content-type field in
4176 # the HTTP headers when the platform fetches the file. The content-type
4177 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004178 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4179 # provide a thumbnail URI, the RBM platform displays a blank
4180 # placeholder thumbnail until the user&#x27;s device downloads the file.
4181 # Depending on the user&#x27;s setting, the file may not download
4182 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004183 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004184 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4185 #
4186 # At least one of the title, description or media must be set.
4187 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4188 #
4189 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004190 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4191 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4192 # easily select/click a predefined response or perform an action (like
4193 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07004194 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4195 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004196 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4197 # If the user has an app installed that is
4198 # registered as the default handler for the URL, then this app will be
4199 # opened instead, and its icon will be used in the suggested action UI.
4200 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4201 },
4202 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4203 # to send back to the agent.
4204 },
4205 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004206 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004207 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004208 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4209 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4210 # format. An example of a correctly formatted phone number:
4211 # +15556767888.
4212 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004213 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4214 # when the user taps the suggested action. This data will be also
4215 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004216 },
4217 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4218 # instead of typing in their own response.
4219 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4220 # when the user taps the suggested reply. This data will be also
4221 # forwarded to webhook to allow performing custom business logic.
4222 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004223 },
4224 },
4225 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004226 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004227 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4228 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4229 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004230 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004231 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
4232 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
4233 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
4234 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
4235 #
4236 # This object must be readable by the `service-&lt;Project
4237 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
4238 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
4239 # (usually the same as the Dialogflow agent project). If the Google Cloud
4240 # Storage bucket is in the Telephony Gateway project, this permission is
4241 # added by default when enabling the Dialogflow V2 API.
4242 #
4243 # For audio from other sources, consider using the
4244 # `TelephonySynthesizeSpeech` message with SSML.
4245 },
4246 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4247 &quot;items&quot;: [ # Required. Carousel items.
4248 { # An item in the carousel.
4249 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4250 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4251 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4252 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4253 },
4254 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4255 # dialog.
4256 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4257 # item in dialog.
4258 &quot;A String&quot;,
4259 ],
4260 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4261 # response is given.
4262 },
4263 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4264 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4265 },
4266 ],
4267 },
4268 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4269 # This message in `QueryResult.fulfillment_messages` and
4270 # `WebhookResponse.fulfillment_messages` should contain only one
4271 # `SimpleResponse`.
4272 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4273 { # The simple response message containing speech or text.
4274 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4275 # response to the user in the SSML format. Mutually exclusive with
4276 # text_to_speech.
4277 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
4278 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4279 # speech output. Mutually exclusive with ssml.
4280 },
4281 ],
4282 },
4283 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4284 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4285 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4286 # items.
4287 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4288 # items, maximum of ten.
4289 { # Browsing carousel tile
4290 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4291 # Card. Maximum of one line of text.
4292 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4293 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4294 # text.
4295 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4296 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4297 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4298 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4299 },
4300 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
4301 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
4302 # the URL. Defaults to opening via web browser.
4303 &quot;url&quot;: &quot;A String&quot;, # Required. URL
4304 },
4305 },
4306 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004307 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004308 },
4309 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004310 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
4311 # chain of followup intents. You can set this field when creating an intent,
4312 # for example with CreateIntent or
4313 # BatchUpdateIntents, in order to make this
4314 # intent a followup intent.
4315 #
4316 # It identifies the parent followup intent.
4317 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4318 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
4319 { # Represents intent parameters.
4320 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
4321 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
4322 # whether the intent cannot be completed without collecting the parameter
4323 # value.
4324 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
4325 # user in order to collect a value for the parameter.
4326 &quot;A String&quot;,
4327 ],
4328 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
4329 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
4330 # describes values of the parameter. If the parameter is
4331 # required, this must be provided.
4332 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
4333 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
4334 #
4335 # - a constant string,
4336 # - a parameter value defined as `$parameter_name`,
4337 # - an original parameter value defined as `$parameter_name.original`,
4338 # - a parameter value from some context defined as
4339 # `#context_name.parameter_name`.
4340 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
4341 # result.
4342 # Default values can be extracted from contexts by using the following
4343 # syntax: `#context_name.parameter_name`.
4344 },
4345 ],
4346 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
4347 # If the collection of input contexts is not empty, all of the contexts must
4348 # be present in the active user session for an event to trigger this intent.
4349 # Event names are limited to 150 characters.
4350 &quot;A String&quot;,
4351 ],
4352 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07004353 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
4354 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4355 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004356 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004357 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
4358 # Note: If `ml_enabled` setting is set to false, then this intent is not
4359 # taken into account during inference in `ML ONLY` match mode. Also,
4360 # auto-markup in the UI is turned off.
4361 # DEPRECATED! Please use `ml_disabled` field instead.
4362 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
4363 # then the default value is determined as follows:
4364 # - Before April 15th, 2018 the default is:
4365 # ml_enabled = false / ml_disabled = true.
4366 # - After April 15th, 2018 the default is:
4367 # ml_enabled = true / ml_disabled = false.
4368 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
4369 # a direct or indirect parent. We populate this field only in the output.
4370 { # Represents a single followup intent in the chain.
4371 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
4372 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4373 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
4374 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4375 },
4376 ],
4377 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
4378 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
4379 &quot;A String&quot;,
4380 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004381 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004382 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004383 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004384 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004385 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004386 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
4387 # priorities.
4388 #
4389 # - If the supplied value is unspecified or 0, the service
4390 # translates the value to 500,000, which corresponds to the
4391 # `Normal` priority in the console.
4392 # - If the supplied value is negative, the intent is ignored
4393 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004394 },
4395 ],
4396 }</pre>
4397</div>
4398
4399<div class="method">
4400 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
4401 <pre>Retrieves the next page of results.
4402
4403Args:
4404 previous_request: The request for the previous page. (required)
4405 previous_response: The response from the request for the previous page. (required)
4406
4407Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07004408 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004409 page. Returns None if there are no more items in the collection.
4410 </pre>
4411</div>
4412
4413<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004414 <code class="details" id="patch">patch(name, body=None, intentView=None, updateMask=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004415 <pre>Updates the specified intent.
4416
4417Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07004418 name: string, Optional. The unique identifier of this intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004419Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
4420methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07004421Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`. (required)
4422 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004423 The object takes the form of:
4424
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004425{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
4426 # each agent, you define many intents, where your combined intents can handle a
4427 # complete conversation. When an end-user writes or says something, referred to
4428 # as an end-user expression or end-user input, Dialogflow matches the end-user
4429 # input to the best intent in your agent. Matching an intent is also known as
4430 # intent classification.
4431 #
4432 # For more information, see the [intent
4433 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07004434 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
4435 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
4436 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004437 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
4438 # Note: The action name must not contain whitespaces.
4439 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07004440 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
4441 # is matched. Context messages in this collection should not set the
4442 # parameters field. Setting the `lifespan_count` to 0 will reset the context
4443 # when the intent is matched.
4444 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004445 { # Dialogflow contexts are similar to natural language context. If a person says
4446 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
4447 # is referring to. Similarly, for Dialogflow to handle an end-user expression
4448 # like that, it needs to be provided with context in order to correctly match
4449 # an intent.
4450 #
4451 # Using contexts, you can control the flow of a conversation. You can configure
4452 # contexts for an intent by setting input and output contexts, which are
4453 # identified by string names. When an intent is matched, any configured output
4454 # contexts for that intent become active. While any contexts are active,
4455 # Dialogflow is more likely to match intents that are configured with input
4456 # contexts that correspond to the currently active contexts.
4457 #
4458 # For more information about context, see the
4459 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
4460 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
4461 #
4462 # Depending on your protocol or client library language, this is a
4463 # map, associative array, symbol table, dictionary, or JSON object
4464 # composed of a collection of (MapKey, MapValue) pairs:
4465 #
4466 # - MapKey type: string
4467 # - MapKey value: parameter name
4468 # - MapValue type:
4469 # - If parameter&#x27;s entity type is a composite entity: map
4470 # - Else: string or number, depending on parameter value type
4471 # - MapValue value:
4472 # - If parameter&#x27;s entity type is a composite entity:
4473 # map from composite entity property names to property values
4474 # - Else: parameter value
4475 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
4476 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004477 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
4478 # context expires. The default is `0`. If set to `0`, the context expires
4479 # immediately. Contexts expire automatically after 20 minutes if there
4480 # are no matching queries.
4481 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
4482 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
4483 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
4484 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
4485 #
4486 # The `Context ID` is always converted to lowercase, may only contain
4487 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
4488 #
4489 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
4490 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
4491 #
4492 # The following context names are reserved for internal use by Dialogflow.
4493 # You should not use these contexts or create contexts with these names:
4494 #
4495 # * `__system_counters__`
4496 # * `*_id_dialog_context`
4497 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07004498 },
4499 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004500 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
4501 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
4502 # session when this intent is matched.
4503 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
4504 # Note: If `ml_disabled` setting is set to true, then this intent is not
4505 # taken into account during inference in `ML ONLY` match mode. Also,
4506 # auto-markup in the UI is turned off.
4507 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
4508 # followup intents. It identifies the correct followup intents chain for
4509 # this intent.
4510 #
4511 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
4512 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
4513 # trained on.
4514 { # Represents an example that the agent is trained on.
4515 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
4516 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
4517 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
4518 # The parts are concatenated in order to form the training phrase.
4519 #
4520 # Note: The API does not automatically annotate training phrases like the
4521 # Dialogflow Console does.
4522 #
4523 # Note: Do not forget to include whitespace at part boundaries,
4524 # so the training phrase is well formatted when the parts are concatenated.
4525 #
4526 # If the training phrase does not need to be annotated with parameters,
4527 # you just need a single part with only the Part.text field set.
4528 #
4529 # If you want to annotate the training phrase, you must create multiple
4530 # parts, where the fields of each part are populated in one of two ways:
4531 #
4532 # - `Part.text` is set to a part of the phrase that has no parameters.
4533 # - `Part.text` is set to a part of the phrase that you want to annotate,
4534 # and the `entity_type`, `alias`, and `user_defined` fields are all
4535 # set.
4536 { # Represents a part of a training phrase.
4537 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
4538 # This field is set to true when the Dialogflow Console is used to
4539 # manually annotate the part. When creating an annotated part with the
4540 # API, you must set this to true.
4541 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
4542 # annotated part of the example.
4543 # This field is required for annotated parts of the training phrase.
4544 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
4545 # This field is required for annotated parts of the training phrase.
4546 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
4547 },
4548 ],
4549 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
4550 # the intent. Each time a developer adds an existing sample by editing an
4551 # intent or training, this counter is increased.
4552 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004553 ],
4554 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
4555 # `Response` field in the Dialogflow console.
4556 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004557 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
4558 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
4559 { # The suggestion chip message that the user can tap to quickly post a reply
4560 # to the conversation.
4561 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
4562 },
4563 ],
4564 },
4565 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
4566 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
4567 &quot;mediaObjects&quot;: [ # Required. List of media objects.
4568 { # Response media object for media content card.
4569 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
4570 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
4571 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4572 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4573 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4574 },
4575 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
4576 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
4577 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
4578 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4579 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4580 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4581 },
4582 },
4583 ],
4584 },
4585 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
4586 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
4587 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
4588 #
4589 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
4590 },
4591 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
4592 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
4593 # Telephony Gateway.
4594 #
4595 # Telephony Gateway takes the synthesizer settings from
4596 # `DetectIntentResponse.output_audio_config` which can either be set
4597 # at request-level or can come from the agent-level synthesizer config.
4598 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
4599 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
4600 # [SSML](https://developers.google.com/actions/reference/ssml).
4601 },
4602 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
4603 # or website associated with this agent.
4604 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
4605 # suggestion chip.
4606 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
4607 },
4608 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
4609 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07004610 &quot;A String&quot;,
4611 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004612 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
4613 },
4614 &quot;card&quot;: { # The card response message. # Displays a card.
4615 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4616 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4617 { # Optional. Contains information about a button.
4618 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
4619 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
4620 # open.
4621 },
4622 ],
4623 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
4624 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4625 },
4626 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
4627 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
4628 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
4629 &quot;items&quot;: [ # Required. List items.
4630 { # An item in the list.
4631 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
4632 # dialog.
4633 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4634 # item in dialog.
4635 &quot;A String&quot;,
4636 ],
4637 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4638 # response is given.
4639 },
4640 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
4641 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
4642 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4643 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4644 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4645 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4646 },
4647 },
4648 ],
4649 },
4650 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
4651 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
4652 { # The button object that appears at the bottom of a card.
4653 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4654 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4655 },
4656 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
4657 },
4658 ],
4659 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
4660 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
4661 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4662 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4663 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4664 },
4665 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
4666 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
4667 },
4668 &quot;image&quot;: { # The image response message. # Displays an image.
4669 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4670 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4671 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07004672 },
4673 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
4674 #
4675 # Rich cards allow you to respond to users with more vivid content, e.g.
4676 # with media and suggestions.
4677 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004678 # If you want to show a single card with more control over the layout,
4679 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004680 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07004681 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
4682 # 2 cards and at most 10.
4683 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07004684 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4685 # be set. Media (image, GIF or a video) to include in the card.
4686 # The following media-types are currently supported:
4687 #
4688 # Image Types
4689 #
4690 # * image/jpeg
4691 # * image/jpg&#x27;
4692 # * image/gif
4693 # * image/png
4694 #
4695 # Video Types
4696 #
4697 # * video/h263
4698 # * video/m4v
4699 # * video/mp4
4700 # * video/mpeg
4701 # * video/mpeg4
4702 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07004703 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004704 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004705 # For a standalone card with horizontal layout, height is not
4706 # customizable, and this field is ignored.
4707 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4708 # determines the MIME type of the file from the content-type field in
4709 # the HTTP headers when the platform fetches the file. The content-type
4710 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004711 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4712 # provide a thumbnail URI, the RBM platform displays a blank
4713 # placeholder thumbnail until the user&#x27;s device downloads the file.
4714 # Depending on the user&#x27;s setting, the file may not download
4715 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004716 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004717 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4718 #
4719 # At least one of the title, description or media must be set.
4720 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4721 #
4722 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004723 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4724 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4725 # easily select/click a predefined response or perform an action (like
4726 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07004727 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4728 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004729 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4730 # If the user has an app installed that is
4731 # registered as the default handler for the URL, then this app will be
4732 # opened instead, and its icon will be used in the suggested action UI.
4733 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4734 },
4735 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4736 # to send back to the agent.
4737 },
4738 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004739 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004740 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004741 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4742 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4743 # format. An example of a correctly formatted phone number:
4744 # +15556767888.
4745 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004746 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4747 # when the user taps the suggested action. This data will be also
4748 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004749 },
4750 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4751 # instead of typing in their own response.
4752 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4753 # when the user taps the suggested reply. This data will be also
4754 # forwarded to webhook to allow performing custom business logic.
4755 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004756 },
4757 },
4758 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004759 },
4760 ],
4761 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004762 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
4763 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07004764 { # The button object that appears at the bottom of a card.
4765 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
4766 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
4767 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004768 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004769 },
4770 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004771 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07004772 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
4773 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4774 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4775 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4776 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004777 &quot;rows&quot;: [ # Optional. Rows in this table of data.
4778 { # Row of TableCard.
4779 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
4780 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
4781 { # Cell of TableCardRow.
4782 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
4783 },
4784 ],
4785 },
4786 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004787 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004788 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
4789 { # Column properties for TableCard.
4790 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
4791 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
4792 },
4793 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004794 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004795 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
4796 #
4797 # RBM allows businesses to send enriched and branded versions of SMS. See
4798 # https://jibe.google.com/business-messaging.
4799 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
4800 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
4801 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4802 # easily select/click a predefined response or perform an action (like
4803 # opening a web uri).
4804 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4805 # can choose from the card.
4806 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4807 # If the user has an app installed that is
4808 # registered as the default handler for the URL, then this app will be
4809 # opened instead, and its icon will be used in the suggested action UI.
4810 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4811 },
4812 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4813 # to send back to the agent.
4814 },
4815 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
4816 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
4817 # but does not dial automatically.
4818 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4819 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4820 # format. An example of a correctly formatted phone number:
4821 # +15556767888.
4822 },
4823 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4824 # when the user taps the suggested action. This data will be also
4825 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07004826 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004827 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4828 # instead of typing in their own response.
4829 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4830 # when the user taps the suggested reply. This data will be also
4831 # forwarded to webhook to allow performing custom business logic.
4832 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004833 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004834 },
4835 ],
4836 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004837 &quot;payload&quot;: { # A custom platform-specific response.
4838 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07004839 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004840 &quot;text&quot;: { # The text response message. # Returns a text response.
4841 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
4842 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07004843 ],
4844 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004845 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
4846 #
4847 # Rich cards allow you to respond to users with more vivid content, e.g.
4848 # with media and suggestions.
4849 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004850 # You can group multiple rich cards into one using RbmCarouselCard but
4851 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004852 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07004853 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
4854 # be set. Media (image, GIF or a video) to include in the card.
4855 # The following media-types are currently supported:
4856 #
4857 # Image Types
4858 #
4859 # * image/jpeg
4860 # * image/jpg&#x27;
4861 # * image/gif
4862 # * image/png
4863 #
4864 # Video Types
4865 #
4866 # * video/h263
4867 # * video/m4v
4868 # * video/mp4
4869 # * video/mpeg
4870 # * video/mpeg4
4871 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07004872 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004873 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004874 # For a standalone card with horizontal layout, height is not
4875 # customizable, and this field is ignored.
4876 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
4877 # determines the MIME type of the file from the content-type field in
4878 # the HTTP headers when the platform fetches the file. The content-type
4879 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004880 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
4881 # provide a thumbnail URI, the RBM platform displays a blank
4882 # placeholder thumbnail until the user&#x27;s device downloads the file.
4883 # Depending on the user&#x27;s setting, the file may not download
4884 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07004885 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004886 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
4887 #
4888 # At least one of the title, description or media must be set.
4889 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
4890 #
4891 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07004892 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
4893 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
4894 # easily select/click a predefined response or perform an action (like
4895 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07004896 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
4897 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004898 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
4899 # If the user has an app installed that is
4900 # registered as the default handler for the URL, then this app will be
4901 # opened instead, and its icon will be used in the suggested action UI.
4902 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
4903 },
4904 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
4905 # to send back to the agent.
4906 },
4907 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004908 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004909 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004910 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
4911 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
4912 # format. An example of a correctly formatted phone number:
4913 # +15556767888.
4914 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004915 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4916 # when the user taps the suggested action. This data will be also
4917 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004918 },
4919 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
4920 # instead of typing in their own response.
4921 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
4922 # when the user taps the suggested reply. This data will be also
4923 # forwarded to webhook to allow performing custom business logic.
4924 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07004925 },
4926 },
4927 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004928 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004929 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
4930 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
4931 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07004932 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004933 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
4934 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
4935 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
4936 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
4937 #
4938 # This object must be readable by the `service-&lt;Project
4939 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
4940 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
4941 # (usually the same as the Dialogflow agent project). If the Google Cloud
4942 # Storage bucket is in the Telephony Gateway project, this permission is
4943 # added by default when enabling the Dialogflow V2 API.
4944 #
4945 # For audio from other sources, consider using the
4946 # `TelephonySynthesizeSpeech` message with SSML.
4947 },
4948 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
4949 &quot;items&quot;: [ # Required. Carousel items.
4950 { # An item in the carousel.
4951 &quot;image&quot;: { # The image response message. # Optional. The image to display.
4952 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4953 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
4954 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
4955 },
4956 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
4957 # dialog.
4958 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
4959 # item in dialog.
4960 &quot;A String&quot;,
4961 ],
4962 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
4963 # response is given.
4964 },
4965 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
4966 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
4967 },
4968 ],
4969 },
4970 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
4971 # This message in `QueryResult.fulfillment_messages` and
4972 # `WebhookResponse.fulfillment_messages` should contain only one
4973 # `SimpleResponse`.
4974 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
4975 { # The simple response message containing speech or text.
4976 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
4977 # response to the user in the SSML format. Mutually exclusive with
4978 # text_to_speech.
4979 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
4980 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
4981 # speech output. Mutually exclusive with ssml.
4982 },
4983 ],
4984 },
4985 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
4986 # https://developers.google.com/actions/assistant/responses#browsing_carousel
4987 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
4988 # items.
4989 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
4990 # items, maximum of ten.
4991 { # Browsing carousel tile
4992 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
4993 # Card. Maximum of one line of text.
4994 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
4995 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
4996 # text.
4997 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
4998 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
4999 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5000 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5001 },
5002 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
5003 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
5004 # the URL. Defaults to opening via web browser.
5005 &quot;url&quot;: &quot;A String&quot;, # Required. URL
5006 },
5007 },
5008 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005009 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005010 },
5011 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005012 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
5013 # chain of followup intents. You can set this field when creating an intent,
5014 # for example with CreateIntent or
5015 # BatchUpdateIntents, in order to make this
5016 # intent a followup intent.
5017 #
5018 # It identifies the parent followup intent.
5019 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5020 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
5021 { # Represents intent parameters.
5022 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
5023 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
5024 # whether the intent cannot be completed without collecting the parameter
5025 # value.
5026 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
5027 # user in order to collect a value for the parameter.
5028 &quot;A String&quot;,
5029 ],
5030 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
5031 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
5032 # describes values of the parameter. If the parameter is
5033 # required, this must be provided.
5034 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
5035 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
5036 #
5037 # - a constant string,
5038 # - a parameter value defined as `$parameter_name`,
5039 # - an original parameter value defined as `$parameter_name.original`,
5040 # - a parameter value from some context defined as
5041 # `#context_name.parameter_name`.
5042 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
5043 # result.
5044 # Default values can be extracted from contexts by using the following
5045 # syntax: `#context_name.parameter_name`.
5046 },
5047 ],
5048 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
5049 # If the collection of input contexts is not empty, all of the contexts must
5050 # be present in the active user session for an event to trigger this intent.
5051 # Event names are limited to 150 characters.
5052 &quot;A String&quot;,
5053 ],
5054 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07005055 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
5056 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
5057 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07005058 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005059 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
5060 # Note: If `ml_enabled` setting is set to false, then this intent is not
5061 # taken into account during inference in `ML ONLY` match mode. Also,
5062 # auto-markup in the UI is turned off.
5063 # DEPRECATED! Please use `ml_disabled` field instead.
5064 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
5065 # then the default value is determined as follows:
5066 # - Before April 15th, 2018 the default is:
5067 # ml_enabled = false / ml_disabled = true.
5068 # - After April 15th, 2018 the default is:
5069 # ml_enabled = true / ml_disabled = false.
5070 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
5071 # a direct or indirect parent. We populate this field only in the output.
5072 { # Represents a single followup intent in the chain.
5073 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
5074 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5075 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
5076 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5077 },
5078 ],
5079 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
5080 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
5081 &quot;A String&quot;,
5082 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005083 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005084 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07005085 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005086 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005087 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005088 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
5089 # priorities.
5090 #
5091 # - If the supplied value is unspecified or 0, the service
5092 # translates the value to 500,000, which corresponds to the
5093 # `Normal` priority in the console.
5094 # - If the supplied value is negative, the intent is ignored
5095 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005096}
5097
Bu Sun Kim65020912020-05-20 12:08:20 -07005098 intentView: string, Optional. The resource view to apply to the returned intent.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005099 updateMask: string, Optional. The mask to control which fields get updated.
Dan O'Mearadd494642020-05-01 07:42:23 -07005100 languageCode: string, Optional. The language used to access language-specific data.
Bu Sun Kim65020912020-05-20 12:08:20 -07005101If not specified, the agent&#x27;s default language is used.
Dan O'Mearadd494642020-05-01 07:42:23 -07005102For more information, see
5103[Multilingual intent and entity
5104data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005105 x__xgafv: string, V1 error format.
5106 Allowed values
5107 1 - v1 error format
5108 2 - v2 error format
5109
5110Returns:
5111 An object of the form:
5112
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005113 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For
5114 # each agent, you define many intents, where your combined intents can handle a
5115 # complete conversation. When an end-user writes or says something, referred to
5116 # as an end-user expression or end-user input, Dialogflow matches the end-user
5117 # input to the best intent in your agent. Matching an intent is also known as
5118 # intent classification.
5119 #
5120 # For more information, see the [intent
5121 # guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Bu Sun Kim65020912020-05-20 12:08:20 -07005122 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations
5123 # (e.g., Actions on Google or Dialogflow phone gateway) use this information
5124 # to close interaction with an end user. Default is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005125 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent.
5126 # Note: The action name must not contain whitespaces.
5127 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07005128 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent
5129 # is matched. Context messages in this collection should not set the
5130 # parameters field. Setting the `lifespan_count` to 0 will reset the context
5131 # when the intent is matched.
5132 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005133 { # Dialogflow contexts are similar to natural language context. If a person says
5134 # to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot;
5135 # is referring to. Similarly, for Dialogflow to handle an end-user expression
5136 # like that, it needs to be provided with context in order to correctly match
5137 # an intent.
5138 #
5139 # Using contexts, you can control the flow of a conversation. You can configure
5140 # contexts for an intent by setting input and output contexts, which are
5141 # identified by string names. When an intent is matched, any configured output
5142 # contexts for that intent become active. While any contexts are active,
5143 # Dialogflow is more likely to match intents that are configured with input
5144 # contexts that correspond to the currently active contexts.
5145 #
5146 # For more information about context, see the
5147 # [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
5148 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context.
5149 #
5150 # Depending on your protocol or client library language, this is a
5151 # map, associative array, symbol table, dictionary, or JSON object
5152 # composed of a collection of (MapKey, MapValue) pairs:
5153 #
5154 # - MapKey type: string
5155 # - MapKey value: parameter name
5156 # - MapValue type:
5157 # - If parameter&#x27;s entity type is a composite entity: map
5158 # - Else: string or number, depending on parameter value type
5159 # - MapValue value:
5160 # - If parameter&#x27;s entity type is a composite entity:
5161 # map from composite entity property names to property values
5162 # - Else: parameter value
5163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
5164 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005165 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the
5166 # context expires. The default is `0`. If set to `0`, the context expires
5167 # immediately. Contexts expire automatically after 20 minutes if there
5168 # are no matching queries.
5169 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format:
5170 # `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`,
5171 # or `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User
5172 # ID&gt;/sessions/&lt;Session ID&gt;/contexts/&lt;Context ID&gt;`.
5173 #
5174 # The `Context ID` is always converted to lowercase, may only contain
5175 # characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
5176 #
5177 # If `Environment ID` is not specified, we assume default &#x27;draft&#x27;
5178 # environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user.
5179 #
5180 # The following context names are reserved for internal use by Dialogflow.
5181 # You should not use these contexts or create contexts with these names:
5182 #
5183 # * `__system_counters__`
5184 # * `*_id_dialog_context`
5185 # * `*_dialog_params_size`
Bu Sun Kim65020912020-05-20 12:08:20 -07005186 },
5187 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005188 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
5189 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current
5190 # session when this intent is matched.
5191 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
5192 # Note: If `ml_disabled` setting is set to true, then this intent is not
5193 # taken into account during inference in `ML ONLY` match mode. Also,
5194 # auto-markup in the UI is turned off.
5195 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of
5196 # followup intents. It identifies the correct followup intents chain for
5197 # this intent.
5198 #
5199 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5200 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is
5201 # trained on.
5202 { # Represents an example that the agent is trained on.
5203 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
5204 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
5205 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts.
5206 # The parts are concatenated in order to form the training phrase.
5207 #
5208 # Note: The API does not automatically annotate training phrases like the
5209 # Dialogflow Console does.
5210 #
5211 # Note: Do not forget to include whitespace at part boundaries,
5212 # so the training phrase is well formatted when the parts are concatenated.
5213 #
5214 # If the training phrase does not need to be annotated with parameters,
5215 # you just need a single part with only the Part.text field set.
5216 #
5217 # If you want to annotate the training phrase, you must create multiple
5218 # parts, where the fields of each part are populated in one of two ways:
5219 #
5220 # - `Part.text` is set to a part of the phrase that has no parameters.
5221 # - `Part.text` is set to a part of the phrase that you want to annotate,
5222 # and the `entity_type`, `alias`, and `user_defined` fields are all
5223 # set.
5224 { # Represents a part of a training phrase.
5225 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated.
5226 # This field is set to true when the Dialogflow Console is used to
5227 # manually annotate the part. When creating an annotated part with the
5228 # API, you must set this to true.
5229 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the
5230 # annotated part of the example.
5231 # This field is required for annotated parts of the training phrase.
5232 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`.
5233 # This field is required for annotated parts of the training phrase.
5234 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
5235 },
5236 ],
5237 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to
5238 # the intent. Each time a developer adds an existing sample by editing an
5239 # intent or training, this counter is increased.
5240 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005241 ],
5242 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the
5243 # `Response` field in the Dialogflow console.
5244 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005245 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
5246 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
5247 { # The suggestion chip message that the user can tap to quickly post a reply
5248 # to the conversation.
5249 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
5250 },
5251 ],
5252 },
5253 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
5254 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
5255 &quot;mediaObjects&quot;: [ # Required. List of media objects.
5256 { # Response media object for media content card.
5257 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
5258 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
5259 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5260 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5261 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5262 },
5263 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
5264 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
5265 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
5266 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5267 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5268 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5269 },
5270 },
5271 ],
5272 },
5273 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
5274 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to
5275 # in [E.164 format](https://en.wikipedia.org/wiki/E.164).
5276 #
5277 # We currently only allow transferring to US numbers (+1xxxyyyzzzz).
5278 },
5279 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
5280 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in # Synthesizes speech in Telephony Gateway.
5281 # Telephony Gateway.
5282 #
5283 # Telephony Gateway takes the synthesizer settings from
5284 # `DetectIntentResponse.output_audio_config` which can either be set
5285 # at request-level or can come from the agent-level synthesizer config.
5286 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
5287 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see
5288 # [SSML](https://developers.google.com/actions/reference/ssml).
5289 },
5290 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app # Displays a link out suggestion chip for Actions on Google.
5291 # or website associated with this agent.
5292 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the
5293 # suggestion chip.
5294 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
5295 },
5296 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
5297 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07005298 &quot;A String&quot;,
5299 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005300 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
5301 },
5302 &quot;card&quot;: { # The card response message. # Displays a card.
5303 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
5304 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5305 { # Optional. Contains information about a button.
5306 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
5307 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to
5308 # open.
5309 },
5310 ],
5311 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
5312 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5313 },
5314 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
5315 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
5316 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
5317 &quot;items&quot;: [ # Required. List items.
5318 { # An item in the list.
5319 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional information about this option.
5320 # dialog.
5321 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5322 # item in dialog.
5323 &quot;A String&quot;,
5324 ],
5325 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5326 # response is given.
5327 },
5328 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
5329 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
5330 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5331 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5332 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5333 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5334 },
5335 },
5336 ],
5337 },
5338 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
5339 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
5340 { # The button object that appears at the bottom of a card.
5341 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5342 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5343 },
5344 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
5345 },
5346 ],
5347 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
5348 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
5349 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5350 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5351 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5352 },
5353 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
5354 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
5355 },
5356 &quot;image&quot;: { # The image response message. # Displays an image.
5357 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5358 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5359 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07005360 },
5361 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. # Rich Business Messaging (RBM) carousel rich card response.
5362 #
5363 # Rich cards allow you to respond to users with more vivid content, e.g.
5364 # with media and suggestions.
5365 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005366 # If you want to show a single card with more control over the layout,
5367 # please use RbmStandaloneCard instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005368 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
Bu Sun Kim65020912020-05-20 12:08:20 -07005369 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least
5370 # 2 cards and at most 10.
5371 { # Rich Business Messaging (RBM) Card content
Bu Sun Kim65020912020-05-20 12:08:20 -07005372 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5373 # be set. Media (image, GIF or a video) to include in the card.
5374 # The following media-types are currently supported:
5375 #
5376 # Image Types
5377 #
5378 # * image/jpeg
5379 # * image/jpg&#x27;
5380 # * image/gif
5381 # * image/png
5382 #
5383 # Video Types
5384 #
5385 # * video/h263
5386 # * video/m4v
5387 # * video/mp4
5388 # * video/mpeg
5389 # * video/mpeg4
5390 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07005391 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005392 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07005393 # For a standalone card with horizontal layout, height is not
5394 # customizable, and this field is ignored.
5395 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5396 # determines the MIME type of the file from the content-type field in
5397 # the HTTP headers when the platform fetches the file. The content-type
5398 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005399 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5400 # provide a thumbnail URI, the RBM platform displays a blank
5401 # placeholder thumbnail until the user&#x27;s device downloads the file.
5402 # Depending on the user&#x27;s setting, the file may not download
5403 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07005404 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005405 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5406 #
5407 # At least one of the title, description or media must be set.
5408 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5409 #
5410 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07005411 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5412 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5413 # easily select/click a predefined response or perform an action (like
5414 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07005415 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5416 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005417 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5418 # If the user has an app installed that is
5419 # registered as the default handler for the URL, then this app will be
5420 # opened instead, and its icon will be used in the suggested action UI.
5421 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5422 },
5423 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5424 # to send back to the agent.
5425 },
5426 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005427 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005428 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005429 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5430 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5431 # format. An example of a correctly formatted phone number:
5432 # +15556767888.
5433 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005434 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5435 # when the user taps the suggested action. This data will be also
5436 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005437 },
5438 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5439 # instead of typing in their own response.
5440 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5441 # when the user taps the suggested reply. This data will be also
5442 # forwarded to webhook to allow performing custom business logic.
5443 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005444 },
5445 },
5446 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005447 },
5448 ],
5449 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005450 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
5451 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07005452 { # The button object that appears at the bottom of a card.
5453 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
5454 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
5455 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005456 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07005457 },
5458 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005459 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07005460 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
5461 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5462 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5463 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5464 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005465 &quot;rows&quot;: [ # Optional. Rows in this table of data.
5466 { # Row of TableCard.
5467 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
5468 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
5469 { # Cell of TableCardRow.
5470 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
5471 },
5472 ],
5473 },
5474 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005475 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005476 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
5477 { # Column properties for TableCard.
5478 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
5479 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
5480 },
5481 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005482 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005483 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response.
5484 #
5485 # RBM allows businesses to send enriched and branded versions of SMS. See
5486 # https://jibe.google.com/business-messaging.
5487 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
5488 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
5489 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5490 # easily select/click a predefined response or perform an action (like
5491 # opening a web uri).
5492 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5493 # can choose from the card.
5494 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5495 # If the user has an app installed that is
5496 # registered as the default handler for the URL, then this app will be
5497 # opened instead, and its icon will be used in the suggested action UI.
5498 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5499 },
5500 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5501 # to send back to the agent.
5502 },
5503 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
5504 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
5505 # but does not dial automatically.
5506 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5507 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5508 # format. An example of a correctly formatted phone number:
5509 # +15556767888.
5510 },
5511 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5512 # when the user taps the suggested action. This data will be also
5513 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kim65020912020-05-20 12:08:20 -07005514 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005515 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5516 # instead of typing in their own response.
5517 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5518 # when the user taps the suggested reply. This data will be also
5519 # forwarded to webhook to allow performing custom business logic.
5520 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005521 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005522 },
5523 ],
5524 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005525 &quot;payload&quot;: { # A custom platform-specific response.
5526 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07005527 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005528 &quot;text&quot;: { # The text response message. # Returns a text response.
5529 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
5530 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07005531 ],
5532 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005533 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. # Standalone Rich Business Messaging (RBM) rich card response.
5534 #
5535 # Rich cards allow you to respond to users with more vivid content, e.g.
5536 # with media and suggestions.
5537 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005538 # You can group multiple rich cards into one using RbmCarouselCard but
5539 # carousel cards will give you less control over the card layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07005540 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
Bu Sun Kim65020912020-05-20 12:08:20 -07005541 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards # Optional. However at least one of the title, description or media must
5542 # be set. Media (image, GIF or a video) to include in the card.
5543 # The following media-types are currently supported:
5544 #
5545 # Image Types
5546 #
5547 # * image/jpeg
5548 # * image/jpg&#x27;
5549 # * image/gif
5550 # * image/png
5551 #
5552 # Video Types
5553 #
5554 # * video/h263
5555 # * video/m4v
5556 # * video/mp4
5557 # * video/mpeg
5558 # * video/mpeg4
5559 # * video/webm
Bu Sun Kim65020912020-05-20 12:08:20 -07005560 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005561 # within a rich card with a vertical layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07005562 # For a standalone card with horizontal layout, height is not
5563 # customizable, and this field is ignored.
5564 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform
5565 # determines the MIME type of the file from the content-type field in
5566 # the HTTP headers when the platform fetches the file. The content-type
5567 # field must be present and accurate in the HTTP response from the URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005568 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t
5569 # provide a thumbnail URI, the RBM platform displays a blank
5570 # placeholder thumbnail until the user&#x27;s device downloads the file.
5571 # Depending on the user&#x27;s setting, the file may not download
5572 # automatically and may require the user to tap a download button.
Bu Sun Kim65020912020-05-20 12:08:20 -07005573 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005574 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes).
5575 #
5576 # At least one of the title, description or media must be set.
5577 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes).
5578 #
5579 # At least one of the title, description or media must be set.
Bu Sun Kim65020912020-05-20 12:08:20 -07005580 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
5581 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to
5582 # easily select/click a predefined response or perform an action (like
5583 # opening a web uri).
Bu Sun Kim65020912020-05-20 12:08:20 -07005584 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user # Predefined client side actions that user can choose
5585 # can choose from the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005586 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri # Suggested client side action: Open a URI on device
5587 # If the user has an app installed that is
5588 # registered as the default handler for the URL, then this app will be
5589 # opened instead, and its icon will be used in the suggested action UI.
5590 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
5591 },
5592 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location # Suggested client side action: Share user location
5593 # to send back to the agent.
5594 },
5595 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005596 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number # Suggested client side action: Dial a phone number
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005597 # but does not dial automatically.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005598 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app.
5599 # This field should be in [E.164](https://en.wikipedia.org/wiki/E.164)
5600 # format. An example of a correctly formatted phone number:
5601 # +15556767888.
5602 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005603 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5604 # when the user taps the suggested action. This data will be also
5605 # forwarded to webhook to allow performing custom business logic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005606 },
5607 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click # Predefined replies for user to select instead of typing
5608 # instead of typing in their own response.
5609 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event
5610 # when the user taps the suggested reply. This data will be also
5611 # forwarded to webhook to allow performing custom business logic.
5612 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07005613 },
5614 },
5615 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005616 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005617 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
5618 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal.
5619 # Image preview alignment for standalone cards with horizontal layout.
Bu Sun Kim65020912020-05-20 12:08:20 -07005620 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005621 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
5622 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to
5623 # play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single
5624 # channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz.
5625 #
5626 # This object must be readable by the `service-&lt;Project
5627 # Number&gt;@gcp-sa-dialogflow.iam.gserviceaccount.com` service account
5628 # where &lt;Project Number&gt; is the number of the Telephony Gateway project
5629 # (usually the same as the Dialogflow agent project). If the Google Cloud
5630 # Storage bucket is in the Telephony Gateway project, this permission is
5631 # added by default when enabling the Dialogflow V2 API.
5632 #
5633 # For audio from other sources, consider using the
5634 # `TelephonySynthesizeSpeech` message with SSML.
5635 },
5636 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
5637 &quot;items&quot;: [ # Required. Carousel items.
5638 { # An item in the carousel.
5639 &quot;image&quot;: { # The image response message. # Optional. The image to display.
5640 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5641 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5642 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5643 },
5644 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
5645 # dialog.
5646 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this
5647 # item in dialog.
5648 &quot;A String&quot;,
5649 ],
5650 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this
5651 # response is given.
5652 },
5653 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
5654 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
5655 },
5656 ],
5657 },
5658 &quot;simpleResponses&quot;: { # The collection of simple response candidates. # Returns a voice or text-only response for Actions on Google.
5659 # This message in `QueryResult.fulfillment_messages` and
5660 # `WebhookResponse.fulfillment_messages` should contain only one
5661 # `SimpleResponse`.
5662 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
5663 { # The simple response message containing speech or text.
5664 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken
5665 # response to the user in the SSML format. Mutually exclusive with
5666 # text_to_speech.
5667 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
5668 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the
5669 # speech output. Mutually exclusive with ssml.
5670 },
5671 ],
5672 },
5673 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. # Browse carousel card for Actions on Google.
5674 # https://developers.google.com/actions/assistant/responses#browsing_carousel
5675 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in
5676 # items.
5677 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two
5678 # items, maximum of ten.
5679 { # Browsing carousel tile
5680 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel
5681 # Card. Maximum of one line of text.
5682 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
5683 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of
5684 # text.
5685 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
5686 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
5687 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility,
5688 # e.g., screen readers. Required if image_uri is set for CarouselSelect.
5689 },
5690 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
5691 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening
5692 # the URL. Defaults to opening via web browser.
5693 &quot;url&quot;: &quot;A String&quot;, # Required. URL
5694 },
5695 },
5696 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005697 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005698 },
5699 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005700 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the
5701 # chain of followup intents. You can set this field when creating an intent,
5702 # for example with CreateIntent or
5703 # BatchUpdateIntents, in order to make this
5704 # intent a followup intent.
5705 #
5706 # It identifies the parent followup intent.
5707 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5708 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
5709 { # Represents intent parameters.
5710 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
5711 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is,
5712 # whether the intent cannot be completed without collecting the parameter
5713 # value.
5714 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the
5715 # user in order to collect a value for the parameter.
5716 &quot;A String&quot;,
5717 ],
5718 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
5719 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that
5720 # describes values of the parameter. If the parameter is
5721 # required, this must be provided.
5722 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
5723 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be:
5724 #
5725 # - a constant string,
5726 # - a parameter value defined as `$parameter_name`,
5727 # - an original parameter value defined as `$parameter_name.original`,
5728 # - a parameter value from some context defined as
5729 # `#context_name.parameter_name`.
5730 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty
5731 # result.
5732 # Default values can be extracted from contexts by using the following
5733 # syntax: `#context_name.parameter_name`.
5734 },
5735 ],
5736 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent.
5737 # If the collection of input contexts is not empty, all of the contexts must
5738 # be present in the active user session for an event to trigger this intent.
5739 # Event names are limited to 150 characters.
5740 &quot;A String&quot;,
5741 ],
5742 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07005743 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent.
5744 # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
5745 # methods.
Dan O'Mearadd494642020-05-01 07:42:23 -07005746 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005747 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent.
5748 # Note: If `ml_enabled` setting is set to false, then this intent is not
5749 # taken into account during inference in `ML ONLY` match mode. Also,
5750 # auto-markup in the UI is turned off.
5751 # DEPRECATED! Please use `ml_disabled` field instead.
5752 # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
5753 # then the default value is determined as follows:
5754 # - Before April 15th, 2018 the default is:
5755 # ml_enabled = false / ml_disabled = true.
5756 # - After April 15th, 2018 the default is:
5757 # ml_enabled = true / ml_disabled = false.
5758 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as
5759 # a direct or indirect parent. We populate this field only in the output.
5760 { # Represents a single followup intent in the chain.
5761 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent.
5762 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5763 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent.
5764 # Format: `projects/&lt;Project ID&gt;/agent/intents/&lt;Intent ID&gt;`.
5765 },
5766 ],
5767 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be
5768 # copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
5769 &quot;A String&quot;,
5770 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005771 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005772 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07005773 # Format: `projects/&lt;Project ID&gt;/agent/sessions/-/contexts/&lt;Context ID&gt;`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005774 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005775 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005776 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher
5777 # priorities.
5778 #
5779 # - If the supplied value is unspecified or 0, the service
5780 # translates the value to 500,000, which corresponds to the
5781 # `Normal` priority in the console.
5782 # - If the supplied value is negative, the intent is ignored
5783 # in runtime detect intent requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005784 }</pre>
5785</div>
5786
5787</body></html>