blob: 4ee70bad14653639927a5220af8196b40f641801 [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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Deletes intents in the specified agent. Operation </p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent. Operation </p>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <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 -070088<p class="firstline">Creates an intent in the specified agent.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
92<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096 <code><a href="#list">list(parent, pageSize=None, languageCode=None, intentView=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Returns the list of all intents in the specified agent.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 <pre>Deletes intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 parent: string, Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be filled in.
116 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
117 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
118 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
119 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
120 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
121 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
122 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700126 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
129 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
130 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
132 },
133 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700134 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
135 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
136 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
140 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
141 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
142 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
144 },
145 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
146 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
147 },
148 ],
149 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
150 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
151 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
152 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
153 { # Represents intent parameters.
154 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
155 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
156 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
157 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
158 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
159 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
160 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
161 &quot;A String&quot;,
162 ],
163 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
164 },
165 ],
166 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
167 &quot;A String&quot;,
168 ],
169 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
170 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
173 &quot;items&quot;: [ # Required. Carousel items.
174 { # An item in the carousel.
175 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
176 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700177 &quot;A String&quot;,
178 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700179 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700180 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
182 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700183 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 },
187 },
188 ],
189 },
190 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700191 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
192 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
193 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
194 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
195 },
196 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
197 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
199 { # The button object that appears at the bottom of a card.
200 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
201 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
202 },
203 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
204 },
205 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700206 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700207 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700208 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
213 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
214 &quot;A String&quot;,
215 ],
216 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
217 },
218 &quot;text&quot;: { # The text response message. # Returns a text response.
219 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
220 &quot;A String&quot;,
221 ],
222 },
223 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
224 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
225 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
226 },
227 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
228 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
229 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
230 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
231 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
232 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
233 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
236 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
237 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
240 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
241 },
242 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
243 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
244 },
245 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
246 },
247 },
248 ],
249 },
250 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
251 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
252 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
253 },
254 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
255 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
256 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
257 { # Browsing carousel tile
258 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
259 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
260 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
261 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
262 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
263 },
264 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
265 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
266 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
267 &quot;url&quot;: &quot;A String&quot;, # Required. URL
268 },
269 },
270 ],
271 },
272 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
273 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
274 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
275 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 },
277 ],
278 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700279 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700280 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700281 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 { # The button object that appears at the bottom of a card.
283 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
284 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
285 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700286 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 },
288 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700290 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
294 { # Column properties for TableCard.
295 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
296 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
297 },
298 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;rows&quot;: [ # Optional. Rows in this table of data.
300 { # Row of TableCard.
301 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
302 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
303 { # Cell of TableCardRow.
304 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
305 },
306 ],
307 },
308 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700309 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
310 },
311 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
312 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
313 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
314 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
315 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
316 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
317 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
318 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
319 },
320 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
321 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
322 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
323 },
324 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
325 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
326 },
327 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
328 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
329 },
330 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
331 },
332 },
333 ],
334 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
335 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
336 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
337 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
338 },
339 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
340 },
341 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
342 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
343 },
344 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
345 &quot;mediaObjects&quot;: [ # Required. List of media objects.
346 { # Response media object for media content card.
347 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
348 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
349 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
350 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
351 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
352 },
353 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
354 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
355 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
356 },
357 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
358 },
359 ],
360 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
361 },
362 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
363 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
364 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
365 { # Rich Business Messaging (RBM) Card content
366 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
367 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
368 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
369 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
370 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
371 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
372 },
373 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
374 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
375 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
376 },
377 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
378 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
379 },
380 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
381 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
382 },
383 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
384 },
385 },
386 ],
387 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
388 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
389 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
390 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
391 },
392 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700393 },
394 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700396 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
397 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
398 },
399 &quot;card&quot;: { # The card response message. # Displays a card.
400 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
401 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
402 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
403 { # Optional. Contains information about a button.
404 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
405 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 },
407 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700408 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700410 &quot;payload&quot;: { # A custom platform-specific response.
411 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700413 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700414 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
415 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700416 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700417 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700419 },
420 ],
421 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700422 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
423 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
424 },
425 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
426 &quot;items&quot;: [ # Required. List items.
427 { # An item in the list.
428 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
429 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
430 &quot;A String&quot;,
431 ],
432 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
433 },
434 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
435 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
436 &quot;image&quot;: { # The image response message. # Optional. The image to display.
437 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700439 },
440 },
441 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700442 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
443 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700444 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 },
446 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700447 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
448 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700450 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
451 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700452 },
453 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700454 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
455 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
456 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700457 &quot;A String&quot;,
458 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 },
460 ],
461 }
462
463 x__xgafv: string, V1 error format.
464 Allowed values
465 1 - v1 error format
466 2 - v2 error format
467
468Returns:
469 An object of the form:
470
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 { # This resource represents a long-running operation that is the result of a network API call.
472 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
473 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700476 {
477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
478 },
479 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700480 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
483 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700484 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
485 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
486 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
487 },
488 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 }</pre>
490</div>
491
492<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 <pre>Updates/Creates multiple intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495
496Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 parent: string, Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 The object takes the form of:
500
501{ # The request message for Intents.BatchUpdateIntents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 &quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
503 &quot;intentBatchUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700504 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
505 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
507 &quot;intents&quot;: [ # A collection of intents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700508 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
509 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
510 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
511 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
512 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
513 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
514 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700516 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700518 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700520 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
521 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
522 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
524 },
525 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700526 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
527 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
528 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700529 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
532 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
533 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
534 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
535 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
536 },
537 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
538 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
539 },
540 ],
541 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
542 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
543 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
544 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
545 { # Represents intent parameters.
546 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
547 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
548 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
549 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
550 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
551 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
552 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
553 &quot;A String&quot;,
554 ],
555 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
556 },
557 ],
558 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
559 &quot;A String&quot;,
560 ],
561 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
562 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700563 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700564 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
565 &quot;items&quot;: [ # Required. Carousel items.
566 { # An item in the carousel.
567 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
568 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700569 &quot;A String&quot;,
570 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700571 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700572 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700573 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
574 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700575 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700576 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700577 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700578 },
579 },
580 ],
581 },
582 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700583 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
584 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
585 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
586 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
587 },
588 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
589 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
591 { # The button object that appears at the bottom of a card.
592 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
593 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
594 },
595 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
596 },
597 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700598 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700600 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700601 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700602 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700604 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
605 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
606 &quot;A String&quot;,
607 ],
608 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
609 },
610 &quot;text&quot;: { # The text response message. # Returns a text response.
611 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
612 &quot;A String&quot;,
613 ],
614 },
615 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
616 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
617 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
618 },
619 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
620 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
621 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
622 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
623 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
624 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
625 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700627 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
628 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
629 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700631 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
632 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
633 },
634 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
635 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
636 },
637 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
638 },
639 },
640 ],
641 },
642 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
643 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
644 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
645 },
646 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
647 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
648 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
649 { # Browsing carousel tile
650 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
651 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
652 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
653 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
654 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
655 },
656 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
657 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
658 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
659 &quot;url&quot;: &quot;A String&quot;, # Required. URL
660 },
661 },
662 ],
663 },
664 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
665 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
666 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
667 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 },
669 ],
670 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700671 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700672 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700673 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 { # The button object that appears at the bottom of a card.
675 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
676 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
677 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700678 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 },
680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700682 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700685 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
686 { # Column properties for TableCard.
687 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
688 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
689 },
690 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;rows&quot;: [ # Optional. Rows in this table of data.
692 { # Row of TableCard.
693 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
694 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
695 { # Cell of TableCardRow.
696 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
697 },
698 ],
699 },
700 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700701 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
702 },
703 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
704 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
705 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
706 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
707 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
708 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
709 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
710 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
711 },
712 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
713 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
714 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
715 },
716 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
717 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
718 },
719 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
720 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
721 },
722 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
723 },
724 },
725 ],
726 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
727 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
728 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
729 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
730 },
731 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
732 },
733 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
734 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
735 },
736 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
737 &quot;mediaObjects&quot;: [ # Required. List of media objects.
738 { # Response media object for media content card.
739 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
740 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
741 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
742 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
743 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
744 },
745 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
746 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
747 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
748 },
749 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
750 },
751 ],
752 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
753 },
754 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
755 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
756 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
757 { # Rich Business Messaging (RBM) Card content
758 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
759 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
760 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
761 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
762 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
763 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
764 },
765 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
766 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
767 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
768 },
769 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
770 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
771 },
772 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
773 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
774 },
775 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
776 },
777 },
778 ],
779 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
780 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
781 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
782 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
783 },
784 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700785 },
786 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700788 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
789 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
790 },
791 &quot;card&quot;: { # The card response message. # Displays a card.
792 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
793 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
794 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
795 { # Optional. Contains information about a button.
796 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
797 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 },
799 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700800 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700802 &quot;payload&quot;: { # A custom platform-specific response.
803 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700805 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700806 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
807 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700808 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700809 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700810 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700811 },
812 ],
813 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700814 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
815 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
816 },
817 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
818 &quot;items&quot;: [ # Required. List items.
819 { # An item in the list.
820 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
821 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
822 &quot;A String&quot;,
823 ],
824 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
825 },
826 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
827 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
828 &quot;image&quot;: { # The image response message. # Optional. The image to display.
829 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700830 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700831 },
832 },
833 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700834 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
835 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700836 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 },
838 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700839 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
840 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700841 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700842 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
843 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 },
845 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700846 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
847 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
848 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700849 &quot;A String&quot;,
850 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700851 },
852 ],
853 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 }
855
856 x__xgafv: string, V1 error format.
857 Allowed values
858 1 - v1 error format
859 2 - v2 error format
860
861Returns:
862 An object of the form:
863
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 { # This resource represents a long-running operation that is the result of a network API call.
865 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
866 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700867 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700868 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700869 {
870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
871 },
872 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700873 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700874 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700875 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
876 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700877 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
878 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
879 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
880 },
881 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700882 }</pre>
883</div>
884
885<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700886 <code class="details" id="close">close()</code>
887 <pre>Close httplib2 connections.</pre>
888</div>
889
890<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700891 <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 -0700892 <pre>Creates an intent in the specified agent.
893
894Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700895 parent: string, Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700896 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 The object takes the form of:
898
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700899{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
900 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
901 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
902 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
903 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
904 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
905 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700907 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700908 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700909 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700910 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700911 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
912 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
913 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700914 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
915 },
916 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700917 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
918 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
919 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700920 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700921 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700922 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
923 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
924 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
925 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
926 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
927 },
928 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
929 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
930 },
931 ],
932 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
933 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
934 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
935 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
936 { # Represents intent parameters.
937 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
938 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
939 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
940 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
941 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
942 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
943 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
944 &quot;A String&quot;,
945 ],
946 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
947 },
948 ],
949 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
950 &quot;A String&quot;,
951 ],
952 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
953 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700955 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
956 &quot;items&quot;: [ # Required. Carousel items.
957 { # An item in the carousel.
958 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
959 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700960 &quot;A String&quot;,
961 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700962 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700963 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700964 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
965 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700966 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700967 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700968 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700969 },
970 },
971 ],
972 },
973 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700974 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
975 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
976 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
977 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
978 },
979 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
980 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700981 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
982 { # The button object that appears at the bottom of a card.
983 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
984 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
985 },
986 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
987 },
988 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700989 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700990 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700991 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700992 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700993 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700994 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700995 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
996 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
997 &quot;A String&quot;,
998 ],
999 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1000 },
1001 &quot;text&quot;: { # The text response message. # Returns a text response.
1002 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1003 &quot;A String&quot;,
1004 ],
1005 },
1006 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1007 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1008 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1009 },
1010 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1011 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1012 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1013 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1014 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1015 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1016 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Dan O'Mearadd494642020-05-01 07:42:23 -07001017 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001018 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1019 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1020 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Dan O'Mearadd494642020-05-01 07:42:23 -07001021 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001022 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1023 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1024 },
1025 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1026 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1027 },
1028 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1029 },
1030 },
1031 ],
1032 },
1033 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
1034 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1035 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1036 },
1037 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1038 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1039 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1040 { # Browsing carousel tile
1041 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1042 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1043 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1044 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1045 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1046 },
1047 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1048 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1049 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1050 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1051 },
1052 },
1053 ],
1054 },
1055 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1056 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1057 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1058 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001059 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 ],
1061 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001062 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001063 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001064 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 { # The button object that appears at the bottom of a card.
1066 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1067 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001069 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001070 },
1071 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001073 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001074 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001075 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001076 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1077 { # Column properties for TableCard.
1078 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1079 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1080 },
1081 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001082 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1083 { # Row of TableCard.
1084 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1085 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1086 { # Cell of TableCardRow.
1087 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1088 },
1089 ],
1090 },
1091 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001092 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1093 },
1094 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1095 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1096 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1097 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1098 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1099 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1100 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1101 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1102 },
1103 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1104 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1105 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1106 },
1107 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1108 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1109 },
1110 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1111 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1112 },
1113 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1114 },
1115 },
1116 ],
1117 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1118 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1119 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1120 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1121 },
1122 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1123 },
1124 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1125 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1126 },
1127 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1128 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1129 { # Response media object for media content card.
1130 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1131 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1132 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1133 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1134 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1135 },
1136 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1137 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1138 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1139 },
1140 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1141 },
1142 ],
1143 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1144 },
1145 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
1146 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1147 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1148 { # Rich Business Messaging (RBM) Card content
1149 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1150 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1151 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1152 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1153 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1154 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1155 },
1156 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1157 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1158 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1159 },
1160 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1161 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1162 },
1163 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1164 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1165 },
1166 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1167 },
1168 },
1169 ],
1170 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1171 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1172 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1173 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1174 },
1175 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001176 },
1177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001179 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1180 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
1181 },
1182 &quot;card&quot;: { # The card response message. # Displays a card.
1183 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1184 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1185 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1186 { # Optional. Contains information about a button.
1187 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1188 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07001189 },
1190 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001191 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001192 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001193 &quot;payload&quot;: { # A custom platform-specific response.
1194 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001195 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001196 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001197 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1198 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001199 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001200 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001201 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001202 },
1203 ],
1204 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001205 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1206 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1207 },
1208 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1209 &quot;items&quot;: [ # Required. List items.
1210 { # An item in the list.
1211 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1212 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1213 &quot;A String&quot;,
1214 ],
1215 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1216 },
1217 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1218 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1219 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1220 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001221 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001222 },
1223 },
1224 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001225 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1226 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001227 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 },
1229 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001230 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1231 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001232 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001233 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1234 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001235 },
1236 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001237 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1238 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1239 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001240 &quot;A String&quot;,
1241 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001242}
1243
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001244 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001245 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001246 Allowed values
1247 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1248 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 x__xgafv: string, V1 error format.
1250 Allowed values
1251 1 - v1 error format
1252 2 - v2 error format
1253
1254Returns:
1255 An object of the form:
1256
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001257 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
1258 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1259 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1260 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
1261 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
1262 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1263 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001265 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001266 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001267 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001268 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001269 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
1270 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
1271 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001272 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1273 },
1274 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001275 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1276 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
1277 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001278 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001280 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
1281 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1282 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1283 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1284 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1285 },
1286 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1287 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1288 },
1289 ],
1290 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
1291 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
1292 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1293 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1294 { # Represents intent parameters.
1295 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1296 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
1297 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1298 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1299 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1300 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
1301 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1302 &quot;A String&quot;,
1303 ],
1304 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1305 },
1306 ],
1307 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
1308 &quot;A String&quot;,
1309 ],
1310 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1311 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001313 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1314 &quot;items&quot;: [ # Required. Carousel items.
1315 { # An item in the carousel.
1316 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1317 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001318 &quot;A String&quot;,
1319 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001320 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001321 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001322 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1323 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001324 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001325 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001326 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001327 },
1328 },
1329 ],
1330 },
1331 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001332 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1333 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1334 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1335 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1336 },
1337 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1338 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001339 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1340 { # The button object that appears at the bottom of a card.
1341 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1342 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1343 },
1344 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1345 },
1346 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001347 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001348 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001349 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001350 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001351 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001352 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001353 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1354 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1355 &quot;A String&quot;,
1356 ],
1357 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1358 },
1359 &quot;text&quot;: { # The text response message. # Returns a text response.
1360 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1361 &quot;A String&quot;,
1362 ],
1363 },
1364 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1365 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1366 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1367 },
1368 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1369 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1370 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1371 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1372 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1373 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1374 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001375 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001376 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1377 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1378 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -07001379 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001380 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1381 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1382 },
1383 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1384 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1385 },
1386 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1387 },
1388 },
1389 ],
1390 },
1391 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
1392 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1393 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1394 },
1395 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1396 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1397 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1398 { # Browsing carousel tile
1399 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1400 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1401 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1402 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1403 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1404 },
1405 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1406 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1407 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1408 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1409 },
1410 },
1411 ],
1412 },
1413 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1414 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1415 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1416 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 },
1418 ],
1419 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001420 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001421 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001422 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001423 { # The button object that appears at the bottom of a card.
1424 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1425 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1426 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001427 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001428 },
1429 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001430 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001431 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001434 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1435 { # Column properties for TableCard.
1436 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1437 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1438 },
1439 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001440 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1441 { # Row of TableCard.
1442 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1443 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1444 { # Cell of TableCardRow.
1445 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1446 },
1447 ],
1448 },
1449 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001450 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1451 },
1452 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1453 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1454 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1455 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1456 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1457 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1458 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1459 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1460 },
1461 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1462 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1463 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1464 },
1465 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1466 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1467 },
1468 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1469 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1470 },
1471 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1472 },
1473 },
1474 ],
1475 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1476 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1477 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1478 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1479 },
1480 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1481 },
1482 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1483 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1484 },
1485 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1486 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1487 { # Response media object for media content card.
1488 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1489 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1490 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1491 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1492 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1493 },
1494 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1495 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1496 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1497 },
1498 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1499 },
1500 ],
1501 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1502 },
1503 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
1504 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1505 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1506 { # Rich Business Messaging (RBM) Card content
1507 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1508 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1509 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1510 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1511 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1512 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1513 },
1514 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1515 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1516 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1517 },
1518 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1519 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1520 },
1521 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1522 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1523 },
1524 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1525 },
1526 },
1527 ],
1528 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1529 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1530 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1531 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1532 },
1533 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001534 },
1535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001536 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001537 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1538 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
1539 },
1540 &quot;card&quot;: { # The card response message. # Displays a card.
1541 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1542 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1543 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1544 { # Optional. Contains information about a button.
1545 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1546 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 },
1548 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001549 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001550 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001551 &quot;payload&quot;: { # A custom platform-specific response.
1552 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001553 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001554 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001555 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1556 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001557 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001558 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001559 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001560 },
1561 ],
1562 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001563 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1564 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1565 },
1566 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1567 &quot;items&quot;: [ # Required. List items.
1568 { # An item in the list.
1569 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1570 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1571 &quot;A String&quot;,
1572 ],
1573 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1574 },
1575 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1576 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1577 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1578 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001579 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001580 },
1581 },
1582 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001583 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1584 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001585 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 },
1587 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001588 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1589 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001590 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001591 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1592 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001593 },
1594 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001595 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1596 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1597 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001598 &quot;A String&quot;,
1599 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001600 }</pre>
1601</div>
1602
1603<div class="method">
1604 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1605 <pre>Deletes the specified intent and its direct or indirect followup intents.
1606
1607Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001608 name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 x__xgafv: string, V1 error format.
1610 Allowed values
1611 1 - v1 error format
1612 2 - v2 error format
1613
1614Returns:
1615 An object of the form:
1616
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001617 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001618 }</pre>
1619</div>
1620
1621<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001622 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623 <pre>Retrieves the specified intent.
1624
1625Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001626 name: string, Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001627 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001628 Allowed values
1629 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1630 INTENT_VIEW_FULL - All fields are populated.
1631 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001632 x__xgafv: string, V1 error format.
1633 Allowed values
1634 1 - v1 error format
1635 2 - v2 error format
1636
1637Returns:
1638 An object of the form:
1639
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001640 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
1641 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
1642 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1643 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
1644 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
1645 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1646 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001647 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001648 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001649 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001650 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001651 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001652 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
1653 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
1654 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001655 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1656 },
1657 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001658 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1659 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
1660 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001661 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001662 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001663 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
1664 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
1665 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
1666 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1668 },
1669 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
1670 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
1671 },
1672 ],
1673 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
1674 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
1675 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1676 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1677 { # Represents intent parameters.
1678 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1679 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
1680 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
1681 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1682 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
1683 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
1684 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
1685 &quot;A String&quot;,
1686 ],
1687 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1688 },
1689 ],
1690 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
1691 &quot;A String&quot;,
1692 ],
1693 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1694 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001696 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1697 &quot;items&quot;: [ # Required. Carousel items.
1698 { # An item in the carousel.
1699 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1700 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001701 &quot;A String&quot;,
1702 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001703 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001704 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001705 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1706 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001707 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001708 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001709 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001710 },
1711 },
1712 ],
1713 },
1714 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001715 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1716 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1717 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1718 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1719 },
1720 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1721 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001722 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1723 { # The button object that appears at the bottom of a card.
1724 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1725 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1726 },
1727 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1728 },
1729 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001730 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001731 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001732 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001733 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001734 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001736 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1737 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1738 &quot;A String&quot;,
1739 ],
1740 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1741 },
1742 &quot;text&quot;: { # The text response message. # Returns a text response.
1743 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1744 &quot;A String&quot;,
1745 ],
1746 },
1747 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1748 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1749 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1750 },
1751 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1752 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1753 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1754 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1755 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1756 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1757 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07001758 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001759 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1760 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1761 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -07001762 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001763 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1764 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1765 },
1766 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1767 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1768 },
1769 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1770 },
1771 },
1772 ],
1773 },
1774 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
1775 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1776 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1777 },
1778 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
1779 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1780 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1781 { # Browsing carousel tile
1782 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1783 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
1784 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1785 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1786 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1787 },
1788 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1789 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1790 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
1791 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1792 },
1793 },
1794 ],
1795 },
1796 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1797 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1798 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1799 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07001800 },
1801 ],
1802 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001803 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001804 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001805 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 { # The button object that appears at the bottom of a card.
1807 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1808 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1809 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001810 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07001811 },
1812 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001813 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001814 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07001815 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001816 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001817 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1818 { # Column properties for TableCard.
1819 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1820 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1821 },
1822 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001823 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1824 { # Row of TableCard.
1825 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1826 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1827 { # Cell of TableCardRow.
1828 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1829 },
1830 ],
1831 },
1832 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001833 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1834 },
1835 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1836 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1837 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1838 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1839 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1840 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1841 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1842 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1843 },
1844 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1845 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1846 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1847 },
1848 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1849 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1850 },
1851 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1852 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1853 },
1854 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1855 },
1856 },
1857 ],
1858 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1859 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1860 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1861 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1862 },
1863 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1864 },
1865 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1866 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1867 },
1868 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1869 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1870 { # Response media object for media content card.
1871 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1872 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1873 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1874 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1875 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1876 },
1877 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1878 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1879 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1880 },
1881 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1882 },
1883 ],
1884 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1885 },
1886 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
1887 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1888 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1889 { # Rich Business Messaging (RBM) Card content
1890 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1891 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1892 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1893 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1894 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1895 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1896 },
1897 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1898 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1899 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1900 },
1901 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1902 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1903 },
1904 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1905 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1906 },
1907 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1908 },
1909 },
1910 ],
1911 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1912 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1913 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1914 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1915 },
1916 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001917 },
1918 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001919 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001920 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1921 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
1922 },
1923 &quot;card&quot;: { # The card response message. # Displays a card.
1924 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1925 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1926 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1927 { # Optional. Contains information about a button.
1928 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1929 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 },
1931 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001932 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001934 &quot;payload&quot;: { # A custom platform-specific response.
1935 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001936 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001937 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001938 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1939 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001940 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001941 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001942 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001943 },
1944 ],
1945 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001946 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1947 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1948 },
1949 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1950 &quot;items&quot;: [ # Required. List items.
1951 { # An item in the list.
1952 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1953 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1954 &quot;A String&quot;,
1955 ],
1956 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1957 },
1958 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1959 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1960 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1961 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001962 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001963 },
1964 },
1965 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001966 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1967 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001968 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001969 },
1970 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001971 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1972 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001973 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001974 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1975 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001976 },
1977 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001978 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1979 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1980 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001981 &quot;A String&quot;,
1982 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001983 }</pre>
1984</div>
1985
1986<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001987 <code class="details" id="list">list(parent, pageSize=None, languageCode=None, intentView=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001988 <pre>Returns the list of all intents in the specified agent.
1989
1990Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001991 parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required)
1992 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
1993 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001994 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001995 Allowed values
1996 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1997 INTENT_VIEW_FULL - All fields are populated.
1998 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001999 x__xgafv: string, V1 error format.
2000 Allowed values
2001 1 - v1 error format
2002 2 - v2 error format
2003
2004Returns:
2005 An object of the form:
2006
2007 { # The response message for Intents.ListIntents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002008 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items returned based on the page_size field in the request.
2009 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2010 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
2011 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2012 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
2013 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
2014 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2015 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002016 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002017 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002018 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002019 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002020 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002021 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
2022 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
2023 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002024 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2025 },
2026 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002027 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2028 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
2029 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002030 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002031 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002032 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2033 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
2034 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2035 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2036 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2037 },
2038 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
2039 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
2040 },
2041 ],
2042 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
2043 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
2044 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2045 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2046 { # Represents intent parameters.
2047 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2048 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
2049 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
2050 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2051 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
2052 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
2053 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
2054 &quot;A String&quot;,
2055 ],
2056 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2057 },
2058 ],
2059 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2060 &quot;A String&quot;,
2061 ],
2062 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2063 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07002064 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002065 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2066 &quot;items&quot;: [ # Required. Carousel items.
2067 { # An item in the carousel.
2068 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2069 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002070 &quot;A String&quot;,
2071 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002072 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002073 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002074 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2075 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002076 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002077 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002078 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002079 },
2080 },
2081 ],
2082 },
2083 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002084 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2085 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2086 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2087 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2088 },
2089 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2090 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002091 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2092 { # The button object that appears at the bottom of a card.
2093 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2094 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2095 },
2096 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2097 },
2098 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002099 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002100 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002101 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002102 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002103 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002104 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002105 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2106 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2107 &quot;A String&quot;,
2108 ],
2109 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2110 },
2111 &quot;text&quot;: { # The text response message. # Returns a text response.
2112 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2113 &quot;A String&quot;,
2114 ],
2115 },
2116 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
2117 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2118 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2119 },
2120 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2121 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2122 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2123 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2124 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2125 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2126 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002127 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002128 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2129 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2130 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -07002131 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002132 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2133 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2134 },
2135 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2136 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2137 },
2138 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2139 },
2140 },
2141 ],
2142 },
2143 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2144 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2145 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2146 },
2147 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
2148 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2149 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2150 { # Browsing carousel tile
2151 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2152 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
2153 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2154 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2155 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2156 },
2157 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2158 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2159 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
2160 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2161 },
2162 },
2163 ],
2164 },
2165 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2166 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2167 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2168 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002169 },
2170 ],
2171 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002172 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002173 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002174 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002175 { # The button object that appears at the bottom of a card.
2176 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2177 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2178 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002179 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002180 },
2181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002182 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002183 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07002184 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002185 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002186 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2187 { # Column properties for TableCard.
2188 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2189 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2190 },
2191 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2193 { # Row of TableCard.
2194 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2195 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2196 { # Cell of TableCardRow.
2197 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2198 },
2199 ],
2200 },
2201 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002202 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2203 },
2204 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2205 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2206 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2207 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2208 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2209 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2210 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2211 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2212 },
2213 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2214 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2215 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2216 },
2217 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2218 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2219 },
2220 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2221 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2222 },
2223 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2224 },
2225 },
2226 ],
2227 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2228 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2229 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2230 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2231 },
2232 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2233 },
2234 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2235 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2236 },
2237 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2238 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2239 { # Response media object for media content card.
2240 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2241 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2242 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2243 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2244 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2245 },
2246 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2247 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2248 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2249 },
2250 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2251 },
2252 ],
2253 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2254 },
2255 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
2256 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2257 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2258 { # Rich Business Messaging (RBM) Card content
2259 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2260 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2261 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2262 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2263 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2264 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2265 },
2266 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2267 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2268 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2269 },
2270 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2271 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2272 },
2273 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2274 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2275 },
2276 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2277 },
2278 },
2279 ],
2280 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2281 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2282 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2283 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2284 },
2285 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002286 },
2287 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002288 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002289 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2290 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
2291 },
2292 &quot;card&quot;: { # The card response message. # Displays a card.
2293 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2294 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2295 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2296 { # Optional. Contains information about a button.
2297 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2298 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07002299 },
2300 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002301 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002302 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002303 &quot;payload&quot;: { # A custom platform-specific response.
2304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002305 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002306 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002307 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2308 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002309 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002310 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002311 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002312 },
2313 ],
2314 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002315 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2316 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2317 },
2318 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2319 &quot;items&quot;: [ # Required. List items.
2320 { # An item in the list.
2321 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2322 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2323 &quot;A String&quot;,
2324 ],
2325 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2326 },
2327 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2328 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2329 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2330 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002331 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002332 },
2333 },
2334 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002335 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2336 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002337 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002338 },
2339 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002340 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2341 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002342 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002343 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2344 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002345 },
2346 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002347 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2348 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
2349 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002350 &quot;A String&quot;,
2351 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002352 },
2353 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002354 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002355 }</pre>
2356</div>
2357
2358<div class="method">
2359 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2360 <pre>Retrieves the next page of results.
2361
2362Args:
2363 previous_request: The request for the previous page. (required)
2364 previous_response: The response from the request for the previous page. (required)
2365
2366Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002367 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002368 page. Returns None if there are no more items in the collection.
2369 </pre>
2370</div>
2371
2372<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002373 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002374 <pre>Updates the specified intent.
2375
2376Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002377 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002378 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002379 The object takes the form of:
2380
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002381{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2382 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
2383 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2384 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
2385 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
2386 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2387 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002388 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002389 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002390 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002391 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002392 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002393 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
2394 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
2395 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002396 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2397 },
2398 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002399 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2400 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
2401 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002402 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002403 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002404 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2405 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
2406 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2407 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2408 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2409 },
2410 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
2411 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
2412 },
2413 ],
2414 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
2415 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
2416 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2417 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2418 { # Represents intent parameters.
2419 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2420 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
2421 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
2422 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2423 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
2424 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
2425 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
2426 &quot;A String&quot;,
2427 ],
2428 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2429 },
2430 ],
2431 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2432 &quot;A String&quot;,
2433 ],
2434 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2435 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07002436 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002437 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2438 &quot;items&quot;: [ # Required. Carousel items.
2439 { # An item in the carousel.
2440 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2441 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002442 &quot;A String&quot;,
2443 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002444 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002445 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002446 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2447 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002448 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002449 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002450 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002451 },
2452 },
2453 ],
2454 },
2455 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002456 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2457 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2458 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2459 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2460 },
2461 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2462 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002463 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2464 { # The button object that appears at the bottom of a card.
2465 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2466 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2467 },
2468 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2469 },
2470 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002471 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002472 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002473 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002474 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002475 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002476 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002477 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2478 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2479 &quot;A String&quot;,
2480 ],
2481 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2482 },
2483 &quot;text&quot;: { # The text response message. # Returns a text response.
2484 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2485 &quot;A String&quot;,
2486 ],
2487 },
2488 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
2489 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2490 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2491 },
2492 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2493 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2494 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2495 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2496 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2497 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2498 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002499 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002500 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2501 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2502 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002504 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2505 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2506 },
2507 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2508 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2509 },
2510 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2511 },
2512 },
2513 ],
2514 },
2515 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2516 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2517 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2518 },
2519 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
2520 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2521 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2522 { # Browsing carousel tile
2523 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2524 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
2525 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2526 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2527 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2528 },
2529 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2530 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2531 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
2532 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2533 },
2534 },
2535 ],
2536 },
2537 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2538 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2539 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2540 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002541 },
2542 ],
2543 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002544 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002545 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002546 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002547 { # The button object that appears at the bottom of a card.
2548 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2549 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2550 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002551 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002552 },
2553 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002554 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002555 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07002556 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002557 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002558 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2559 { # Column properties for TableCard.
2560 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2561 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2562 },
2563 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002564 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2565 { # Row of TableCard.
2566 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2567 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2568 { # Cell of TableCardRow.
2569 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2570 },
2571 ],
2572 },
2573 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002574 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2575 },
2576 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2577 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2578 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2579 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2580 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2581 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2582 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2583 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2584 },
2585 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2586 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2587 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2588 },
2589 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2590 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2591 },
2592 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2593 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2594 },
2595 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2596 },
2597 },
2598 ],
2599 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2600 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2601 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2602 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2603 },
2604 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2605 },
2606 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2607 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2608 },
2609 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2610 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2611 { # Response media object for media content card.
2612 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2613 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2614 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2615 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2616 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2617 },
2618 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2619 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2620 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2621 },
2622 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2623 },
2624 ],
2625 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2626 },
2627 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
2628 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2629 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2630 { # Rich Business Messaging (RBM) Card content
2631 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2632 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2633 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2634 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2635 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2636 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2637 },
2638 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2639 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2640 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2641 },
2642 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2643 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2644 },
2645 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2646 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2647 },
2648 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2649 },
2650 },
2651 ],
2652 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2653 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2654 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2655 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2656 },
2657 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002658 },
2659 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002660 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002661 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2662 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
2663 },
2664 &quot;card&quot;: { # The card response message. # Displays a card.
2665 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2666 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2667 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2668 { # Optional. Contains information about a button.
2669 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2670 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07002671 },
2672 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002673 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002674 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002675 &quot;payload&quot;: { # A custom platform-specific response.
2676 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002677 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002678 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002679 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2680 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002681 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002682 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002683 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002684 },
2685 ],
2686 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002687 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2688 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2689 },
2690 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2691 &quot;items&quot;: [ # Required. List items.
2692 { # An item in the list.
2693 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2694 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2695 &quot;A String&quot;,
2696 ],
2697 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2698 },
2699 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2700 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2701 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2702 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002703 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002704 },
2705 },
2706 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002707 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2708 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002709 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002710 },
2711 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002712 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2713 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002714 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002715 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2716 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002717 },
2718 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002719 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2720 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
2721 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002722 &quot;A String&quot;,
2723 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002724}
2725
Bu Sun Kim65020912020-05-20 12:08:20 -07002726 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002727 Allowed values
2728 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2729 INTENT_VIEW_FULL - All fields are populated.
2730 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002731 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002732 x__xgafv: string, V1 error format.
2733 Allowed values
2734 1 - v1 error format
2735 2 - v2 error format
2736
2737Returns:
2738 An object of the form:
2739
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002740 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2741 &quot;priority&quot;: 42, # Optional. The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
2742 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2743 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
2744 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
2745 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2746 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002747 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002748 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002749 { # Represents an example that the agent is trained on.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002750 &quot;parts&quot;: [ # Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - `Part.text` is set to a part of the phrase that has no parameters. - `Part.text` is set to a part of the phrase that you want to annotate, and the `entity_type`, `alias`, and `user_defined` fields are all set.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002751 { # Represents a part of a training phrase.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002752 &quot;entityType&quot;: &quot;A String&quot;, # Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase.
2753 &quot;userDefined&quot;: True or False, # Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
2754 &quot;alias&quot;: &quot;A String&quot;, # Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002755 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2756 },
2757 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002758 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2759 &quot;timesAddedCount&quot;: 42, # Optional. Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
2760 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002761 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002762 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002763 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2764 &quot;outputContexts&quot;: [ # Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects//agent/sessions/-/contexts/`.
2765 { # Dialogflow contexts are similar to natural language context. If a person says to you &quot;they are orange&quot;, you need context in order to understand what &quot;they&quot; is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
2766 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2767 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2768 },
2769 &quot;lifespanCount&quot;: 42, # Optional. The number of conversational query requests after which the context expires. The default is `0`. If set to `0`, the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
2770 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
2771 },
2772 ],
2773 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
2774 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
2775 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2776 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2777 { # Represents intent parameters.
2778 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2779 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
2780 &quot;defaultValue&quot;: &quot;A String&quot;, # Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
2781 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2782 &quot;mandatory&quot;: True or False, # Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
2783 &quot;entityTypeDisplayName&quot;: &quot;A String&quot;, # Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
2784 &quot;prompts&quot;: [ # Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
2785 &quot;A String&quot;,
2786 ],
2787 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2788 },
2789 ],
2790 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2791 &quot;A String&quot;,
2792 ],
2793 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2794 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07002795 { # Corresponds to the `Response` field in the Dialogflow console.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002796 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2797 &quot;items&quot;: [ # Required. Carousel items.
2798 { # An item in the carousel.
2799 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2800 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002801 &quot;A String&quot;,
2802 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002803 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002804 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002805 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2806 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002807 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002808 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002809 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002810 },
2811 },
2812 ],
2813 },
2814 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002815 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2816 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2817 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2818 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2819 },
2820 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2821 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002822 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2823 { # The button object that appears at the bottom of a card.
2824 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2825 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2826 },
2827 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2828 },
2829 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002830 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002831 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002832 &quot;image&quot;: { # The image response message. # Displays an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002833 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002834 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002835 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002836 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2837 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2838 &quot;A String&quot;,
2839 ],
2840 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2841 },
2842 &quot;text&quot;: { # The text response message. # Returns a text response.
2843 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2844 &quot;A String&quot;,
2845 ],
2846 },
2847 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
2848 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2849 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2850 },
2851 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2852 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2853 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2854 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2855 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2856 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2857 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kim65020912020-05-20 12:08:20 -07002858 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002859 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2860 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2861 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
Bu Sun Kim65020912020-05-20 12:08:20 -07002862 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002863 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2864 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2865 },
2866 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2867 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2868 },
2869 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2870 },
2871 },
2872 ],
2873 },
2874 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2875 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2876 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2877 },
2878 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
2879 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2880 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2881 { # Browsing carousel tile
2882 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2883 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
2884 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2885 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2886 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2887 },
2888 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2889 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2890 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
2891 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2892 },
2893 },
2894 ],
2895 },
2896 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2897 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2898 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2899 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002900 },
2901 ],
2902 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002903 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002904 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002905 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002906 { # The button object that appears at the bottom of a card.
2907 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2908 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2909 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002910 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim65020912020-05-20 12:08:20 -07002911 },
2912 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002913 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002914 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kim65020912020-05-20 12:08:20 -07002915 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002916 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002917 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2918 { # Column properties for TableCard.
2919 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2920 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2921 },
2922 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002923 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2924 { # Row of TableCard.
2925 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2926 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2927 { # Cell of TableCardRow.
2928 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2929 },
2930 ],
2931 },
2932 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002933 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2934 },
2935 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2936 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2937 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2938 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2939 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2940 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2941 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2942 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2943 },
2944 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2945 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2946 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2947 },
2948 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2949 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2950 },
2951 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2952 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2953 },
2954 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2955 },
2956 },
2957 ],
2958 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2959 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2960 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2961 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2962 },
2963 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2964 },
2965 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2966 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2967 },
2968 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2969 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2970 { # Response media object for media content card.
2971 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2972 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2973 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2974 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2975 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2976 },
2977 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2978 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2979 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2980 },
2981 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2982 },
2983 ],
2984 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2985 },
2986 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
2987 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2988 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2989 { # Rich Business Messaging (RBM) Card content
2990 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2991 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2992 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2993 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2994 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2995 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2996 },
2997 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2998 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2999 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
3000 },
3001 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
3002 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3003 },
3004 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
3005 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
3006 },
3007 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3008 },
3009 },
3010 ],
3011 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
3012 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
3013 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
3014 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
3015 },
3016 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003017 },
3018 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003019 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003020 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3021 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
3022 },
3023 &quot;card&quot;: { # The card response message. # Displays a card.
3024 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3025 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3026 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3027 { # Optional. Contains information about a button.
3028 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3029 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
Bu Sun Kim65020912020-05-20 12:08:20 -07003030 },
3031 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003032 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07003033 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003034 &quot;payload&quot;: { # A custom platform-specific response.
3035 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07003036 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003037 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003038 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3039 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003040 &quot;textToSpeech&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003041 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003042 &quot;ssml&quot;: &quot;A String&quot;, # One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003043 },
3044 ],
3045 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003046 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3047 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3048 },
3049 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
3050 &quot;items&quot;: [ # Required. List items.
3051 { # An item in the list.
3052 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
3053 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
3054 &quot;A String&quot;,
3055 ],
3056 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
3057 },
3058 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
3059 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
3060 &quot;image&quot;: { # The image response message. # Optional. The image to display.
3061 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003062 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003063 },
3064 },
3065 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003066 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
3067 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003068 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003069 },
3070 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003071 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
3072 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003073 { # Represents a single followup intent in the chain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003074 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
3075 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003076 },
3077 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003078 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
3079 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
3080 &quot;events&quot;: [ # Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003081 &quot;A String&quot;,
3082 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003083 }</pre>
3084</div>
3085
3086</body></html>