blob: dc76fb7495e5f34d1d3a40ed6965d36981887135 [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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#get">get(name, languageCode=None, intentView=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070096 <code><a href="#list">list(parent, languageCode=None, intentView=None, pageSize=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700102 <code><a href="#patch">patch(name, body=None, intentView=None, updateMask=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 &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).
119 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700121 &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.
122 { # Represents a single followup intent in the chain.
123 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
124 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 },
126 ],
127 &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/`
128 &quot;A String&quot;,
129 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 &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.
131 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
132 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
133 &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.
134 &quot;A String&quot;,
135 ],
136 &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/`.
137 { # 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).
138 &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
139 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
140 },
141 &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`
142 &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.
143 },
144 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700146 &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.
147 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
148 { # Represents intent parameters.
149 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
150 &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`.
151 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
152 &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.
153 &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.
154 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
155 &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`.
156 &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.
157 &quot;A String&quot;,
158 ],
159 },
160 ],
161 &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/`.
162 &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.
163 &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/`.
164 &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.
165 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
166 { # Represents an example that the agent is trained on.
167 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
168 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
169 &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.
170 { # Represents a part of a training phrase.
171 &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.
172 &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.
173 &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.
174 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
175 },
176 ],
177 &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.
178 },
179 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &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 -0700181 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
183 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 },
185 &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.
186 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
187 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
188 { # Browsing carousel tile
189 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700190 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
191 &quot;url&quot;: &quot;A String&quot;, # Required. URL
192 &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.
193 },
194 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
196 &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.
197 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
198 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700199 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700200 },
201 ],
202 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &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.
204 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
205 { # Rich Business Messaging (RBM) Card content
206 &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.
207 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
208 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
209 &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
210 &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.
211 &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
212 &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.
213 },
214 &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
215 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
216 },
217 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
218 &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
219 },
220 },
221 &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
222 &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.
223 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
224 },
225 },
226 ],
227 &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.
228 &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.
229 &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.
230 &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.
231 },
232 &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.
233 },
234 ],
235 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
236 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700237 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
238 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
239 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
240 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 },
242 ],
243 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700244 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
245 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
246 &quot;items&quot;: [ # Required. List items.
247 { # An item in the list.
248 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
249 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
250 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
251 &quot;A String&quot;,
252 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700254 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
255 &quot;image&quot;: { # The image response message. # Optional. The image to display.
256 &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.
257 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
258 },
259 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 },
261 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700262 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
263 },
264 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
265 &quot;items&quot;: [ # Required. Carousel items.
266 { # An item in the carousel.
267 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
268 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
269 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
270 &quot;A String&quot;,
271 ],
272 },
273 &quot;image&quot;: { # The image response message. # Optional. The image to display.
274 &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.
275 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
276 },
277 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
278 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
279 },
280 ],
281 },
282 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700284 &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 -0700285 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
288 { # Column properties for TableCard.
289 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
290 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
291 },
292 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700293 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;rows&quot;: [ # Optional. Rows in this table of data.
295 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
297 { # Cell of TableCardRow.
298 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
299 },
300 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700301 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
302 },
303 ],
304 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
305 { # The button object that appears at the bottom of a card.
306 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
307 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
308 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
309 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 },
311 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700312 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
313 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700315 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700316 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700317 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
318 { # Optional. Contains information about a button.
319 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
320 &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 -0700321 },
322 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700323 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700325 &quot;payload&quot;: { # A custom platform-specific response.
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700328 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
329 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
330 { # The button object that appears at the bottom of a card.
331 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
332 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
333 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
334 },
335 },
336 ],
337 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
338 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
339 &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.
340 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
341 },
342 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
343 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
344 },
345 &quot;image&quot;: { # The image response message. # Displays an image.
346 &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.
347 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
348 },
349 &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.
350 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
351 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
352 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700353 &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 -0700354 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
355 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700356 &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 -0700357 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 &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 -0700359 },
360 ],
361 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700362 &quot;text&quot;: { # The text response message. # Returns a text response.
363 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
364 &quot;A String&quot;,
365 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700366 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700367 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
368 &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.
369 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
370 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
371 &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
372 &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.
373 &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
374 &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.
375 },
376 &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
377 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
378 },
379 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
380 &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
381 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700383 &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
384 &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.
385 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700386 },
387 },
388 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700389 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
390 },
391 &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.
392 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
393 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
394 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
395 &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.
396 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
397 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
398 &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
399 &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.
400 &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
401 &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.
402 },
403 &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
404 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
405 },
406 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
407 &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
408 },
409 },
410 &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
411 &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.
412 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
413 },
414 },
415 ],
416 &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.
417 &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.
418 &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.
419 &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.
420 },
421 &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.
422 },
423 },
424 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
425 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
426 &quot;A String&quot;,
427 ],
428 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
429 },
430 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
431 &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).
432 },
433 &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.
434 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
435 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
436 },
437 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
438 &quot;mediaObjects&quot;: [ # Required. List of media objects.
439 { # Response media object for media content card.
440 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
441 &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.
442 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
443 },
444 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
445 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
446 &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.
447 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
448 },
449 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
450 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
451 },
452 ],
453 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 },
456 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700457 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700472 &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`.
473 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
474 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 &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.
476 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700477 &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 -0700478 {
479 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
480 },
481 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700482 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700483 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700484 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700485 &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}`.
486 &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.
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
488 },
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;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 Kim673ec5c2020-11-16 11:05:03 -0700503 &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).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700504 &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 -0700505 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
506 &quot;intents&quot;: [ # A collection of intents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700507 { # 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).
508 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700509 &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).
510 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700512 &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.
513 { # Represents a single followup intent in the chain.
514 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
515 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700516 },
517 ],
518 &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/`
519 &quot;A String&quot;,
520 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700521 &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.
522 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
523 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
524 &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.
525 &quot;A String&quot;,
526 ],
527 &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/`.
528 { # 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).
529 &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
530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
531 },
532 &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`
533 &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.
534 },
535 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700536 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700537 &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.
538 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
539 { # Represents intent parameters.
540 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
541 &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`.
542 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
543 &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.
544 &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.
545 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
546 &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`.
547 &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.
548 &quot;A String&quot;,
549 ],
550 },
551 ],
552 &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/`.
553 &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.
554 &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/`.
555 &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.
556 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
557 { # Represents an example that the agent is trained on.
558 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
559 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
560 &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.
561 { # Represents a part of a training phrase.
562 &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.
563 &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.
564 &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.
565 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
566 },
567 ],
568 &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.
569 },
570 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700571 &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 -0700572 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700573 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
574 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700575 },
576 &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.
577 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
578 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
579 { # Browsing carousel tile
580 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700581 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
582 &quot;url&quot;: &quot;A String&quot;, # Required. URL
583 &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.
584 },
585 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700586 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
587 &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.
588 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
589 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700590 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700591 },
592 ],
593 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700594 &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.
595 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
596 { # Rich Business Messaging (RBM) Card content
597 &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.
598 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
599 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
600 &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
601 &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.
602 &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
603 &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.
604 },
605 &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
606 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
607 },
608 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
609 &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
610 },
611 },
612 &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
613 &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.
614 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
615 },
616 },
617 ],
618 &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.
619 &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.
620 &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.
621 &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.
622 },
623 &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.
624 },
625 ],
626 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
627 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700628 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
629 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
630 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
631 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 },
633 ],
634 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700635 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
636 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
637 &quot;items&quot;: [ # Required. List items.
638 { # An item in the list.
639 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
640 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
641 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
642 &quot;A String&quot;,
643 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700645 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
646 &quot;image&quot;: { # The image response message. # Optional. The image to display.
647 &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.
648 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
649 },
650 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 },
652 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700653 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
654 },
655 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
656 &quot;items&quot;: [ # Required. Carousel items.
657 { # An item in the carousel.
658 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
659 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
660 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
661 &quot;A String&quot;,
662 ],
663 },
664 &quot;image&quot;: { # The image response message. # Optional. The image to display.
665 &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.
666 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
667 },
668 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
669 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
670 },
671 ],
672 },
673 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700675 &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 -0700676 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700677 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700678 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
679 { # Column properties for TableCard.
680 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
681 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
682 },
683 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700684 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 &quot;rows&quot;: [ # Optional. Rows in this table of data.
686 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
688 { # Cell of TableCardRow.
689 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
690 },
691 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700692 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
693 },
694 ],
695 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
696 { # The button object that appears at the bottom of a card.
697 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
698 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
699 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
700 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 },
702 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700703 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
704 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700705 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700706 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700707 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700708 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
709 { # Optional. Contains information about a button.
710 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
711 &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 -0700712 },
713 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700715 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700716 &quot;payload&quot;: { # A custom platform-specific response.
717 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700718 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700719 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
720 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
721 { # The button object that appears at the bottom of a card.
722 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
723 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
724 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
725 },
726 },
727 ],
728 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
729 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
730 &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.
731 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
732 },
733 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
734 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
735 },
736 &quot;image&quot;: { # The image response message. # Displays an image.
737 &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.
738 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
739 },
740 &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.
741 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
742 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
743 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700744 &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 -0700745 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
746 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700747 &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 -0700748 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 &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 -0700750 },
751 ],
752 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700753 &quot;text&quot;: { # The text response message. # Returns a text response.
754 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
755 &quot;A String&quot;,
756 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700757 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700758 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
759 &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.
760 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
761 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
762 &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
763 &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.
764 &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
765 &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.
766 },
767 &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
768 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
769 },
770 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
771 &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
772 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700773 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700774 &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
775 &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.
776 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700777 },
778 },
779 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700780 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
781 },
782 &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.
783 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
784 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
785 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
786 &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.
787 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
788 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
789 &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
790 &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.
791 &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
792 &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.
793 },
794 &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
795 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
796 },
797 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
798 &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
799 },
800 },
801 &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
802 &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.
803 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
804 },
805 },
806 ],
807 &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.
808 &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.
809 &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.
810 &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.
811 },
812 &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.
813 },
814 },
815 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
816 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
817 &quot;A String&quot;,
818 ],
819 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
820 },
821 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
822 &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).
823 },
824 &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.
825 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
826 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
827 },
828 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
829 &quot;mediaObjects&quot;: [ # Required. List of media objects.
830 { # Response media object for media content card.
831 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
832 &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.
833 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
834 },
835 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
836 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
837 &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.
838 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
839 },
840 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
841 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
842 },
843 ],
844 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700845 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700846 },
847 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700848 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700849 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850 },
851 ],
852 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700853 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700865 &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`.
866 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
867 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700868 &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.
869 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700870 &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 -0700871 {
872 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
873 },
874 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700875 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700876 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700877 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700878 &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}`.
879 &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.
880 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
881 },
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700901 &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).
902 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700903 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700904 &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.
905 { # Represents a single followup intent in the chain.
906 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
907 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700908 },
909 ],
910 &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/`
911 &quot;A String&quot;,
912 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700913 &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.
914 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
915 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
916 &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.
917 &quot;A String&quot;,
918 ],
919 &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/`.
920 { # 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).
921 &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
922 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
923 },
924 &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`
925 &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.
926 },
927 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700928 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700929 &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.
930 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
931 { # Represents intent parameters.
932 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
933 &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`.
934 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
935 &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.
936 &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.
937 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
938 &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`.
939 &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.
940 &quot;A String&quot;,
941 ],
942 },
943 ],
944 &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/`.
945 &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.
946 &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/`.
947 &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.
948 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
949 { # Represents an example that the agent is trained on.
950 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
951 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
952 &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.
953 { # Represents a part of a training phrase.
954 &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.
955 &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.
956 &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.
957 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
958 },
959 ],
960 &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.
961 },
962 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700963 &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 -0700964 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700965 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
966 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700967 },
968 &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.
969 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
970 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
971 { # Browsing carousel tile
972 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700973 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
974 &quot;url&quot;: &quot;A String&quot;, # Required. URL
975 &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.
976 },
977 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700978 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
979 &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.
980 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
981 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700982 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700983 },
984 ],
985 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700986 &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.
987 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
988 { # Rich Business Messaging (RBM) Card content
989 &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.
990 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
991 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
992 &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
993 &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.
994 &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
995 &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.
996 },
997 &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
998 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
999 },
1000 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1001 &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
1002 },
1003 },
1004 &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
1005 &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.
1006 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1007 },
1008 },
1009 ],
1010 &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.
1011 &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.
1012 &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.
1013 &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.
1014 },
1015 &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.
1016 },
1017 ],
1018 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1019 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001020 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1021 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1022 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1023 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001024 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 ],
1026 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001027 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1028 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1029 &quot;items&quot;: [ # Required. List items.
1030 { # An item in the list.
1031 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1032 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1033 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1034 &quot;A String&quot;,
1035 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001037 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1038 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1039 &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.
1040 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1041 },
1042 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 },
1044 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001045 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1046 },
1047 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1048 &quot;items&quot;: [ # Required. Carousel items.
1049 { # An item in the carousel.
1050 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1051 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1052 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1053 &quot;A String&quot;,
1054 ],
1055 },
1056 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1057 &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.
1058 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1059 },
1060 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1061 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1062 },
1063 ],
1064 },
1065 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001067 &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 -07001068 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001069 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001070 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1071 { # Column properties for TableCard.
1072 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1073 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1074 },
1075 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001076 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001077 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1078 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1080 { # Cell of TableCardRow.
1081 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1082 },
1083 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001084 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1085 },
1086 ],
1087 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1088 { # The button object that appears at the bottom of a card.
1089 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1090 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1091 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1092 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 },
1094 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001095 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1096 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001097 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001098 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001099 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001100 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1101 { # Optional. Contains information about a button.
1102 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1103 &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 -07001104 },
1105 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001106 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001107 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001108 &quot;payload&quot;: { # A custom platform-specific response.
1109 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001110 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001111 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1112 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1113 { # The button object that appears at the bottom of a card.
1114 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1115 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1116 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1117 },
1118 },
1119 ],
1120 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1121 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1122 &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.
1123 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1124 },
1125 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1126 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1127 },
1128 &quot;image&quot;: { # The image response message. # Displays an image.
1129 &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.
1130 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1131 },
1132 &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.
1133 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1134 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1135 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001136 &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 -07001137 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1138 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001139 &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 -07001140 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001141 &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 -07001142 },
1143 ],
1144 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001145 &quot;text&quot;: { # The text response message. # Returns a text response.
1146 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1147 &quot;A String&quot;,
1148 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001149 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001150 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1151 &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.
1152 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1153 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1154 &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
1155 &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.
1156 &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
1157 &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.
1158 },
1159 &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
1160 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1161 },
1162 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1163 &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
1164 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001165 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001166 &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
1167 &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.
1168 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001169 },
1170 },
1171 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001172 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1173 },
1174 &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.
1175 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1176 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1177 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1178 &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.
1179 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1180 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1181 &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
1182 &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.
1183 &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
1184 &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.
1185 },
1186 &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
1187 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1188 },
1189 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1190 &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
1191 },
1192 },
1193 &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
1194 &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.
1195 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1196 },
1197 },
1198 ],
1199 &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.
1200 &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.
1201 &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.
1202 &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.
1203 },
1204 &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.
1205 },
1206 },
1207 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1208 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1209 &quot;A String&quot;,
1210 ],
1211 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1212 },
1213 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1214 &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).
1215 },
1216 &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.
1217 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1218 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1219 },
1220 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1221 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1222 { # Response media object for media content card.
1223 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1224 &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.
1225 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1226 },
1227 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1228 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1229 &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.
1230 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1231 },
1232 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1233 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1234 },
1235 ],
1236 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001237 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001238 },
1239 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001240 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001241 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001259 &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).
1260 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001261 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001262 &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.
1263 { # Represents a single followup intent in the chain.
1264 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1265 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001266 },
1267 ],
1268 &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/`
1269 &quot;A String&quot;,
1270 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001271 &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.
1272 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1273 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1274 &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.
1275 &quot;A String&quot;,
1276 ],
1277 &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/`.
1278 { # 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).
1279 &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
1280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1281 },
1282 &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`
1283 &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.
1284 },
1285 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001286 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001287 &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.
1288 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1289 { # Represents intent parameters.
1290 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1291 &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`.
1292 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1293 &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.
1294 &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.
1295 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1296 &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`.
1297 &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.
1298 &quot;A String&quot;,
1299 ],
1300 },
1301 ],
1302 &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/`.
1303 &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.
1304 &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/`.
1305 &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.
1306 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1307 { # Represents an example that the agent is trained on.
1308 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1309 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1310 &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.
1311 { # Represents a part of a training phrase.
1312 &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.
1313 &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.
1314 &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.
1315 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1316 },
1317 ],
1318 &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.
1319 },
1320 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001321 &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 -07001322 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001323 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1324 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001325 },
1326 &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.
1327 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1328 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1329 { # Browsing carousel tile
1330 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001331 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1332 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1333 &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.
1334 },
1335 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001336 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1337 &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.
1338 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1339 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001340 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001341 },
1342 ],
1343 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001344 &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.
1345 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1346 { # Rich Business Messaging (RBM) Card content
1347 &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.
1348 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1349 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1350 &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
1351 &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.
1352 &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
1353 &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.
1354 },
1355 &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
1356 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1357 },
1358 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1359 &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
1360 },
1361 },
1362 &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
1363 &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.
1364 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1365 },
1366 },
1367 ],
1368 &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.
1369 &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.
1370 &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.
1371 &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.
1372 },
1373 &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.
1374 },
1375 ],
1376 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1377 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001378 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1379 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1380 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1381 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 },
1383 ],
1384 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001385 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1386 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1387 &quot;items&quot;: [ # Required. List items.
1388 { # An item in the list.
1389 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1390 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1391 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1392 &quot;A String&quot;,
1393 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001395 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1396 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1397 &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.
1398 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1399 },
1400 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 },
1402 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001403 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1404 },
1405 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1406 &quot;items&quot;: [ # Required. Carousel items.
1407 { # An item in the carousel.
1408 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1409 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1410 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1411 &quot;A String&quot;,
1412 ],
1413 },
1414 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1415 &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.
1416 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1417 },
1418 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1419 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1420 },
1421 ],
1422 },
1423 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001425 &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 -07001426 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001427 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001428 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1429 { # Column properties for TableCard.
1430 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1431 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1432 },
1433 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001434 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001435 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1436 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07001437 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1438 { # Cell of TableCardRow.
1439 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1440 },
1441 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001442 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1443 },
1444 ],
1445 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1446 { # The button object that appears at the bottom of a card.
1447 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1448 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1449 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1450 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 },
1452 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001453 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1454 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001455 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001456 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001457 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001458 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1459 { # Optional. Contains information about a button.
1460 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1461 &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 -07001462 },
1463 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001464 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001465 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001466 &quot;payload&quot;: { # A custom platform-specific response.
1467 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001469 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1470 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1471 { # The button object that appears at the bottom of a card.
1472 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1473 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1474 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1475 },
1476 },
1477 ],
1478 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1479 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1480 &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.
1481 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1482 },
1483 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1484 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1485 },
1486 &quot;image&quot;: { # The image response message. # Displays an image.
1487 &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.
1488 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1489 },
1490 &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.
1491 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1492 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1493 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001494 &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 -07001495 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1496 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001497 &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 -07001498 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001499 &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 -07001500 },
1501 ],
1502 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001503 &quot;text&quot;: { # The text response message. # Returns a text response.
1504 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1505 &quot;A String&quot;,
1506 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001507 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001508 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1509 &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.
1510 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1511 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1512 &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
1513 &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.
1514 &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
1515 &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.
1516 },
1517 &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
1518 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1519 },
1520 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1521 &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
1522 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001523 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001524 &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
1525 &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.
1526 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001527 },
1528 },
1529 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001530 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1531 },
1532 &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.
1533 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1534 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1535 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1536 &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.
1537 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1538 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1539 &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
1540 &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.
1541 &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
1542 &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.
1543 },
1544 &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
1545 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1546 },
1547 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1548 &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
1549 },
1550 },
1551 &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
1552 &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.
1553 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1554 },
1555 },
1556 ],
1557 &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.
1558 &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.
1559 &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.
1560 &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.
1561 },
1562 &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.
1563 },
1564 },
1565 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1566 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1567 &quot;A String&quot;,
1568 ],
1569 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1570 },
1571 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1572 &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).
1573 },
1574 &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.
1575 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1576 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1577 },
1578 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1579 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1580 { # Response media object for media content card.
1581 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1582 &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.
1583 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1584 },
1585 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1586 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1587 &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.
1588 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1589 },
1590 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1591 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1592 },
1593 ],
1594 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001595 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001596 },
1597 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001598 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001599 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001622 <code class="details" id="get">get(name, languageCode=None, intentView=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 Kim673ec5c2020-11-16 11:05:03 -07001627 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 -07001628 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001629 Allowed values
1630 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1631 INTENT_VIEW_FULL - All fields are populated.
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001642 &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).
1643 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001645 &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.
1646 { # Represents a single followup intent in the chain.
1647 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1648 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001649 },
1650 ],
1651 &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/`
1652 &quot;A String&quot;,
1653 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001654 &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.
1655 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1656 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1657 &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.
1658 &quot;A String&quot;,
1659 ],
1660 &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/`.
1661 { # 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).
1662 &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
1663 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1664 },
1665 &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`
1666 &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.
1667 },
1668 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001669 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001670 &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.
1671 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1672 { # Represents intent parameters.
1673 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1674 &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`.
1675 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1676 &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.
1677 &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.
1678 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1679 &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`.
1680 &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.
1681 &quot;A String&quot;,
1682 ],
1683 },
1684 ],
1685 &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/`.
1686 &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.
1687 &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/`.
1688 &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.
1689 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1690 { # Represents an example that the agent is trained on.
1691 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1692 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1693 &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.
1694 { # Represents a part of a training phrase.
1695 &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.
1696 &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.
1697 &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.
1698 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1699 },
1700 ],
1701 &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.
1702 },
1703 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001704 &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 -07001705 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001706 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1707 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001708 },
1709 &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.
1710 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1711 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1712 { # Browsing carousel tile
1713 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001714 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1715 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1716 &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.
1717 },
1718 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001719 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1720 &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.
1721 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1722 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001723 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001724 },
1725 ],
1726 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001727 &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.
1728 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1729 { # Rich Business Messaging (RBM) Card content
1730 &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.
1731 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1732 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1733 &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
1734 &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.
1735 &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
1736 &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.
1737 },
1738 &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
1739 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1740 },
1741 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1742 &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
1743 },
1744 },
1745 &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
1746 &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.
1747 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1748 },
1749 },
1750 ],
1751 &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.
1752 &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.
1753 &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.
1754 &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.
1755 },
1756 &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.
1757 },
1758 ],
1759 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1760 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001761 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1762 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1763 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1764 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07001765 },
1766 ],
1767 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001768 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1769 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1770 &quot;items&quot;: [ # Required. List items.
1771 { # An item in the list.
1772 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1773 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1774 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1775 &quot;A String&quot;,
1776 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001778 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1779 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1780 &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.
1781 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1782 },
1783 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 },
1785 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001786 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1787 },
1788 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1789 &quot;items&quot;: [ # Required. Carousel items.
1790 { # An item in the carousel.
1791 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1792 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1793 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1794 &quot;A String&quot;,
1795 ],
1796 },
1797 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1798 &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.
1799 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1800 },
1801 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1802 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1803 },
1804 ],
1805 },
1806 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07001807 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001808 &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 -07001809 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001811 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1812 { # Column properties for TableCard.
1813 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1814 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1815 },
1816 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001817 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1819 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07001820 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1821 { # Cell of TableCardRow.
1822 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1823 },
1824 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001825 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1826 },
1827 ],
1828 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1829 { # The button object that appears at the bottom of a card.
1830 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1831 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1832 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1833 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001834 },
1835 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001836 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1837 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001838 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001839 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001840 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001841 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1842 { # Optional. Contains information about a button.
1843 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1844 &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 -07001845 },
1846 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001847 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001848 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001849 &quot;payload&quot;: { # A custom platform-specific response.
1850 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001851 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001852 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1853 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1854 { # The button object that appears at the bottom of a card.
1855 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1856 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1857 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1858 },
1859 },
1860 ],
1861 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1862 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1863 &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.
1864 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1865 },
1866 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1867 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1868 },
1869 &quot;image&quot;: { # The image response message. # Displays an image.
1870 &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.
1871 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1872 },
1873 &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.
1874 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1875 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1876 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001877 &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 -07001878 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1879 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001880 &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 -07001881 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001882 &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 -07001883 },
1884 ],
1885 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001886 &quot;text&quot;: { # The text response message. # Returns a text response.
1887 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1888 &quot;A String&quot;,
1889 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001890 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001891 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1892 &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.
1893 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1894 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1895 &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
1896 &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.
1897 &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
1898 &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.
1899 },
1900 &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
1901 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1902 },
1903 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1904 &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
1905 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001906 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001907 &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
1908 &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.
1909 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001910 },
1911 },
1912 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001913 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1914 },
1915 &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.
1916 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1917 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1918 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1919 &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.
1920 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1921 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1922 &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
1923 &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.
1924 &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
1925 &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.
1926 },
1927 &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
1928 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1929 },
1930 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1931 &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
1932 },
1933 },
1934 &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
1935 &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.
1936 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1937 },
1938 },
1939 ],
1940 &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.
1941 &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.
1942 &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.
1943 &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.
1944 },
1945 &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.
1946 },
1947 },
1948 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1949 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1950 &quot;A String&quot;,
1951 ],
1952 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1953 },
1954 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1955 &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).
1956 },
1957 &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.
1958 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1959 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1960 },
1961 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1962 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1963 { # Response media object for media content card.
1964 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1965 &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.
1966 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1967 },
1968 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1969 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1970 &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.
1971 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1972 },
1973 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1974 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1975 },
1976 ],
1977 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001978 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001979 },
1980 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001981 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001982 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001983 }</pre>
1984</div>
1985
1986<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001987 <code class="details" id="list">list(parent, languageCode=None, intentView=None, pageSize=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)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001992 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 -07001993 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001994 Allowed values
1995 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1996 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001997 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001998 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002011 &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).
2012 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002013 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002014 &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.
2015 { # Represents a single followup intent in the chain.
2016 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2017 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002018 },
2019 ],
2020 &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/`
2021 &quot;A String&quot;,
2022 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002023 &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.
2024 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2025 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2026 &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.
2027 &quot;A String&quot;,
2028 ],
2029 &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/`.
2030 { # 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).
2031 &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
2032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2033 },
2034 &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`
2035 &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.
2036 },
2037 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002038 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002039 &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.
2040 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2041 { # Represents intent parameters.
2042 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2043 &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`.
2044 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2045 &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.
2046 &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.
2047 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2048 &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`.
2049 &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.
2050 &quot;A String&quot;,
2051 ],
2052 },
2053 ],
2054 &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/`.
2055 &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.
2056 &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/`.
2057 &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.
2058 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2059 { # Represents an example that the agent is trained on.
2060 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2061 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2062 &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.
2063 { # Represents a part of a training phrase.
2064 &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.
2065 &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.
2066 &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.
2067 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2068 },
2069 ],
2070 &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.
2071 },
2072 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002073 &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 -07002074 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002075 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2076 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002077 },
2078 &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.
2079 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2080 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2081 { # Browsing carousel tile
2082 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002083 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2084 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2085 &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.
2086 },
2087 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002088 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2089 &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.
2090 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2091 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002092 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002093 },
2094 ],
2095 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002096 &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.
2097 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2098 { # Rich Business Messaging (RBM) Card content
2099 &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.
2100 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2101 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2102 &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
2103 &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.
2104 &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
2105 &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.
2106 },
2107 &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
2108 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2109 },
2110 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2111 &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
2112 },
2113 },
2114 &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
2115 &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.
2116 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2117 },
2118 },
2119 ],
2120 &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.
2121 &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.
2122 &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.
2123 &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.
2124 },
2125 &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.
2126 },
2127 ],
2128 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2129 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002130 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2131 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2132 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2133 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002134 },
2135 ],
2136 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002137 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2138 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2139 &quot;items&quot;: [ # Required. List items.
2140 { # An item in the list.
2141 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2142 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2143 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2144 &quot;A String&quot;,
2145 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002146 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002147 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2148 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2149 &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.
2150 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2151 },
2152 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002153 },
2154 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002155 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2156 },
2157 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2158 &quot;items&quot;: [ # Required. Carousel items.
2159 { # An item in the carousel.
2160 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2161 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2162 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2163 &quot;A String&quot;,
2164 ],
2165 },
2166 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2167 &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.
2168 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2169 },
2170 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2171 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2172 },
2173 ],
2174 },
2175 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002176 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002177 &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 -07002178 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002179 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002180 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2181 { # Column properties for TableCard.
2182 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2183 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2184 },
2185 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002186 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2188 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002189 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2190 { # Cell of TableCardRow.
2191 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2192 },
2193 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002194 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2195 },
2196 ],
2197 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2198 { # The button object that appears at the bottom of a card.
2199 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2200 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2201 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2202 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002203 },
2204 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002205 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2206 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002207 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002208 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002209 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002210 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2211 { # Optional. Contains information about a button.
2212 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2213 &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 -07002214 },
2215 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002216 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002217 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002218 &quot;payload&quot;: { # A custom platform-specific response.
2219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002220 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002221 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2222 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2223 { # The button object that appears at the bottom of a card.
2224 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2225 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2226 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2227 },
2228 },
2229 ],
2230 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2231 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2232 &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.
2233 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2234 },
2235 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2236 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2237 },
2238 &quot;image&quot;: { # The image response message. # Displays an image.
2239 &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.
2240 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2241 },
2242 &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.
2243 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2244 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2245 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002246 &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 -07002247 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2248 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002249 &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 -07002250 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002251 &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 -07002252 },
2253 ],
2254 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002255 &quot;text&quot;: { # The text response message. # Returns a text response.
2256 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2257 &quot;A String&quot;,
2258 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002259 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002260 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2261 &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.
2262 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2263 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2264 &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
2265 &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.
2266 &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
2267 &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.
2268 },
2269 &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
2270 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2271 },
2272 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2273 &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
2274 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002275 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002276 &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
2277 &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.
2278 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002279 },
2280 },
2281 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002282 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2283 },
2284 &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.
2285 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2286 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2287 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2288 &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.
2289 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2290 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2291 &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
2292 &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.
2293 &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
2294 &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.
2295 },
2296 &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
2297 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2298 },
2299 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2300 &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
2301 },
2302 },
2303 &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
2304 &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.
2305 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2306 },
2307 },
2308 ],
2309 &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.
2310 &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.
2311 &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.
2312 &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.
2313 },
2314 &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.
2315 },
2316 },
2317 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2318 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2319 &quot;A String&quot;,
2320 ],
2321 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2322 },
2323 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2324 &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).
2325 },
2326 &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.
2327 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2328 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2329 },
2330 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2331 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2332 { # Response media object for media content card.
2333 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2334 &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.
2335 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2336 },
2337 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2338 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2339 &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.
2340 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2341 },
2342 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2343 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2344 },
2345 ],
2346 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002347 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002348 },
2349 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002350 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002351 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002373 <code class="details" id="patch">patch(name, body=None, intentView=None, updateMask=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002383 &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).
2384 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002385 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002386 &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.
2387 { # Represents a single followup intent in the chain.
2388 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2389 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002390 },
2391 ],
2392 &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/`
2393 &quot;A String&quot;,
2394 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002395 &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.
2396 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2397 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2398 &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.
2399 &quot;A String&quot;,
2400 ],
2401 &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/`.
2402 { # 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).
2403 &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
2404 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2405 },
2406 &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`
2407 &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.
2408 },
2409 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002410 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002411 &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.
2412 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2413 { # Represents intent parameters.
2414 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2415 &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`.
2416 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2417 &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.
2418 &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.
2419 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2420 &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`.
2421 &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.
2422 &quot;A String&quot;,
2423 ],
2424 },
2425 ],
2426 &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/`.
2427 &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.
2428 &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/`.
2429 &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.
2430 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2431 { # Represents an example that the agent is trained on.
2432 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2433 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2434 &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.
2435 { # Represents a part of a training phrase.
2436 &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.
2437 &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.
2438 &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.
2439 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2440 },
2441 ],
2442 &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.
2443 },
2444 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002445 &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 -07002446 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002447 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2448 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002449 },
2450 &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.
2451 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2452 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2453 { # Browsing carousel tile
2454 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002455 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2456 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2457 &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.
2458 },
2459 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002460 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2461 &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.
2462 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2463 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002464 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002465 },
2466 ],
2467 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002468 &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.
2469 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2470 { # Rich Business Messaging (RBM) Card content
2471 &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.
2472 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2473 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2474 &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
2475 &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.
2476 &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
2477 &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.
2478 },
2479 &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
2480 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2481 },
2482 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2483 &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
2484 },
2485 },
2486 &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
2487 &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.
2488 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2489 },
2490 },
2491 ],
2492 &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.
2493 &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.
2494 &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.
2495 &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.
2496 },
2497 &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.
2498 },
2499 ],
2500 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2501 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002502 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2503 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2504 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2505 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 },
2507 ],
2508 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002509 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2510 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2511 &quot;items&quot;: [ # Required. List items.
2512 { # An item in the list.
2513 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2514 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2515 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2516 &quot;A String&quot;,
2517 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002518 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002519 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2520 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2521 &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.
2522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2523 },
2524 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002525 },
2526 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002527 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2528 },
2529 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2530 &quot;items&quot;: [ # Required. Carousel items.
2531 { # An item in the carousel.
2532 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2533 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2534 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2535 &quot;A String&quot;,
2536 ],
2537 },
2538 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2539 &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.
2540 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2541 },
2542 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2543 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2544 },
2545 ],
2546 },
2547 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002548 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002549 &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 -07002550 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002551 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002552 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2553 { # Column properties for TableCard.
2554 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2555 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2556 },
2557 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002558 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002559 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2560 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002561 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2562 { # Cell of TableCardRow.
2563 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2564 },
2565 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002566 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2567 },
2568 ],
2569 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2570 { # The button object that appears at the bottom of a card.
2571 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2572 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2573 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2574 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002575 },
2576 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002577 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2578 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002579 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002580 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002581 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002582 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2583 { # Optional. Contains information about a button.
2584 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2585 &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 -07002586 },
2587 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002588 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002589 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002590 &quot;payload&quot;: { # A custom platform-specific response.
2591 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002592 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002593 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2594 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2595 { # The button object that appears at the bottom of a card.
2596 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2597 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2598 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2599 },
2600 },
2601 ],
2602 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2603 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2604 &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.
2605 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2606 },
2607 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2608 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2609 },
2610 &quot;image&quot;: { # The image response message. # Displays an image.
2611 &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.
2612 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2613 },
2614 &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.
2615 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2616 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2617 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002618 &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 -07002619 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2620 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002621 &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 -07002622 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002623 &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 -07002624 },
2625 ],
2626 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002627 &quot;text&quot;: { # The text response message. # Returns a text response.
2628 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2629 &quot;A String&quot;,
2630 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002631 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002632 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2633 &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.
2634 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2635 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2636 &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
2637 &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.
2638 &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
2639 &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.
2640 },
2641 &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
2642 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2643 },
2644 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2645 &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
2646 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002647 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002648 &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
2649 &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.
2650 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002651 },
2652 },
2653 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002654 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2655 },
2656 &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.
2657 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2658 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2659 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2660 &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.
2661 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2662 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2663 &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
2664 &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.
2665 &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
2666 &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.
2667 },
2668 &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
2669 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2670 },
2671 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2672 &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
2673 },
2674 },
2675 &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
2676 &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.
2677 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2678 },
2679 },
2680 ],
2681 &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.
2682 &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.
2683 &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.
2684 &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.
2685 },
2686 &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.
2687 },
2688 },
2689 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2690 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2691 &quot;A String&quot;,
2692 ],
2693 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2694 },
2695 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2696 &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).
2697 },
2698 &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.
2699 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2700 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2701 },
2702 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2703 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2704 { # Response media object for media content card.
2705 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2706 &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.
2707 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2708 },
2709 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2710 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2711 &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.
2712 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2713 },
2714 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2715 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2716 },
2717 ],
2718 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002719 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002720 },
2721 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002722 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002723 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002730 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002731 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 -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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002742 &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).
2743 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002744 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002745 &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.
2746 { # Represents a single followup intent in the chain.
2747 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2748 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002749 },
2750 ],
2751 &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/`
2752 &quot;A String&quot;,
2753 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002754 &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.
2755 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2756 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2757 &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.
2758 &quot;A String&quot;,
2759 ],
2760 &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/`.
2761 { # 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).
2762 &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
2763 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2764 },
2765 &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`
2766 &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.
2767 },
2768 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002769 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002770 &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.
2771 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2772 { # Represents intent parameters.
2773 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2774 &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`.
2775 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2776 &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.
2777 &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.
2778 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2779 &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`.
2780 &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.
2781 &quot;A String&quot;,
2782 ],
2783 },
2784 ],
2785 &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/`.
2786 &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.
2787 &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/`.
2788 &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.
2789 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2790 { # Represents an example that the agent is trained on.
2791 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2792 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2793 &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.
2794 { # Represents a part of a training phrase.
2795 &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.
2796 &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.
2797 &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.
2798 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2799 },
2800 ],
2801 &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.
2802 },
2803 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002804 &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 -07002805 { # Corresponds to the `Response` field in the Dialogflow console.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002806 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2807 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002808 },
2809 &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.
2810 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2811 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2812 { # Browsing carousel tile
2813 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002814 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2815 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2816 &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.
2817 },
2818 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002819 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2820 &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.
2821 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2822 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002823 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002824 },
2825 ],
2826 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002827 &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.
2828 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2829 { # Rich Business Messaging (RBM) Card content
2830 &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.
2831 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2832 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2833 &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
2834 &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.
2835 &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
2836 &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.
2837 },
2838 &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
2839 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2840 },
2841 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2842 &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
2843 },
2844 },
2845 &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
2846 &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.
2847 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2848 },
2849 },
2850 ],
2851 &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.
2852 &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.
2853 &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.
2854 &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.
2855 },
2856 &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.
2857 },
2858 ],
2859 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2860 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002861 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2862 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2863 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2864 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
Bu Sun Kim65020912020-05-20 12:08:20 -07002865 },
2866 ],
2867 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002868 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2869 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2870 &quot;items&quot;: [ # Required. List items.
2871 { # An item in the list.
2872 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2873 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2874 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2875 &quot;A String&quot;,
2876 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002877 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002878 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2879 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2880 &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.
2881 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2882 },
2883 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002884 },
2885 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002886 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2887 },
2888 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2889 &quot;items&quot;: [ # Required. Carousel items.
2890 { # An item in the carousel.
2891 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2892 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2893 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2894 &quot;A String&quot;,
2895 ],
2896 },
2897 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2898 &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.
2899 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2900 },
2901 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2902 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2903 },
2904 ],
2905 },
2906 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Bu Sun Kim65020912020-05-20 12:08:20 -07002907 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002908 &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 -07002909 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002910 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002911 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2912 { # Column properties for TableCard.
2913 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2914 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2915 },
2916 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002917 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002918 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2919 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2921 { # Cell of TableCardRow.
2922 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2923 },
2924 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002925 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2926 },
2927 ],
2928 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2929 { # The button object that appears at the bottom of a card.
2930 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2931 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2932 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2933 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002934 },
2935 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002936 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2937 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002938 &quot;card&quot;: { # The card response message. # Displays a card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002939 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002940 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002941 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2942 { # Optional. Contains information about a button.
2943 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2944 &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 -07002945 },
2946 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002947 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002948 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002949 &quot;payload&quot;: { # A custom platform-specific response.
2950 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002951 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002952 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2953 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2954 { # The button object that appears at the bottom of a card.
2955 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2956 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2957 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2958 },
2959 },
2960 ],
2961 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2962 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2963 &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.
2964 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2965 },
2966 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2967 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2968 },
2969 &quot;image&quot;: { # The image response message. # Displays an image.
2970 &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.
2971 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2972 },
2973 &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.
2974 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2975 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2976 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002977 &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 -07002978 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2979 { # The simple response message containing speech or text.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002980 &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 -07002981 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002982 &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 -07002983 },
2984 ],
2985 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002986 &quot;text&quot;: { # The text response message. # Returns a text response.
2987 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2988 &quot;A String&quot;,
2989 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002990 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002991 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2992 &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.
2993 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2994 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2995 &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
2996 &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.
2997 &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
2998 &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.
2999 },
3000 &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
3001 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3002 },
3003 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3004 &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
3005 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003006 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003007 &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
3008 &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.
3009 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003010 },
3011 },
3012 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003013 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
3014 },
3015 &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.
3016 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
3017 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
3018 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
3019 &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.
3020 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
3021 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
3022 &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
3023 &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.
3024 &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
3025 &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.
3026 },
3027 &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
3028 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
3029 },
3030 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
3031 &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
3032 },
3033 },
3034 &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
3035 &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.
3036 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
3037 },
3038 },
3039 ],
3040 &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.
3041 &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.
3042 &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.
3043 &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.
3044 },
3045 &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.
3046 },
3047 },
3048 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
3049 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
3050 &quot;A String&quot;,
3051 ],
3052 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
3053 },
3054 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3055 &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).
3056 },
3057 &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.
3058 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
3059 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3060 },
3061 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
3062 &quot;mediaObjects&quot;: [ # Required. List of media objects.
3063 { # Response media object for media content card.
3064 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
3065 &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.
3066 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3067 },
3068 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
3069 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
3070 &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.
3071 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3072 },
3073 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
3074 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
3075 },
3076 ],
3077 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003078 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003079 },
3080 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003081 &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/`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003082 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003083 }</pre>
3084</div>
3085
3086</body></html>