blob: 7da42f343e329bf73bbb888b390c6e83c3179a7f [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_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.agent.html">agent</a> . <a href="dialogflow_v2.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">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=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">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080096 <code><a href="#list">list(parent, intentView=None, languageCode=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">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800102 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 <pre>Deletes intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 parent: string, Required. The name of the agent to delete all entities types for. Format: `projects//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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 &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;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
118 &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;,
120 ],
121 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
122 &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.
123 &quot;A String&quot;,
124 ],
125 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
126 { # Represents a single followup intent in the chain.
127 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
128 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
129 },
130 ],
131 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
132 &quot;A String&quot;,
133 ],
134 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
135 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
136 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
137 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
138 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
139 { # The button object that appears at the bottom of a card.
140 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
141 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800143 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800144 },
145 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800146 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
147 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
148 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
149 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
150 },
151 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
152 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800154 &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.
155 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
156 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
157 { # Browsing carousel tile
158 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
159 &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.
160 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
161 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
162 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
163 },
164 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
165 &quot;url&quot;: &quot;A String&quot;, # Required. URL
166 &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.
167 },
168 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
169 },
170 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800171 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800172 &quot;card&quot;: { # The card response message. # The card response.
173 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
174 { # Contains information about a button.
175 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
176 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
177 },
178 ],
179 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
180 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
181 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
182 },
183 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
184 &quot;items&quot;: [ # Required. Carousel items.
185 { # An item in the carousel.
186 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
187 &quot;image&quot;: { # The image response message. # Optional. The image to display.
188 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
189 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
190 },
191 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
192 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
193 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
194 &quot;A String&quot;,
195 ],
196 },
197 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
198 },
199 ],
200 },
201 &quot;image&quot;: { # The image response message. # The image response.
202 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
203 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
204 },
205 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
206 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
207 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
208 },
209 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
210 &quot;items&quot;: [ # Required. List items.
211 { # An item in the list.
212 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
213 &quot;image&quot;: { # The image response message. # Optional. The image to display.
214 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
215 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
216 },
217 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
218 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
219 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
220 &quot;A String&quot;,
221 ],
222 },
223 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
224 },
225 ],
226 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
227 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
228 },
229 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
230 &quot;mediaObjects&quot;: [ # Required. List of media objects.
231 { # Response media object for media content card.
232 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
233 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
234 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
235 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
236 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
237 },
238 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
239 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
240 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
241 },
242 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
243 },
244 ],
245 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
246 },
247 &quot;payload&quot;: { # A custom platform-specific response.
248 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
249 },
250 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
251 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
252 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800253 &quot;A String&quot;,
254 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800255 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800256 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800257 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
258 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
259 { # The simple response message containing speech or text.
260 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
261 &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.
262 &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.
263 },
264 ],
265 },
266 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
267 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
268 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
269 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
270 },
271 ],
272 },
273 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
274 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
275 { # The button object that appears at the bottom of a card.
276 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
277 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
278 },
279 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
280 },
281 ],
282 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
283 { # Column properties for TableCard.
284 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
285 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
286 },
287 ],
288 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
289 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
290 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
291 },
292 &quot;rows&quot;: [ # Optional. Rows in this table of data.
293 { # Row of TableCard.
294 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
295 { # Cell of TableCardRow.
296 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
297 },
298 ],
299 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
300 },
301 ],
302 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
303 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
304 },
305 &quot;text&quot;: { # The text response message. # The text response.
306 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
307 &quot;A String&quot;,
308 ],
309 },
310 },
311 ],
312 &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.
313 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
314 &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/`.
315 { # 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).
316 &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.
317 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
318 &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
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
320 },
321 },
322 ],
323 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
324 { # Represents intent parameters.
325 &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`.
326 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
327 &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.
328 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
329 &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.
330 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
331 &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.
332 &quot;A String&quot;,
333 ],
334 &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`.
335 },
336 ],
337 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
338 &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.
339 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
340 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
341 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
342 { # Represents an example that the agent is trained on.
343 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
344 &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.
345 { # Represents a part of a training phrase.
346 &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.
347 &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.
348 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
349 &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.
350 },
351 ],
352 &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.
353 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
354 },
355 ],
356 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
357 },
358 ],
359}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366Returns:
367 An object of the form:
368
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700369 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800370 &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.
371 &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.
372 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
373 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
374 {
375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
376 },
377 ],
378 &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.
379 },
380 &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.
381 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
382 },
383 &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}`.
384 &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`.
385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
386 },
387}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388</div>
389
390<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 <pre>Updates/Creates multiple intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393
394Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700395 parent: string, Required. The name of the agent to update or create intents in. Format: `projects//agent`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 The object takes the form of:
398
Dan O'Mearadd494642020-05-01 07:42:23 -0700399{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
401 &quot;intents&quot;: [ # A collection of intents.
402 { # 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).
403 &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.
404 &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).
405 &quot;A String&quot;,
406 ],
407 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
408 &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.
409 &quot;A String&quot;,
410 ],
411 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
412 { # Represents a single followup intent in the chain.
413 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
414 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
415 },
416 ],
417 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
418 &quot;A String&quot;,
419 ],
420 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
421 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
422 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
423 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
424 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
425 { # The button object that appears at the bottom of a card.
426 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
427 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800428 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800429 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800430 },
431 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800432 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
433 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
434 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
435 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
436 },
437 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
438 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800439 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &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.
441 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
442 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
443 { # Browsing carousel tile
444 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
445 &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.
446 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
447 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
448 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
449 },
450 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
451 &quot;url&quot;: &quot;A String&quot;, # Required. URL
452 &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.
453 },
454 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
455 },
456 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800457 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800458 &quot;card&quot;: { # The card response message. # The card response.
459 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
460 { # Contains information about a button.
461 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
462 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
463 },
464 ],
465 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
466 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
467 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
468 },
469 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
470 &quot;items&quot;: [ # Required. Carousel items.
471 { # An item in the carousel.
472 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
473 &quot;image&quot;: { # The image response message. # Optional. The image to display.
474 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
475 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
476 },
477 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
478 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
479 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
480 &quot;A String&quot;,
481 ],
482 },
483 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
484 },
485 ],
486 },
487 &quot;image&quot;: { # The image response message. # The image response.
488 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
489 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
490 },
491 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
492 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
493 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
494 },
495 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
496 &quot;items&quot;: [ # Required. List items.
497 { # An item in the list.
498 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
499 &quot;image&quot;: { # The image response message. # Optional. The image to display.
500 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
501 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
502 },
503 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
504 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
505 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
506 &quot;A String&quot;,
507 ],
508 },
509 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
510 },
511 ],
512 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
513 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
514 },
515 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
516 &quot;mediaObjects&quot;: [ # Required. List of media objects.
517 { # Response media object for media content card.
518 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
519 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
520 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
521 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
523 },
524 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
525 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
526 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
527 },
528 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
529 },
530 ],
531 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
532 },
533 &quot;payload&quot;: { # A custom platform-specific response.
534 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
535 },
536 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
537 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
538 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800539 &quot;A String&quot;,
540 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800541 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800542 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800543 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
544 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
545 { # The simple response message containing speech or text.
546 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
547 &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.
548 &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.
549 },
550 ],
551 },
552 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
553 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
554 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
555 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
556 },
557 ],
558 },
559 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
560 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
561 { # The button object that appears at the bottom of a card.
562 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
563 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
564 },
565 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
566 },
567 ],
568 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
569 { # Column properties for TableCard.
570 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
571 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
572 },
573 ],
574 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
575 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
576 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
577 },
578 &quot;rows&quot;: [ # Optional. Rows in this table of data.
579 { # Row of TableCard.
580 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
581 { # Cell of TableCardRow.
582 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
583 },
584 ],
585 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
586 },
587 ],
588 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
589 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
590 },
591 &quot;text&quot;: { # The text response message. # The text response.
592 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
593 &quot;A String&quot;,
594 ],
595 },
596 },
597 ],
598 &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.
599 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
600 &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/`.
601 { # 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).
602 &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.
603 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
604 &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
605 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
606 },
607 },
608 ],
609 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
610 { # Represents intent parameters.
611 &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`.
612 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
613 &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.
614 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
615 &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.
616 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
617 &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.
618 &quot;A String&quot;,
619 ],
620 &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`.
621 },
622 ],
623 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
624 &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.
625 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
626 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
627 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
628 { # Represents an example that the agent is trained on.
629 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
630 &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.
631 { # Represents a part of a training phrase.
632 &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.
633 &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.
634 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
635 &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.
636 },
637 ],
638 &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.
639 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
640 },
641 ],
642 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
643 },
644 ],
645 },
646 &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;.
647 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
648 &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).
649 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
650}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651
652 x__xgafv: string, V1 error format.
653 Allowed values
654 1 - v1 error format
655 2 - v2 error format
656
657Returns:
658 An object of the form:
659
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700660 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800661 &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.
662 &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.
663 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
664 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
665 {
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
668 ],
669 &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.
670 },
671 &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.
672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
673 },
674 &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}`.
675 &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`.
676 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
677 },
678}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679</div>
680
681<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700682 <code class="details" id="close">close()</code>
683 <pre>Close httplib2 connections.</pre>
684</div>
685
686<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800687 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 <pre>Creates an intent in the specified agent.
689
690Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700691 parent: string, Required. The agent to create a intent for. Format: `projects//agent`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 The object takes the form of:
694
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700695{ # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800696 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800697 &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).
698 &quot;A String&quot;,
699 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800700 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800701 &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.
702 &quot;A String&quot;,
703 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800704 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
705 { # Represents a single followup intent in the chain.
706 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
707 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800708 },
709 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800710 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
711 &quot;A String&quot;,
712 ],
713 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
715 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800716 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800717 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
718 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800719 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
720 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
721 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800722 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800723 },
724 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
726 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
727 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
728 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
729 },
730 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
731 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800732 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800733 &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.
734 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
735 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
736 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800737 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
738 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800739 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
740 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
741 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
742 },
743 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
744 &quot;url&quot;: &quot;A String&quot;, # Required. URL
745 &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.
746 },
747 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800748 },
749 ],
750 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800751 &quot;card&quot;: { # The card response message. # The card response.
752 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
753 { # Contains information about a button.
754 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
755 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
756 },
757 ],
758 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
759 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
760 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
761 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800762 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
763 &quot;items&quot;: [ # Required. Carousel items.
764 { # An item in the carousel.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800765 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
766 &quot;image&quot;: { # The image response message. # Optional. The image to display.
767 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
768 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
769 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800770 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800771 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700772 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
773 &quot;A String&quot;,
774 ],
775 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800776 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800777 },
778 ],
779 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800780 &quot;image&quot;: { # The image response message. # The image response.
781 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
782 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
783 },
784 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
785 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
786 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
787 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800788 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800789 &quot;items&quot;: [ # Required. List items.
790 { # An item in the list.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800791 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800792 &quot;image&quot;: { # The image response message. # Optional. The image to display.
793 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
794 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
795 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800796 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800797 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800798 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
799 &quot;A String&quot;,
800 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800801 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800802 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800803 },
804 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800805 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800806 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800807 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800808 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
809 &quot;mediaObjects&quot;: [ # Required. List of media objects.
810 { # Response media object for media content card.
811 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
812 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
813 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
814 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
815 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
816 },
817 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
818 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
819 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
820 },
821 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800822 },
823 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800824 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800825 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800826 &quot;payload&quot;: { # A custom platform-specific response.
827 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
828 },
829 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800830 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800831 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
832 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800833 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800834 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800835 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800836 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
837 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
838 { # The simple response message containing speech or text.
839 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
840 &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.
841 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800842 },
843 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700844 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800845 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
846 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
847 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
848 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
849 },
850 ],
851 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800852 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
853 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
854 { # The button object that appears at the bottom of a card.
855 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
856 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800857 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800858 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800859 },
860 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800861 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
862 { # Column properties for TableCard.
863 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
864 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
865 },
866 ],
867 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
868 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
869 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
870 },
871 &quot;rows&quot;: [ # Optional. Rows in this table of data.
872 { # Row of TableCard.
873 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
874 { # Cell of TableCardRow.
875 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
876 },
877 ],
878 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
879 },
880 ],
881 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
882 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800883 },
884 &quot;text&quot;: { # The text response message. # The text response.
885 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800886 &quot;A String&quot;,
887 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800888 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800889 },
890 ],
891 &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.
892 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
893 &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/`.
894 { # 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).
895 &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.
896 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
897 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800898 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800899 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700900 },
901 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800902 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
903 { # Represents intent parameters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800904 &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`.
905 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
906 &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.
907 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
908 &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.
909 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800910 &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.
911 &quot;A String&quot;,
912 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800913 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800914 },
915 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800916 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
917 &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.
918 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
919 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
920 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
921 { # Represents an example that the agent is trained on.
922 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
923 &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.
924 { # Represents a part of a training phrase.
925 &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.
926 &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.
927 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
928 &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.
929 },
930 ],
931 &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.
932 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
933 },
934 ],
935 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936}
937
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700938 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700939 Allowed values
940 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
941 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800942 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 -0700943 x__xgafv: string, V1 error format.
944 Allowed values
945 1 - v1 error format
946 2 - v2 error format
947
948Returns:
949 An object of the form:
950
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700951 { # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800952 &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.
953 &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).
954 &quot;A String&quot;,
955 ],
956 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
957 &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.
958 &quot;A String&quot;,
959 ],
960 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
961 { # Represents a single followup intent in the chain.
962 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
963 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
964 },
965 ],
966 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
967 &quot;A String&quot;,
968 ],
969 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
970 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
971 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
972 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
973 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
974 { # The button object that appears at the bottom of a card.
975 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
976 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800977 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800978 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800979 },
980 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800981 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
982 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
983 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
984 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
985 },
986 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
987 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800988 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800989 &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.
990 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
991 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
992 { # Browsing carousel tile
993 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
994 &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.
995 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
996 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
997 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
998 },
999 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1000 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1001 &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.
1002 },
1003 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1004 },
1005 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001006 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001007 &quot;card&quot;: { # The card response message. # The card response.
1008 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1009 { # Contains information about a button.
1010 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1011 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1012 },
1013 ],
1014 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1015 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1016 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1017 },
1018 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1019 &quot;items&quot;: [ # Required. Carousel items.
1020 { # An item in the carousel.
1021 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1022 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1023 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1024 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1025 },
1026 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1027 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1028 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1029 &quot;A String&quot;,
1030 ],
1031 },
1032 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1033 },
1034 ],
1035 },
1036 &quot;image&quot;: { # The image response message. # The image response.
1037 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1038 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1039 },
1040 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1041 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1042 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1043 },
1044 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1045 &quot;items&quot;: [ # Required. List items.
1046 { # An item in the list.
1047 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1048 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1049 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1050 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1051 },
1052 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1053 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1054 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1055 &quot;A String&quot;,
1056 ],
1057 },
1058 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1059 },
1060 ],
1061 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1062 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1063 },
1064 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1065 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1066 { # Response media object for media content card.
1067 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1068 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1069 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1070 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1071 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1072 },
1073 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1074 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1075 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1076 },
1077 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1078 },
1079 ],
1080 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1081 },
1082 &quot;payload&quot;: { # A custom platform-specific response.
1083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1084 },
1085 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1086 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1087 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001088 &quot;A String&quot;,
1089 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001090 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001091 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001092 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1093 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1094 { # The simple response message containing speech or text.
1095 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1096 &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.
1097 &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.
1098 },
1099 ],
1100 },
1101 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1102 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1103 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1104 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1105 },
1106 ],
1107 },
1108 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1109 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1110 { # The button object that appears at the bottom of a card.
1111 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1112 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1113 },
1114 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1115 },
1116 ],
1117 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1118 { # Column properties for TableCard.
1119 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1120 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1121 },
1122 ],
1123 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1124 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1125 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1126 },
1127 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1128 { # Row of TableCard.
1129 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1130 { # Cell of TableCardRow.
1131 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1132 },
1133 ],
1134 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1135 },
1136 ],
1137 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1138 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1139 },
1140 &quot;text&quot;: { # The text response message. # The text response.
1141 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1142 &quot;A String&quot;,
1143 ],
1144 },
1145 },
1146 ],
1147 &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.
1148 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1149 &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/`.
1150 { # 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).
1151 &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.
1152 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
1153 &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
1154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1155 },
1156 },
1157 ],
1158 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1159 { # Represents intent parameters.
1160 &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`.
1161 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1162 &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.
1163 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1164 &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.
1165 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1166 &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.
1167 &quot;A String&quot;,
1168 ],
1169 &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`.
1170 },
1171 ],
1172 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
1173 &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.
1174 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1175 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1176 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1177 { # Represents an example that the agent is trained on.
1178 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1179 &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.
1180 { # Represents a part of a training phrase.
1181 &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.
1182 &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.
1183 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1184 &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.
1185 },
1186 ],
1187 &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.
1188 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1189 },
1190 ],
1191 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1192}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001193</div>
1194
1195<div class="method">
1196 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1197 <pre>Deletes the specified intent and its direct or indirect followup intents.
1198
1199Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001200 name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: `projects//agent/intents/`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001201 x__xgafv: string, V1 error format.
1202 Allowed values
1203 1 - v1 error format
1204 2 - v2 error format
1205
1206Returns:
1207 An object of the form:
1208
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001209 { # 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 `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001210}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001211</div>
1212
1213<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001214 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001215 <pre>Retrieves the specified intent.
1216
1217Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001218 name: string, Required. The name of the intent. Format: `projects//agent/intents/`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001220 Allowed values
1221 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1222 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001223 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 -07001224 x__xgafv: string, V1 error format.
1225 Allowed values
1226 1 - v1 error format
1227 2 - v2 error format
1228
1229Returns:
1230 An object of the form:
1231
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001232 { # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001233 &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.
1234 &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).
1235 &quot;A String&quot;,
1236 ],
1237 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1238 &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.
1239 &quot;A String&quot;,
1240 ],
1241 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1242 { # Represents a single followup intent in the chain.
1243 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1244 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1245 },
1246 ],
1247 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1248 &quot;A String&quot;,
1249 ],
1250 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1251 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1252 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
1253 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1254 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1255 { # The button object that appears at the bottom of a card.
1256 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1257 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001258 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001259 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001260 },
1261 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1263 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1264 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1265 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1266 },
1267 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1268 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001269 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001270 &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.
1271 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1272 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1273 { # Browsing carousel tile
1274 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1275 &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.
1276 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1277 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1278 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1279 },
1280 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1281 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1282 &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.
1283 },
1284 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1285 },
1286 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001287 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001288 &quot;card&quot;: { # The card response message. # The card response.
1289 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1290 { # Contains information about a button.
1291 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1292 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1293 },
1294 ],
1295 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1296 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1297 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1298 },
1299 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1300 &quot;items&quot;: [ # Required. Carousel items.
1301 { # An item in the carousel.
1302 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1303 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1304 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1305 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1306 },
1307 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1308 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1309 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1310 &quot;A String&quot;,
1311 ],
1312 },
1313 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1314 },
1315 ],
1316 },
1317 &quot;image&quot;: { # The image response message. # The image response.
1318 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1319 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1320 },
1321 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1322 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1323 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1324 },
1325 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1326 &quot;items&quot;: [ # Required. List items.
1327 { # An item in the list.
1328 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1329 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1330 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1331 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1332 },
1333 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1334 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1335 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1336 &quot;A String&quot;,
1337 ],
1338 },
1339 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1340 },
1341 ],
1342 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1343 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1344 },
1345 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1346 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1347 { # Response media object for media content card.
1348 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1349 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1350 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1351 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1352 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1353 },
1354 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1355 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1356 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1357 },
1358 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1359 },
1360 ],
1361 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1362 },
1363 &quot;payload&quot;: { # A custom platform-specific response.
1364 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1365 },
1366 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1367 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1368 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001369 &quot;A String&quot;,
1370 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001371 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001372 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001373 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1374 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1375 { # The simple response message containing speech or text.
1376 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1377 &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.
1378 &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.
1379 },
1380 ],
1381 },
1382 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1383 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1384 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1385 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1386 },
1387 ],
1388 },
1389 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1390 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1391 { # The button object that appears at the bottom of a card.
1392 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1393 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1394 },
1395 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1396 },
1397 ],
1398 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1399 { # Column properties for TableCard.
1400 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1401 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1402 },
1403 ],
1404 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1405 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1406 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1407 },
1408 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1409 { # Row of TableCard.
1410 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1411 { # Cell of TableCardRow.
1412 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1413 },
1414 ],
1415 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1416 },
1417 ],
1418 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1419 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1420 },
1421 &quot;text&quot;: { # The text response message. # The text response.
1422 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1423 &quot;A String&quot;,
1424 ],
1425 },
1426 },
1427 ],
1428 &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.
1429 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1430 &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/`.
1431 { # 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).
1432 &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.
1433 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
1434 &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
1435 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1436 },
1437 },
1438 ],
1439 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1440 { # Represents intent parameters.
1441 &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`.
1442 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1443 &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.
1444 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1445 &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.
1446 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1447 &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.
1448 &quot;A String&quot;,
1449 ],
1450 &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`.
1451 },
1452 ],
1453 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
1454 &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.
1455 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1456 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1457 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1458 { # Represents an example that the agent is trained on.
1459 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1460 &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.
1461 { # Represents a part of a training phrase.
1462 &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.
1463 &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.
1464 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1465 &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.
1466 },
1467 ],
1468 &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.
1469 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1470 },
1471 ],
1472 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1473}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001474</div>
1475
1476<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001477 <code class="details" id="list">list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001478 <pre>Returns the list of all intents in the specified agent.
1479
1480Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001481 parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001482 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001483 Allowed values
1484 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1485 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001486 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001487 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
1488 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001489 x__xgafv: string, V1 error format.
1490 Allowed values
1491 1 - v1 error format
1492 2 - v2 error format
1493
1494Returns:
1495 An object of the form:
1496
1497 { # The response message for Intents.ListIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001498 &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.
1499 { # 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).
1500 &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.
1501 &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).
1502 &quot;A String&quot;,
1503 ],
1504 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1505 &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.
1506 &quot;A String&quot;,
1507 ],
1508 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1509 { # Represents a single followup intent in the chain.
1510 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1511 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1512 },
1513 ],
1514 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1515 &quot;A String&quot;,
1516 ],
1517 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1518 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1519 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
1520 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1521 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1522 { # The button object that appears at the bottom of a card.
1523 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1524 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001525 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001526 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001527 },
1528 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001529 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1530 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1531 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1532 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1533 },
1534 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1535 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001536 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001537 &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.
1538 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1539 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1540 { # Browsing carousel tile
1541 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1542 &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.
1543 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1544 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1545 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1546 },
1547 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1548 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1549 &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.
1550 },
1551 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1552 },
1553 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001555 &quot;card&quot;: { # The card response message. # The card response.
1556 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1557 { # Contains information about a button.
1558 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1559 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1560 },
1561 ],
1562 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1563 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1564 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1565 },
1566 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1567 &quot;items&quot;: [ # Required. Carousel items.
1568 { # An item in the carousel.
1569 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1570 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1571 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1572 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1573 },
1574 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1575 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1576 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1577 &quot;A String&quot;,
1578 ],
1579 },
1580 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1581 },
1582 ],
1583 },
1584 &quot;image&quot;: { # The image response message. # The image response.
1585 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1586 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1587 },
1588 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1589 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1590 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1591 },
1592 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1593 &quot;items&quot;: [ # Required. List items.
1594 { # An item in the list.
1595 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1596 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1597 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1598 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1599 },
1600 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1601 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1602 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1603 &quot;A String&quot;,
1604 ],
1605 },
1606 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1607 },
1608 ],
1609 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1610 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1611 },
1612 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1613 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1614 { # Response media object for media content card.
1615 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1616 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1617 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1618 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1619 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1620 },
1621 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1622 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1623 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1624 },
1625 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1626 },
1627 ],
1628 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1629 },
1630 &quot;payload&quot;: { # A custom platform-specific response.
1631 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1632 },
1633 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1634 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1635 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001636 &quot;A String&quot;,
1637 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001638 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001639 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001640 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1641 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1642 { # The simple response message containing speech or text.
1643 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1644 &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.
1645 &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.
1646 },
1647 ],
1648 },
1649 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1650 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1651 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1652 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1653 },
1654 ],
1655 },
1656 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1657 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1658 { # The button object that appears at the bottom of a card.
1659 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1660 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1661 },
1662 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1663 },
1664 ],
1665 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1666 { # Column properties for TableCard.
1667 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1668 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1669 },
1670 ],
1671 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1672 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1673 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1674 },
1675 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1676 { # Row of TableCard.
1677 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1678 { # Cell of TableCardRow.
1679 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1680 },
1681 ],
1682 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1683 },
1684 ],
1685 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1686 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1687 },
1688 &quot;text&quot;: { # The text response message. # The text response.
1689 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1690 &quot;A String&quot;,
1691 ],
1692 },
1693 },
1694 ],
1695 &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.
1696 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1697 &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/`.
1698 { # 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).
1699 &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.
1700 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
1701 &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
1702 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1703 },
1704 },
1705 ],
1706 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1707 { # Represents intent parameters.
1708 &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`.
1709 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1710 &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.
1711 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1712 &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.
1713 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1714 &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.
1715 &quot;A String&quot;,
1716 ],
1717 &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`.
1718 },
1719 ],
1720 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
1721 &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.
1722 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1723 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1724 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1725 { # Represents an example that the agent is trained on.
1726 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1727 &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.
1728 { # Represents a part of a training phrase.
1729 &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.
1730 &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.
1731 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1732 &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.
1733 },
1734 ],
1735 &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.
1736 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1737 },
1738 ],
1739 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1740 },
1741 ],
1742 &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.
1743}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001744</div>
1745
1746<div class="method">
1747 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1748 <pre>Retrieves the next page of results.
1749
1750Args:
1751 previous_request: The request for the previous page. (required)
1752 previous_response: The response from the request for the previous page. (required)
1753
1754Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001756 page. Returns None if there are no more items in the collection.
1757 </pre>
1758</div>
1759
1760<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001761 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001762 <pre>Updates the specified intent.
1763
1764Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001765 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001766 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001767 The object takes the form of:
1768
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001769{ # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001770 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001771 &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).
1772 &quot;A String&quot;,
1773 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001774 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001775 &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.
1776 &quot;A String&quot;,
1777 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001778 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1779 { # Represents a single followup intent in the chain.
1780 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1781 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001782 },
1783 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001784 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1785 &quot;A String&quot;,
1786 ],
1787 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001788 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1789 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001790 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001791 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1792 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001793 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1794 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1795 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001796 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001797 },
1798 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001799 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1800 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1801 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1802 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1803 },
1804 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1805 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001806 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001807 &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.
1808 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1809 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1810 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001811 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1812 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001813 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1814 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1815 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1816 },
1817 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1818 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1819 &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.
1820 },
1821 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001822 },
1823 ],
1824 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001825 &quot;card&quot;: { # The card response message. # The card response.
1826 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1827 { # Contains information about a button.
1828 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1829 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1830 },
1831 ],
1832 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1833 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1834 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1835 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001836 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1837 &quot;items&quot;: [ # Required. Carousel items.
1838 { # An item in the carousel.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001839 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1840 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1841 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1842 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1843 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001844 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001845 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001846 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1847 &quot;A String&quot;,
1848 ],
1849 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001850 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001851 },
1852 ],
1853 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001854 &quot;image&quot;: { # The image response message. # The image response.
1855 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1856 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1857 },
1858 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
1859 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1860 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1861 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001862 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001863 &quot;items&quot;: [ # Required. List items.
1864 { # An item in the list.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001865 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001866 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1867 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1868 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1869 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001870 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001871 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001872 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1873 &quot;A String&quot;,
1874 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001875 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001876 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001877 },
1878 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001879 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001880 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001881 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001882 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1883 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1884 { # Response media object for media content card.
1885 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1886 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1887 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1888 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1889 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1890 },
1891 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1892 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1893 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1894 },
1895 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001896 },
1897 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001898 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001899 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001900 &quot;payload&quot;: { # A custom platform-specific response.
1901 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1902 },
1903 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001904 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001905 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1906 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001907 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001908 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001909 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001910 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
1911 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1912 { # The simple response message containing speech or text.
1913 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1914 &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.
1915 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001916 },
1917 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001918 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001919 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1920 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1921 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1922 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1923 },
1924 ],
1925 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001926 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1927 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1928 { # The button object that appears at the bottom of a card.
1929 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1930 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001931 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001932 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001933 },
1934 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001935 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1936 { # Column properties for TableCard.
1937 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1938 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1939 },
1940 ],
1941 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1942 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1943 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1944 },
1945 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1946 { # Row of TableCard.
1947 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1948 { # Cell of TableCardRow.
1949 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1950 },
1951 ],
1952 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1953 },
1954 ],
1955 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1956 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001957 },
1958 &quot;text&quot;: { # The text response message. # The text response.
1959 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001960 &quot;A String&quot;,
1961 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001962 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001963 },
1964 ],
1965 &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.
1966 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
1967 &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/`.
1968 { # 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).
1969 &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.
1970 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
1971 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001972 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001973 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001974 },
1975 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001976 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1977 { # Represents intent parameters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001978 &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`.
1979 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1980 &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.
1981 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1982 &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.
1983 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001984 &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.
1985 &quot;A String&quot;,
1986 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001987 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001988 },
1989 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001990 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
1991 &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.
1992 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1993 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
1994 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1995 { # Represents an example that the agent is trained on.
1996 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1997 &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.
1998 { # Represents a part of a training phrase.
1999 &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.
2000 &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.
2001 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2002 &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.
2003 },
2004 ],
2005 &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.
2006 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2007 },
2008 ],
2009 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002010}
2011
Bu Sun Kim65020912020-05-20 12:08:20 -07002012 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002013 Allowed values
2014 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2015 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002016 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).
2017 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002018 x__xgafv: string, V1 error format.
2019 Allowed values
2020 1 - v1 error format
2021 2 - v2 error format
2022
2023Returns:
2024 An object of the form:
2025
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002026 { # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002027 &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.
2028 &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).
2029 &quot;A String&quot;,
2030 ],
2031 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2032 &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.
2033 &quot;A String&quot;,
2034 ],
2035 &quot;followupIntentInfo&quot;: [ # Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
2036 { # Represents a single followup intent in the chain.
2037 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2038 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2039 },
2040 ],
2041 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
2042 &quot;A String&quot;,
2043 ],
2044 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2045 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2046 { # A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
2047 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2048 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2049 { # The button object that appears at the bottom of a card.
2050 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2051 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002052 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002053 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002054 },
2055 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002056 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2057 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2058 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2059 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2060 },
2061 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2062 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002063 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002064 &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.
2065 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2066 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2067 { # Browsing carousel tile
2068 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2069 &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.
2070 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2071 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2072 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2073 },
2074 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2075 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2076 &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.
2077 },
2078 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2079 },
2080 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002081 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002082 &quot;card&quot;: { # The card response message. # The card response.
2083 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2084 { # Contains information about a button.
2085 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2086 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2087 },
2088 ],
2089 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2090 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2091 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2092 },
2093 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2094 &quot;items&quot;: [ # Required. Carousel items.
2095 { # An item in the carousel.
2096 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2097 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2098 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2099 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2100 },
2101 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2102 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2103 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2104 &quot;A String&quot;,
2105 ],
2106 },
2107 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2108 },
2109 ],
2110 },
2111 &quot;image&quot;: { # The image response message. # The image response.
2112 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2113 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2114 },
2115 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # The link out suggestion chip for Actions on Google.
2116 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2117 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2118 },
2119 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
2120 &quot;items&quot;: [ # Required. List items.
2121 { # An item in the list.
2122 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2123 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2124 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2125 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2126 },
2127 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2128 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2129 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2130 &quot;A String&quot;,
2131 ],
2132 },
2133 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2134 },
2135 ],
2136 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2137 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2138 },
2139 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2140 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2141 { # Response media object for media content card.
2142 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2143 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2144 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2145 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2146 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2147 },
2148 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2149 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2150 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2151 },
2152 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2153 },
2154 ],
2155 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2156 },
2157 &quot;payload&quot;: { # A custom platform-specific response.
2158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2159 },
2160 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2161 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2162 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002163 &quot;A String&quot;,
2164 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002165 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002167 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # The voice and text-only responses for Actions on Google.
2168 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2169 { # The simple response message containing speech or text.
2170 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2171 &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.
2172 &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.
2173 },
2174 ],
2175 },
2176 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2177 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2178 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2179 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2180 },
2181 ],
2182 },
2183 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2184 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2185 { # The button object that appears at the bottom of a card.
2186 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2187 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2188 },
2189 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2190 },
2191 ],
2192 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2193 { # Column properties for TableCard.
2194 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2195 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2196 },
2197 ],
2198 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2199 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2200 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2201 },
2202 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2203 { # Row of TableCard.
2204 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2205 { # Cell of TableCardRow.
2206 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2207 },
2208 ],
2209 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2210 },
2211 ],
2212 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2213 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2214 },
2215 &quot;text&quot;: { # The text response message. # The text response.
2216 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2217 &quot;A String&quot;,
2218 ],
2219 },
2220 },
2221 ],
2222 &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.
2223 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
2224 &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/`.
2225 { # 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).
2226 &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.
2227 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`, or `projects//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`
2228 &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
2229 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2230 },
2231 },
2232 ],
2233 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2234 { # Represents intent parameters.
2235 &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`.
2236 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2237 &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.
2238 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2239 &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.
2240 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2241 &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.
2242 &quot;A String&quot;,
2243 ],
2244 &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`.
2245 },
2246 ],
2247 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Read-only after creation. 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/`.
2248 &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.
2249 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2250 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects//agent/intents/`.
2251 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2252 { # Represents an example that the agent is trained on.
2253 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2254 &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.
2255 { # Represents a part of a training phrase.
2256 &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.
2257 &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.
2258 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2259 &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.
2260 },
2261 ],
2262 &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.
2263 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2264 },
2265 ],
2266 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2267}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002268</div>
2269
2270</body></html>