blob: 1467cc0a0e866cb3e406e644ca98dc93e633d9bf [file] [log] [blame]
yoshi-code-bota8b35b92021-03-31 13:33:30 -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.locations.html">locations</a> . <a href="dialogflow_v2.projects.locations.agent.html">agent</a> . <a href="dialogflow_v2.projects.locations.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Deletes intents in the specified agent. Operation </p>
80<p class="toc_element">
81 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
82<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>
86<p class="toc_element">
87 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
88<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">
93 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
96 <code><a href="#list">list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97<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">
102 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
107 <pre>Deletes intents in the specified agent. Operation
108
109Args:
110 parent: string, Required. The name of the agent to delete all entities types for. Format: `projects//agent`. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
115 &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;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
123 &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.
124 &quot;A String&quot;,
125 ],
126 &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.
127 { # Represents a single followup intent in the chain.
128 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
129 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
130 },
131 ],
132 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
133 &quot;A String&quot;,
134 ],
135 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
136 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
137 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
138 { # 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).
139 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
140 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
141 { # The button object that appears at the bottom of a card.
142 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
143 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
144 },
145 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
146 },
147 ],
148 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
149 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
150 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
151 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
152 },
153 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
154 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
155 },
156 &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.
157 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
158 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
159 { # Browsing carousel tile
160 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
161 &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.
162 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
163 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
164 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
165 },
166 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
167 &quot;url&quot;: &quot;A String&quot;, # Required. URL
168 &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.
169 },
170 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
171 },
172 ],
173 },
174 &quot;card&quot;: { # The card response message. # The card response.
175 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
176 { # Contains information about a button.
177 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
178 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
179 },
180 ],
181 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
182 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
183 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
184 },
185 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
186 &quot;items&quot;: [ # Required. Carousel items.
187 { # An item in the carousel.
188 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
189 &quot;image&quot;: { # The image response message. # Optional. The image to display.
190 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
191 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
192 },
193 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
194 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
195 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
196 &quot;A String&quot;,
197 ],
198 },
199 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
200 },
201 ],
202 },
203 &quot;image&quot;: { # The image response message. # The image response.
204 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
205 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
206 },
207 &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.
208 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
209 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
210 },
211 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
212 &quot;items&quot;: [ # Required. List items.
213 { # An item in the list.
214 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
215 &quot;image&quot;: { # The image response message. # Optional. The image to display.
216 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
217 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
218 },
219 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
220 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
221 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
222 &quot;A String&quot;,
223 ],
224 },
225 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
226 },
227 ],
228 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
229 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
230 },
231 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
232 &quot;mediaObjects&quot;: [ # Required. List of media objects.
233 { # Response media object for media content card.
234 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
235 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
236 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
237 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
238 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
239 },
240 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
241 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
242 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
243 },
244 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
245 },
246 ],
247 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
248 },
249 &quot;payload&quot;: { # A custom platform-specific response.
250 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
251 },
252 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
253 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
254 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
255 &quot;A String&quot;,
256 ],
257 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
258 },
259 &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.
260 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
261 { # The simple response message containing speech or text.
262 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
263 &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.
264 &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.
265 },
266 ],
267 },
268 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
269 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
270 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
271 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
272 },
273 ],
274 },
275 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
276 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
277 { # The button object that appears at the bottom of a card.
278 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
279 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
280 },
281 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
282 },
283 ],
284 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
285 { # Column properties for TableCard.
286 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
287 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
288 },
289 ],
290 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
291 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
292 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
293 },
294 &quot;rows&quot;: [ # Optional. Rows in this table of data.
295 { # Row of TableCard.
296 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
297 { # Cell of TableCardRow.
298 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
299 },
300 ],
301 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
302 },
303 ],
304 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
305 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
306 },
307 &quot;text&quot;: { # The text response message. # The text response.
308 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
309 &quot;A String&quot;,
310 ],
311 },
312 },
313 ],
314 &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.
315 &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/`.
316 &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/`.
317 { # 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).
318 &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.
319 &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`
320 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
321 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
322 },
323 },
324 ],
325 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
326 { # Represents intent parameters.
327 &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`.
328 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
329 &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.
330 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
331 &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.
332 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
333 &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.
334 &quot;A String&quot;,
335 ],
336 &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`.
337 },
338 ],
339 &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/`.
340 &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.
341 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
342 &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/`.
343 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
344 { # Represents an example that the agent is trained on.
345 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
346 &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.
347 { # Represents a part of a training phrase.
348 &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.
349 &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.
350 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
351 &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.
352 },
353 ],
354 &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.
355 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
356 },
357 ],
358 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
359 },
360 ],
361}
362
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368Returns:
369 An object of the form:
370
371 { # This resource represents a long-running operation that is the result of a network API call.
372 &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.
373 &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.
374 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
375 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
376 {
377 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
378 },
379 ],
380 &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.
381 },
382 &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.
383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
384 },
385 &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}`.
386 &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`.
387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
388 },
389}</pre>
390</div>
391
392<div class="method">
393 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
394 <pre>Updates/Creates multiple intents in the specified agent. Operation
395
396Args:
397 parent: string, Required. The name of the agent to update or create intents in. Format: `projects//agent`. (required)
398 body: object, The request body.
399 The object takes the form of:
400
401{
402 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
403 &quot;intents&quot;: [ # A collection of intents.
404 { # 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).
405 &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.
406 &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).
407 &quot;A String&quot;,
408 ],
409 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
410 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
411 &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.
412 &quot;A String&quot;,
413 ],
414 &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.
415 { # Represents a single followup intent in the chain.
416 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
417 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
418 },
419 ],
420 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
421 &quot;A String&quot;,
422 ],
423 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
424 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
425 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
426 { # 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).
427 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
428 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
429 { # The button object that appears at the bottom of a card.
430 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
431 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
432 },
433 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
434 },
435 ],
436 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
437 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
438 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
439 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
440 },
441 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
442 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
443 },
444 &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.
445 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
446 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
447 { # Browsing carousel tile
448 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
449 &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.
450 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
451 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
452 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
453 },
454 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
455 &quot;url&quot;: &quot;A String&quot;, # Required. URL
456 &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.
457 },
458 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
459 },
460 ],
461 },
462 &quot;card&quot;: { # The card response message. # The card response.
463 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
464 { # Contains information about a button.
465 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
466 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
467 },
468 ],
469 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
470 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
471 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
472 },
473 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
474 &quot;items&quot;: [ # Required. Carousel items.
475 { # An item in the carousel.
476 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
477 &quot;image&quot;: { # The image response message. # Optional. The image to display.
478 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
479 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
480 },
481 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
482 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
483 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
484 &quot;A String&quot;,
485 ],
486 },
487 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
488 },
489 ],
490 },
491 &quot;image&quot;: { # The image response message. # The image response.
492 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
493 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
494 },
495 &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.
496 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
497 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
498 },
499 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
500 &quot;items&quot;: [ # Required. List items.
501 { # An item in the list.
502 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
503 &quot;image&quot;: { # The image response message. # Optional. The image to display.
504 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
505 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
506 },
507 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
508 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
509 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
510 &quot;A String&quot;,
511 ],
512 },
513 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
514 },
515 ],
516 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
517 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
518 },
519 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
520 &quot;mediaObjects&quot;: [ # Required. List of media objects.
521 { # Response media object for media content card.
522 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
523 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
524 &quot;icon&quot;: { # The image response message. # Optional. Icon 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;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
529 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
530 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
531 },
532 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
533 },
534 ],
535 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
536 },
537 &quot;payload&quot;: { # A custom platform-specific response.
538 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
539 },
540 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
541 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
542 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
543 &quot;A String&quot;,
544 ],
545 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
546 },
547 &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.
548 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
549 { # The simple response message containing speech or text.
550 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
551 &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.
552 &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.
553 },
554 ],
555 },
556 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
557 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
558 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
559 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
560 },
561 ],
562 },
563 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
564 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
565 { # The button object that appears at the bottom of a card.
566 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
567 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
568 },
569 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
570 },
571 ],
572 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
573 { # Column properties for TableCard.
574 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
575 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
576 },
577 ],
578 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
579 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
580 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
581 },
582 &quot;rows&quot;: [ # Optional. Rows in this table of data.
583 { # Row of TableCard.
584 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
585 { # Cell of TableCardRow.
586 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
587 },
588 ],
589 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
590 },
591 ],
592 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
593 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
594 },
595 &quot;text&quot;: { # The text response message. # The text response.
596 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
597 &quot;A String&quot;,
598 ],
599 },
600 },
601 ],
602 &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.
603 &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/`.
604 &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/`.
605 { # 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).
606 &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.
607 &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`
608 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
609 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
610 },
611 },
612 ],
613 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
614 { # Represents intent parameters.
615 &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`.
616 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
617 &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.
618 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
619 &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.
620 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
621 &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.
622 &quot;A String&quot;,
623 ],
624 &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`.
625 },
626 ],
627 &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/`.
628 &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.
629 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
630 &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/`.
631 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
632 { # Represents an example that the agent is trained on.
633 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
634 &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.
635 { # Represents a part of a training phrase.
636 &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.
637 &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.
638 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
639 &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.
640 },
641 ],
642 &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.
643 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
644 },
645 ],
646 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
647 },
648 ],
649 },
650 &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;.
651 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
652 &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).
653 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
654}
655
656 x__xgafv: string, V1 error format.
657 Allowed values
658 1 - v1 error format
659 2 - v2 error format
660
661Returns:
662 An object of the form:
663
664 { # This resource represents a long-running operation that is the result of a network API call.
665 &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.
666 &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.
667 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
668 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
669 {
670 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
671 },
672 ],
673 &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.
674 },
675 &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.
676 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
677 },
678 &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}`.
679 &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`.
680 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
681 },
682}</pre>
683</div>
684
685<div class="method">
686 <code class="details" id="close">close()</code>
687 <pre>Close httplib2 connections.</pre>
688</div>
689
690<div class="method">
691 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
692 <pre>Creates an intent in the specified agent.
693
694Args:
695 parent: string, Required. The agent to create a intent for. Format: `projects//agent`. (required)
696 body: object, The request body.
697 The object takes the form of:
698
699{ # 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).
700 &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.
701 &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).
702 &quot;A String&quot;,
703 ],
704 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
705 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
706 &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.
707 &quot;A String&quot;,
708 ],
709 &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.
710 { # Represents a single followup intent in the chain.
711 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
712 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
713 },
714 ],
715 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
716 &quot;A String&quot;,
717 ],
718 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
719 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
720 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
721 { # 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).
722 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
723 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
724 { # The button object that appears at the bottom of a card.
725 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
726 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
727 },
728 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
729 },
730 ],
731 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
732 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
733 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
734 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
735 },
736 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
737 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
738 },
739 &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.
740 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
741 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
742 { # Browsing carousel tile
743 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
744 &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.
745 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
746 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
747 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
748 },
749 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
750 &quot;url&quot;: &quot;A String&quot;, # Required. URL
751 &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.
752 },
753 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
754 },
755 ],
756 },
757 &quot;card&quot;: { # The card response message. # The card response.
758 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
759 { # Contains information about a button.
760 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
761 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
762 },
763 ],
764 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
765 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
766 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
767 },
768 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
769 &quot;items&quot;: [ # Required. Carousel items.
770 { # An item in the carousel.
771 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
772 &quot;image&quot;: { # The image response message. # Optional. The image to display.
773 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
774 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
775 },
776 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
777 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
778 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
779 &quot;A String&quot;,
780 ],
781 },
782 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
783 },
784 ],
785 },
786 &quot;image&quot;: { # The image response message. # The image response.
787 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
788 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
789 },
790 &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.
791 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
792 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
793 },
794 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
795 &quot;items&quot;: [ # Required. List items.
796 { # An item in the list.
797 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
798 &quot;image&quot;: { # The image response message. # Optional. The image to display.
799 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
800 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
801 },
802 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
803 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
804 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
805 &quot;A String&quot;,
806 ],
807 },
808 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
809 },
810 ],
811 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
812 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
813 },
814 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
815 &quot;mediaObjects&quot;: [ # Required. List of media objects.
816 { # Response media object for media content card.
817 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
818 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
819 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
820 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
821 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
822 },
823 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
824 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
825 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
826 },
827 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
828 },
829 ],
830 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
831 },
832 &quot;payload&quot;: { # A custom platform-specific response.
833 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
834 },
835 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
836 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
837 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
838 &quot;A String&quot;,
839 ],
840 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
841 },
842 &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.
843 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
844 { # The simple response message containing speech or text.
845 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
846 &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.
847 &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.
848 },
849 ],
850 },
851 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
852 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
853 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
854 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
855 },
856 ],
857 },
858 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
859 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
860 { # The button object that appears at the bottom of a card.
861 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
862 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
863 },
864 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
865 },
866 ],
867 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
868 { # Column properties for TableCard.
869 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
870 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
871 },
872 ],
873 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
874 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
875 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
876 },
877 &quot;rows&quot;: [ # Optional. Rows in this table of data.
878 { # Row of TableCard.
879 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
880 { # Cell of TableCardRow.
881 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
882 },
883 ],
884 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
885 },
886 ],
887 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
888 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
889 },
890 &quot;text&quot;: { # The text response message. # The text response.
891 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
892 &quot;A String&quot;,
893 ],
894 },
895 },
896 ],
897 &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.
898 &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/`.
899 &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/`.
900 { # 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).
901 &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.
902 &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`
903 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
904 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
905 },
906 },
907 ],
908 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
909 { # Represents intent parameters.
910 &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`.
911 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
912 &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.
913 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
914 &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.
915 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
916 &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.
917 &quot;A String&quot;,
918 ],
919 &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`.
920 },
921 ],
922 &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/`.
923 &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.
924 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
925 &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/`.
926 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
927 { # Represents an example that the agent is trained on.
928 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
929 &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.
930 { # Represents a part of a training phrase.
931 &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.
932 &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.
933 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
934 &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.
935 },
936 ],
937 &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.
938 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
939 },
940 ],
941 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
942}
943
944 intentView: string, Optional. The resource view to apply to the returned intent.
945 Allowed values
946 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
947 INTENT_VIEW_FULL - All fields are populated.
948 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).
949 x__xgafv: string, V1 error format.
950 Allowed values
951 1 - v1 error format
952 2 - v2 error format
953
954Returns:
955 An object of the form:
956
957 { # 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).
958 &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.
959 &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).
960 &quot;A String&quot;,
961 ],
962 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
963 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
964 &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.
965 &quot;A String&quot;,
966 ],
967 &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.
968 { # Represents a single followup intent in the chain.
969 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
970 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
971 },
972 ],
973 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
974 &quot;A String&quot;,
975 ],
976 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
977 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
978 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
979 { # 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).
980 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
981 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
982 { # The button object that appears at the bottom of a card.
983 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
984 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
985 },
986 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
987 },
988 ],
989 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
990 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
991 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
992 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
993 },
994 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
995 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
996 },
997 &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.
998 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
999 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1000 { # Browsing carousel tile
1001 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1002 &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.
1003 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1004 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1005 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1006 },
1007 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1008 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1009 &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.
1010 },
1011 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1012 },
1013 ],
1014 },
1015 &quot;card&quot;: { # The card response message. # The card response.
1016 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1017 { # Contains information about a button.
1018 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1019 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1020 },
1021 ],
1022 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1023 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1024 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1025 },
1026 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1027 &quot;items&quot;: [ # Required. Carousel items.
1028 { # An item in the carousel.
1029 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1030 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1031 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1032 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1033 },
1034 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1035 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1036 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1037 &quot;A String&quot;,
1038 ],
1039 },
1040 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1041 },
1042 ],
1043 },
1044 &quot;image&quot;: { # The image response message. # The image response.
1045 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1046 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1047 },
1048 &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.
1049 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1050 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1051 },
1052 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1053 &quot;items&quot;: [ # Required. List items.
1054 { # An item in the list.
1055 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1056 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1057 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1058 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1059 },
1060 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1061 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1062 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1063 &quot;A String&quot;,
1064 ],
1065 },
1066 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1067 },
1068 ],
1069 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1070 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1071 },
1072 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1073 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1074 { # Response media object for media content card.
1075 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1076 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1077 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1078 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1079 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1080 },
1081 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1082 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1083 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1084 },
1085 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1086 },
1087 ],
1088 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1089 },
1090 &quot;payload&quot;: { # A custom platform-specific response.
1091 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1092 },
1093 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1094 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1095 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1096 &quot;A String&quot;,
1097 ],
1098 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1099 },
1100 &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.
1101 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1102 { # The simple response message containing speech or text.
1103 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1104 &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.
1105 &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.
1106 },
1107 ],
1108 },
1109 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1110 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1111 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1112 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1113 },
1114 ],
1115 },
1116 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1117 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1118 { # The button object that appears at the bottom of a card.
1119 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1120 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1121 },
1122 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1123 },
1124 ],
1125 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1126 { # Column properties for TableCard.
1127 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1128 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1129 },
1130 ],
1131 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1132 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1133 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1134 },
1135 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1136 { # Row of TableCard.
1137 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1138 { # Cell of TableCardRow.
1139 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1140 },
1141 ],
1142 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1143 },
1144 ],
1145 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1146 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1147 },
1148 &quot;text&quot;: { # The text response message. # The text response.
1149 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1150 &quot;A String&quot;,
1151 ],
1152 },
1153 },
1154 ],
1155 &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.
1156 &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/`.
1157 &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/`.
1158 { # 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).
1159 &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.
1160 &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`
1161 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1163 },
1164 },
1165 ],
1166 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1167 { # Represents intent parameters.
1168 &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`.
1169 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1170 &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.
1171 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1172 &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.
1173 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1174 &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.
1175 &quot;A String&quot;,
1176 ],
1177 &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`.
1178 },
1179 ],
1180 &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/`.
1181 &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.
1182 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1183 &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/`.
1184 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1185 { # Represents an example that the agent is trained on.
1186 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1187 &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.
1188 { # Represents a part of a training phrase.
1189 &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.
1190 &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.
1191 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1192 &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.
1193 },
1194 ],
1195 &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.
1196 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1197 },
1198 ],
1199 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1200}</pre>
1201</div>
1202
1203<div class="method">
1204 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1205 <pre>Deletes the specified intent and its direct or indirect followup intents.
1206
1207Args:
1208 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)
1209 x__xgafv: string, V1 error format.
1210 Allowed values
1211 1 - v1 error format
1212 2 - v2 error format
1213
1214Returns:
1215 An object of the form:
1216
1217 { # 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 `{}`.
1218}</pre>
1219</div>
1220
1221<div class="method">
1222 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
1223 <pre>Retrieves the specified intent.
1224
1225Args:
1226 name: string, Required. The name of the intent. Format: `projects//agent/intents/`. (required)
1227 intentView: string, Optional. The resource view to apply to the returned intent.
1228 Allowed values
1229 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1230 INTENT_VIEW_FULL - All fields are populated.
1231 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).
1232 x__xgafv: string, V1 error format.
1233 Allowed values
1234 1 - v1 error format
1235 2 - v2 error format
1236
1237Returns:
1238 An object of the form:
1239
1240 { # 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).
1241 &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.
1242 &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).
1243 &quot;A String&quot;,
1244 ],
1245 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1246 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
1247 &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.
1248 &quot;A String&quot;,
1249 ],
1250 &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.
1251 { # Represents a single followup intent in the chain.
1252 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1253 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1254 },
1255 ],
1256 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1257 &quot;A String&quot;,
1258 ],
1259 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1260 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
1261 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1262 { # 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).
1263 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1264 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1265 { # The button object that appears at the bottom of a card.
1266 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1267 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1268 },
1269 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1270 },
1271 ],
1272 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1273 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1274 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1275 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1276 },
1277 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1278 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1279 },
1280 &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.
1281 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1282 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1283 { # Browsing carousel tile
1284 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1285 &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.
1286 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1287 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1288 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1289 },
1290 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1291 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1292 &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.
1293 },
1294 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1295 },
1296 ],
1297 },
1298 &quot;card&quot;: { # The card response message. # The card response.
1299 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1300 { # Contains information about a button.
1301 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1302 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1303 },
1304 ],
1305 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1306 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1307 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1308 },
1309 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1310 &quot;items&quot;: [ # Required. Carousel items.
1311 { # An item in the carousel.
1312 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1313 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1314 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1315 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1316 },
1317 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1318 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1319 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1320 &quot;A String&quot;,
1321 ],
1322 },
1323 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1324 },
1325 ],
1326 },
1327 &quot;image&quot;: { # The image response message. # The image response.
1328 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1329 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1330 },
1331 &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.
1332 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1333 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1334 },
1335 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1336 &quot;items&quot;: [ # Required. List items.
1337 { # An item in the list.
1338 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1339 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1340 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1341 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1342 },
1343 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1344 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1345 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1346 &quot;A String&quot;,
1347 ],
1348 },
1349 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1350 },
1351 ],
1352 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1353 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1354 },
1355 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1356 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1357 { # Response media object for media content card.
1358 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1359 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1360 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1361 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1362 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1363 },
1364 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1365 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1366 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1367 },
1368 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1369 },
1370 ],
1371 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1372 },
1373 &quot;payload&quot;: { # A custom platform-specific response.
1374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1375 },
1376 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1377 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1378 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1379 &quot;A String&quot;,
1380 ],
1381 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1382 },
1383 &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.
1384 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1385 { # The simple response message containing speech or text.
1386 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1387 &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.
1388 &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.
1389 },
1390 ],
1391 },
1392 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1393 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1394 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1395 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1396 },
1397 ],
1398 },
1399 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1400 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1401 { # The button object that appears at the bottom of a card.
1402 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1403 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1404 },
1405 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1406 },
1407 ],
1408 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1409 { # Column properties for TableCard.
1410 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1411 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1412 },
1413 ],
1414 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1415 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1416 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1417 },
1418 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1419 { # Row of TableCard.
1420 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1421 { # Cell of TableCardRow.
1422 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1423 },
1424 ],
1425 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1426 },
1427 ],
1428 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1429 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1430 },
1431 &quot;text&quot;: { # The text response message. # The text response.
1432 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1433 &quot;A String&quot;,
1434 ],
1435 },
1436 },
1437 ],
1438 &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.
1439 &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/`.
1440 &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/`.
1441 { # 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).
1442 &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.
1443 &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`
1444 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1446 },
1447 },
1448 ],
1449 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1450 { # Represents intent parameters.
1451 &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`.
1452 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1453 &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.
1454 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1455 &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.
1456 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1457 &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.
1458 &quot;A String&quot;,
1459 ],
1460 &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`.
1461 },
1462 ],
1463 &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/`.
1464 &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.
1465 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1466 &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/`.
1467 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1468 { # Represents an example that the agent is trained on.
1469 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1470 &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.
1471 { # Represents a part of a training phrase.
1472 &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.
1473 &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.
1474 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1475 &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.
1476 },
1477 ],
1478 &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.
1479 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1480 },
1481 ],
1482 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1483}</pre>
1484</div>
1485
1486<div class="method">
1487 <code class="details" id="list">list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
1488 <pre>Returns the list of all intents in the specified agent.
1489
1490Args:
yoshi-code-bot7700bbf2021-05-20 04:44:03 -07001491 parent: string, Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment. (required)
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001492 intentView: string, Optional. The resource view to apply to the returned intent.
1493 Allowed values
1494 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1495 INTENT_VIEW_FULL - All fields are populated.
1496 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).
1497 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
1498 pageToken: string, Optional. The next_page_token value returned from a previous list request.
1499 x__xgafv: string, V1 error format.
1500 Allowed values
1501 1 - v1 error format
1502 2 - v2 error format
1503
1504Returns:
1505 An object of the form:
1506
1507 { # The response message for Intents.ListIntents.
1508 &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.
1509 { # 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).
1510 &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.
1511 &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).
1512 &quot;A String&quot;,
1513 ],
1514 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1515 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
1516 &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.
1517 &quot;A String&quot;,
1518 ],
1519 &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.
1520 { # Represents a single followup intent in the chain.
1521 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1522 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1523 },
1524 ],
1525 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1526 &quot;A String&quot;,
1527 ],
1528 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1529 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
1530 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1531 { # 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).
1532 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1533 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1534 { # The button object that appears at the bottom of a card.
1535 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1536 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1537 },
1538 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1539 },
1540 ],
1541 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1542 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1543 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1544 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1545 },
1546 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1547 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1548 },
1549 &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.
1550 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1551 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1552 { # Browsing carousel tile
1553 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1554 &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.
1555 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1556 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1557 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1558 },
1559 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1560 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1561 &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.
1562 },
1563 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1564 },
1565 ],
1566 },
1567 &quot;card&quot;: { # The card response message. # The card response.
1568 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1569 { # Contains information about a button.
1570 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1571 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1572 },
1573 ],
1574 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1575 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1576 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1577 },
1578 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1579 &quot;items&quot;: [ # Required. Carousel items.
1580 { # An item in the carousel.
1581 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1582 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1583 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1584 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1585 },
1586 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1587 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1588 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1589 &quot;A String&quot;,
1590 ],
1591 },
1592 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1593 },
1594 ],
1595 },
1596 &quot;image&quot;: { # The image response message. # The image response.
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;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.
1601 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1602 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1603 },
1604 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1605 &quot;items&quot;: [ # Required. List items.
1606 { # An item in the list.
1607 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1608 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1609 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1610 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1611 },
1612 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1613 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1614 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1615 &quot;A String&quot;,
1616 ],
1617 },
1618 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1619 },
1620 ],
1621 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1622 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1623 },
1624 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1625 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1626 { # Response media object for media content card.
1627 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1628 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1629 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1630 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1631 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1632 },
1633 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1634 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1635 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1636 },
1637 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1638 },
1639 ],
1640 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1641 },
1642 &quot;payload&quot;: { # A custom platform-specific response.
1643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1644 },
1645 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1646 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1647 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1648 &quot;A String&quot;,
1649 ],
1650 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1651 },
1652 &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.
1653 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1654 { # The simple response message containing speech or text.
1655 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1656 &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.
1657 &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.
1658 },
1659 ],
1660 },
1661 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1662 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1663 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1664 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1665 },
1666 ],
1667 },
1668 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1669 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1670 { # The button object that appears at the bottom of a card.
1671 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1672 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1673 },
1674 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1675 },
1676 ],
1677 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1678 { # Column properties for TableCard.
1679 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1680 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1681 },
1682 ],
1683 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1684 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1685 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1686 },
1687 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1688 { # Row of TableCard.
1689 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1690 { # Cell of TableCardRow.
1691 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1692 },
1693 ],
1694 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1695 },
1696 ],
1697 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1698 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1699 },
1700 &quot;text&quot;: { # The text response message. # The text response.
1701 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1702 &quot;A String&quot;,
1703 ],
1704 },
1705 },
1706 ],
1707 &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.
1708 &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/`.
1709 &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/`.
1710 { # 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).
1711 &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.
1712 &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`
1713 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1714 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1715 },
1716 },
1717 ],
1718 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1719 { # Represents intent parameters.
1720 &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`.
1721 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1722 &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.
1723 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1724 &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.
1725 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1726 &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.
1727 &quot;A String&quot;,
1728 ],
1729 &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`.
1730 },
1731 ],
1732 &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/`.
1733 &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.
1734 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1735 &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/`.
1736 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1737 { # Represents an example that the agent is trained on.
1738 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1739 &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.
1740 { # Represents a part of a training phrase.
1741 &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.
1742 &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.
1743 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1744 &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.
1745 },
1746 ],
1747 &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.
1748 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1749 },
1750 ],
1751 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1752 },
1753 ],
1754 &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.
1755}</pre>
1756</div>
1757
1758<div class="method">
1759 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1760 <pre>Retrieves the next page of results.
1761
1762Args:
1763 previous_request: The request for the previous page. (required)
1764 previous_response: The response from the request for the previous page. (required)
1765
1766Returns:
1767 A request object that you can call &#x27;execute()&#x27; on to request the next
1768 page. Returns None if there are no more items in the collection.
1769 </pre>
1770</div>
1771
1772<div class="method">
1773 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
1774 <pre>Updates the specified intent.
1775
1776Args:
1777 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`. (required)
1778 body: object, The request body.
1779 The object takes the form of:
1780
1781{ # 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).
1782 &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.
1783 &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).
1784 &quot;A String&quot;,
1785 ],
1786 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1787 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
1788 &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.
1789 &quot;A String&quot;,
1790 ],
1791 &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.
1792 { # Represents a single followup intent in the chain.
1793 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1794 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1795 },
1796 ],
1797 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
1798 &quot;A String&quot;,
1799 ],
1800 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1801 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
1802 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1803 { # 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).
1804 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
1805 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1806 { # The button object that appears at the bottom of a card.
1807 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1808 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1809 },
1810 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1811 },
1812 ],
1813 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1814 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1815 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1816 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1817 },
1818 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1819 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1820 },
1821 &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.
1822 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1823 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1824 { # Browsing carousel tile
1825 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1826 &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.
1827 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1828 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1829 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1830 },
1831 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1832 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1833 &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.
1834 },
1835 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1836 },
1837 ],
1838 },
1839 &quot;card&quot;: { # The card response message. # The card response.
1840 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1841 { # Contains information about a button.
1842 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1843 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1844 },
1845 ],
1846 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1847 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1848 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1849 },
1850 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
1851 &quot;items&quot;: [ # Required. Carousel items.
1852 { # An item in the carousel.
1853 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1854 &quot;image&quot;: { # The image response message. # Optional. The image to display.
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;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1859 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1860 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1861 &quot;A String&quot;,
1862 ],
1863 },
1864 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1865 },
1866 ],
1867 },
1868 &quot;image&quot;: { # The image response message. # The image response.
1869 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1870 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1871 },
1872 &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.
1873 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1874 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1875 },
1876 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
1877 &quot;items&quot;: [ # Required. List items.
1878 { # An item in the list.
1879 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1880 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1881 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1882 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1883 },
1884 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1885 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1886 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1887 &quot;A String&quot;,
1888 ],
1889 },
1890 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1891 },
1892 ],
1893 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1894 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1895 },
1896 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1897 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1898 { # Response media object for media content card.
1899 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1900 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1901 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1902 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1903 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1904 },
1905 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1906 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1907 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1908 },
1909 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1910 },
1911 ],
1912 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1913 },
1914 &quot;payload&quot;: { # A custom platform-specific response.
1915 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1916 },
1917 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1918 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
1919 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1920 &quot;A String&quot;,
1921 ],
1922 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1923 },
1924 &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.
1925 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1926 { # The simple response message containing speech or text.
1927 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1928 &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.
1929 &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.
1930 },
1931 ],
1932 },
1933 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
1934 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1935 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1936 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1937 },
1938 ],
1939 },
1940 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1941 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1942 { # The button object that appears at the bottom of a card.
1943 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1944 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1945 },
1946 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1947 },
1948 ],
1949 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1950 { # Column properties for TableCard.
1951 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1952 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1953 },
1954 ],
1955 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1956 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
1957 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1958 },
1959 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1960 { # Row of TableCard.
1961 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1962 { # Cell of TableCardRow.
1963 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1964 },
1965 ],
1966 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1967 },
1968 ],
1969 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1970 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1971 },
1972 &quot;text&quot;: { # The text response message. # The text response.
1973 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1974 &quot;A String&quot;,
1975 ],
1976 },
1977 },
1978 ],
1979 &quot;mlDisabled&quot;: True or False, # Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
1980 &quot;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/`.
1981 &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/`.
1982 { # 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).
1983 &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.
1984 &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`
1985 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1986 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1987 },
1988 },
1989 ],
1990 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1991 { # Represents intent parameters.
1992 &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`.
1993 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1994 &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.
1995 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1996 &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.
1997 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1998 &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.
1999 &quot;A String&quot;,
2000 ],
2001 &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`.
2002 },
2003 ],
2004 &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/`.
2005 &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.
2006 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2007 &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/`.
2008 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2009 { # Represents an example that the agent is trained on.
2010 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2011 &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.
2012 { # Represents a part of a training phrase.
2013 &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.
2014 &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.
2015 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2016 &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.
2017 },
2018 ],
2019 &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.
2020 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2021 },
2022 ],
2023 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2024}
2025
2026 intentView: string, Optional. The resource view to apply to the returned intent.
2027 Allowed values
2028 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2029 INTENT_VIEW_FULL - All fields are populated.
2030 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).
2031 updateMask: string, Optional. The mask to control which fields get updated.
2032 x__xgafv: string, V1 error format.
2033 Allowed values
2034 1 - v1 error format
2035 2 - v2 error format
2036
2037Returns:
2038 An object of the form:
2039
2040 { # 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).
2041 &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.
2042 &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).
2043 &quot;A String&quot;,
2044 ],
2045 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2046 &quot;endInteraction&quot;: True or False, # Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
2047 &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.
2048 &quot;A String&quot;,
2049 ],
2050 &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.
2051 { # Represents a single followup intent in the chain.
2052 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2053 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2054 },
2055 ],
2056 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
2057 &quot;A String&quot;,
2058 ],
2059 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2060 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
2061 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2062 { # 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).
2063 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
2064 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2065 { # The button object that appears at the bottom of a card.
2066 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2067 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2068 },
2069 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2070 },
2071 ],
2072 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2073 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2074 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2075 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2076 },
2077 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2078 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2079 },
2080 &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.
2081 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2082 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2083 { # Browsing carousel tile
2084 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2085 &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.
2086 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2087 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2088 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2089 },
2090 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2091 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2092 &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.
2093 },
2094 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2095 },
2096 ],
2097 },
2098 &quot;card&quot;: { # The card response message. # The card response.
2099 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2100 { # Contains information about a button.
2101 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2102 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2103 },
2104 ],
2105 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2106 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2107 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2108 },
2109 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
2110 &quot;items&quot;: [ # Required. Carousel items.
2111 { # An item in the carousel.
2112 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2113 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2114 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2115 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2116 },
2117 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2118 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2119 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2120 &quot;A String&quot;,
2121 ],
2122 },
2123 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2124 },
2125 ],
2126 },
2127 &quot;image&quot;: { # The image response message. # The image response.
2128 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2129 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2130 },
2131 &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.
2132 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2133 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2134 },
2135 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
2136 &quot;items&quot;: [ # Required. List items.
2137 { # An item in the list.
2138 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2139 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2140 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2141 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2142 },
2143 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2144 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2145 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2146 &quot;A String&quot;,
2147 ],
2148 },
2149 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2150 },
2151 ],
2152 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2153 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2154 },
2155 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2156 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2157 { # Response media object for media content card.
2158 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2159 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2160 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2161 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2162 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2163 },
2164 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2165 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2166 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2167 },
2168 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2169 },
2170 ],
2171 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2172 },
2173 &quot;payload&quot;: { # A custom platform-specific response.
2174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2175 },
2176 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2177 &quot;quickReplies&quot;: { # The quick replies response message. # The quick replies response.
2178 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2179 &quot;A String&quot;,
2180 ],
2181 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2182 },
2183 &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.
2184 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2185 { # The simple response message containing speech or text.
2186 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2187 &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.
2188 &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.
2189 },
2190 ],
2191 },
2192 &quot;suggestions&quot;: { # The collection of suggestions. # The suggestion chips for Actions on Google.
2193 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2194 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2195 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2196 },
2197 ],
2198 },
2199 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2200 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2201 { # The button object that appears at the bottom of a card.
2202 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2203 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2204 },
2205 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2206 },
2207 ],
2208 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2209 { # Column properties for TableCard.
2210 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2211 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2212 },
2213 ],
2214 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2215 &quot;accessibilityText&quot;: &quot;A String&quot;, # Optional. A text description of the image to be used for accessibility, e.g., screen readers.
2216 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2217 },
2218 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2219 { # Row of TableCard.
2220 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2221 { # Cell of TableCardRow.
2222 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2223 },
2224 ],
2225 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2226 },
2227 ],
2228 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2229 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2230 },
2231 &quot;text&quot;: { # The text response message. # The text response.
2232 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2233 &quot;A String&quot;,
2234 ],
2235 },
2236 },
2237 ],
2238 &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.
2239 &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/`.
2240 &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/`.
2241 { # 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).
2242 &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.
2243 &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`
2244 &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: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2246 },
2247 },
2248 ],
2249 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2250 { # Represents intent parameters.
2251 &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`.
2252 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2253 &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.
2254 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2255 &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.
2256 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2257 &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.
2258 &quot;A String&quot;,
2259 ],
2260 &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`.
2261 },
2262 ],
2263 &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/`.
2264 &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.
2265 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2266 &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/`.
2267 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2268 { # Represents an example that the agent is trained on.
2269 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2270 &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.
2271 { # Represents a part of a training phrase.
2272 &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.
2273 &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.
2274 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2275 &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.
2276 },
2277 ],
2278 &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.
2279 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2280 },
2281 ],
2282 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2283}</pre>
2284</div>
2285
2286</body></html>