blob: a96aa2ac754ae6d9b425e852c29547a298d32a8b [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Deletes intents in the specified agent. Operation </p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent. Operation </p>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080087 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Creates an intent in the specified agent.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
92<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code><a href="#get">get(name, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080096 <code><a href="#list">list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Returns the list of all intents in the specified agent.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 <pre>Deletes intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 parent: string, Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be filled in.
116 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
117 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
118 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
119 &quot;A String&quot;,
120 ],
121 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
122 &quot;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;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
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. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//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;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
137 { # Corresponds to the `Response` field in the Dialogflow console.
138 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
139 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
140 { # The button object that appears at the bottom of a card.
141 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
142 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700143 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800145 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800146 ],
147 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
148 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800149 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
150 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
151 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
153 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800155 &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.
156 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
157 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
158 { # Browsing carousel tile
159 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
160 &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.
161 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
162 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
163 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
164 },
165 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
166 &quot;url&quot;: &quot;A String&quot;, # Required. URL
167 &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.
168 },
169 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800170 },
171 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800172 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;card&quot;: { # The card response message. # Displays a card.
174 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
175 { # Optional. Contains information about a button.
176 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
177 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
178 },
179 ],
180 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
181 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
182 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
183 },
184 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
185 &quot;items&quot;: [ # Required. Carousel items.
186 { # An item in the carousel.
187 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
188 &quot;image&quot;: { # The image response message. # Optional. The image to display.
189 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
190 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
191 },
192 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
193 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
194 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
195 &quot;A String&quot;,
196 ],
197 },
198 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
199 },
200 ],
201 },
202 &quot;image&quot;: { # The image response message. # Displays an image.
203 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
204 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
205 },
206 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
207 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
208 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
209 },
210 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
211 &quot;items&quot;: [ # Required. List items.
212 { # An item in the list.
213 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
214 &quot;image&quot;: { # The image response message. # Optional. The image to display.
215 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
216 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
217 },
218 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
219 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
220 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
221 &quot;A String&quot;,
222 ],
223 },
224 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
225 },
226 ],
227 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
228 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
229 },
230 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
231 &quot;mediaObjects&quot;: [ # Required. List of media objects.
232 { # Response media object for media content card.
233 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
234 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
235 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
236 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
237 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
238 },
239 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
240 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
241 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
242 },
243 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
244 },
245 ],
246 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
247 },
248 &quot;payload&quot;: { # A custom platform-specific response.
249 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
250 },
251 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
252 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
253 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800254 &quot;A String&quot;,
255 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800256 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800257 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800258 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
259 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
260 { # Rich Business Messaging (RBM) Card content
261 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
262 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
263 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
264 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
265 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
266 },
267 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
268 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
269 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
270 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
271 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
272 },
273 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
274 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
275 },
276 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
277 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
278 },
279 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
280 },
281 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
282 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
283 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
284 },
285 },
286 ],
287 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
288 },
289 ],
290 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
291 },
292 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
293 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
294 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
295 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
296 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
297 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
298 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
299 },
300 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
301 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
302 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
303 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
304 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
305 },
306 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
307 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
308 },
309 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
310 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
311 },
312 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
313 },
314 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
315 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
316 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
317 },
318 },
319 ],
320 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
321 },
322 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
323 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
324 },
325 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
326 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
327 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
328 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
329 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
330 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
331 },
332 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
333 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
334 },
335 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
336 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
337 },
338 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
339 },
340 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
341 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
342 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
343 },
344 },
345 ],
346 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
347 },
348 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
349 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
350 { # The simple response message containing speech or text.
351 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
352 &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.
353 &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.
354 },
355 ],
356 },
357 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
358 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
359 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
360 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
361 },
362 ],
363 },
364 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
365 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
366 { # The button object that appears at the bottom of a card.
367 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
368 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
369 },
370 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
371 },
372 ],
373 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
374 { # Column properties for TableCard.
375 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
376 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
377 },
378 ],
379 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
380 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
381 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
382 },
383 &quot;rows&quot;: [ # Optional. Rows in this table of data.
384 { # Row of TableCard.
385 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
386 { # Cell of TableCardRow.
387 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
388 },
389 ],
390 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
391 },
392 ],
393 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
394 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
395 },
396 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
397 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
398 },
399 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
400 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
401 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
402 },
403 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
404 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
405 },
406 &quot;text&quot;: { # The text response message. # Returns a text response.
407 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
408 &quot;A String&quot;,
409 ],
410 },
411 },
412 ],
413 &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.
414 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
415 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
416 &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/`.
417 { # 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).
418 &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.
419 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800420 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
422 },
423 },
424 ],
425 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
426 { # Represents intent parameters.
427 &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`.
428 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
429 &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.
430 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
431 &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.
432 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
433 &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.
434 &quot;A String&quot;,
435 ],
436 &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`.
437 },
438 ],
439 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
440 &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.
441 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
442 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
443 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
444 { # Represents an example that the agent is trained on.
445 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
446 &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.
447 { # Represents a part of a training phrase.
448 &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.
449 &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.
450 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
451 &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.
452 },
453 ],
454 &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.
455 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
456 },
457 ],
458 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
459 },
460 ],
461}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462
463 x__xgafv: string, V1 error format.
464 Allowed values
465 1 - v1 error format
466 2 - v2 error format
467
468Returns:
469 An object of the form:
470
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800472 &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.
473 &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.
474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
475 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
476 {
477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
478 },
479 ],
480 &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.
481 },
482 &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.
483 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
484 },
485 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
486 &quot;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`.
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
488 },
489}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490</div>
491
492<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 <pre>Updates/Creates multiple intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495
496Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 parent: string, Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 The object takes the form of:
500
501{ # The request message for Intents.BatchUpdateIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800502 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
503 &quot;intents&quot;: [ # A collection of intents.
504 { # 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).
505 &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.
506 &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).
507 &quot;A String&quot;,
508 ],
509 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
510 &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.
511 &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.
512 &quot;A String&quot;,
513 ],
514 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
515 { # Represents a single followup intent in the chain.
516 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
517 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
518 },
519 ],
520 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
521 &quot;A String&quot;,
522 ],
523 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
524 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
525 { # Corresponds to the `Response` field in the Dialogflow console.
526 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
527 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
528 { # The button object that appears at the bottom of a card.
529 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
530 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700531 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800532 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800533 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800534 ],
535 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
536 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800537 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
538 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
539 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800540 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
541 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800543 &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.
544 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
545 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
546 { # Browsing carousel tile
547 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
548 &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.
549 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
550 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
551 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
552 },
553 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
554 &quot;url&quot;: &quot;A String&quot;, # Required. URL
555 &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.
556 },
557 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800558 },
559 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800560 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800561 &quot;card&quot;: { # The card response message. # Displays a card.
562 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
563 { # Optional. Contains information about a button.
564 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
565 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
566 },
567 ],
568 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
569 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
570 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
571 },
572 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
573 &quot;items&quot;: [ # Required. Carousel items.
574 { # An item in the carousel.
575 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
576 &quot;image&quot;: { # The image response message. # Optional. The image to display.
577 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
578 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
579 },
580 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
581 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
582 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
583 &quot;A String&quot;,
584 ],
585 },
586 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
587 },
588 ],
589 },
590 &quot;image&quot;: { # The image response message. # Displays an image.
591 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
592 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
593 },
594 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
595 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
596 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
597 },
598 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
599 &quot;items&quot;: [ # Required. List items.
600 { # An item in the list.
601 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
602 &quot;image&quot;: { # The image response message. # Optional. The image to display.
603 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
604 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
605 },
606 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
607 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
608 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
609 &quot;A String&quot;,
610 ],
611 },
612 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
613 },
614 ],
615 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
616 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
617 },
618 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
619 &quot;mediaObjects&quot;: [ # Required. List of media objects.
620 { # Response media object for media content card.
621 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
622 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
623 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
624 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
625 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
626 },
627 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
628 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
629 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
630 },
631 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
632 },
633 ],
634 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
635 },
636 &quot;payload&quot;: { # A custom platform-specific response.
637 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
638 },
639 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
640 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
641 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800642 &quot;A String&quot;,
643 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800644 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800645 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800646 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
647 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
648 { # Rich Business Messaging (RBM) Card content
649 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
650 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
651 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
652 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
653 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
654 },
655 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
656 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
657 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
658 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
659 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
660 },
661 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
662 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
663 },
664 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
665 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
666 },
667 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
668 },
669 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
670 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
671 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
672 },
673 },
674 ],
675 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
676 },
677 ],
678 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
679 },
680 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
681 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
682 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
683 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
684 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
685 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
686 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
687 },
688 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
689 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
690 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
691 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
692 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
693 },
694 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
695 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
696 },
697 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
698 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
699 },
700 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
701 },
702 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
703 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
704 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
705 },
706 },
707 ],
708 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
709 },
710 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
711 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
712 },
713 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
714 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
715 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
716 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
717 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
718 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
719 },
720 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
721 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
722 },
723 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
724 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
725 },
726 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
727 },
728 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
729 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
730 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
731 },
732 },
733 ],
734 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
735 },
736 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
737 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
738 { # The simple response message containing speech or text.
739 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
740 &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.
741 &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.
742 },
743 ],
744 },
745 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
746 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
747 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
748 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
749 },
750 ],
751 },
752 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
753 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
754 { # The button object that appears at the bottom of a card.
755 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
756 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
757 },
758 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
759 },
760 ],
761 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
762 { # Column properties for TableCard.
763 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
764 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
765 },
766 ],
767 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
768 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
769 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
770 },
771 &quot;rows&quot;: [ # Optional. Rows in this table of data.
772 { # Row of TableCard.
773 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
774 { # Cell of TableCardRow.
775 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
776 },
777 ],
778 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
779 },
780 ],
781 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
782 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
783 },
784 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
785 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
786 },
787 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
788 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
789 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
790 },
791 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
792 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
793 },
794 &quot;text&quot;: { # The text response message. # Returns a text response.
795 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
796 &quot;A String&quot;,
797 ],
798 },
799 },
800 ],
801 &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.
802 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
803 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
804 &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/`.
805 { # 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).
806 &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.
807 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800808 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800809 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
810 },
811 },
812 ],
813 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
814 { # Represents intent parameters.
815 &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`.
816 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
817 &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.
818 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
819 &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.
820 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
821 &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.
822 &quot;A String&quot;,
823 ],
824 &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`.
825 },
826 ],
827 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
828 &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.
829 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
830 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
831 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
832 { # Represents an example that the agent is trained on.
833 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
834 &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.
835 { # Represents a part of a training phrase.
836 &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.
837 &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.
838 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
839 &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.
840 },
841 ],
842 &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.
843 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
844 },
845 ],
846 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
847 },
848 ],
849 },
850 &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;.
851 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
852 &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).
853 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
854}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855
856 x__xgafv: string, V1 error format.
857 Allowed values
858 1 - v1 error format
859 2 - v2 error format
860
861Returns:
862 An object of the form:
863
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800865 &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.
866 &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.
867 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
868 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
869 {
870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
871 },
872 ],
873 &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.
874 },
875 &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.
876 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
877 },
878 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
879 &quot;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`.
880 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
881 },
882}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700883</div>
884
885<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700886 <code class="details" id="close">close()</code>
887 <pre>Close httplib2 connections.</pre>
888</div>
889
890<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800891 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700892 <pre>Creates an intent in the specified agent.
893
894Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700895 parent: string, Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700896 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 The object takes the form of:
898
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700899{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800900 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800901 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
902 &quot;A String&quot;,
903 ],
904 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
905 &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.
906 &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.
907 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700908 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800909 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
910 { # Represents a single followup intent in the chain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800911 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800912 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800913 },
914 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800915 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
916 &quot;A String&quot;,
917 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800918 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700919 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800921 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
922 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
923 { # The button object that appears at the bottom of a card.
924 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
925 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
926 },
927 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
928 },
929 ],
930 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
931 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
932 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
933 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
934 },
935 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
936 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800937 },
938 &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.
939 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
940 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
941 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800942 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800943 &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.
944 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
945 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
946 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
947 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800948 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800949 &quot;url&quot;: &quot;A String&quot;, # Required. URL
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800950 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800951 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800952 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700953 },
954 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800955 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800956 &quot;card&quot;: { # The card response message. # Displays a card.
957 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
958 { # Optional. Contains information about a button.
959 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
960 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
961 },
962 ],
963 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
964 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
965 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
966 },
967 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
968 &quot;items&quot;: [ # Required. Carousel items.
969 { # An item in the carousel.
970 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
971 &quot;image&quot;: { # The image response message. # Optional. The image to display.
972 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
973 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
974 },
975 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
976 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
977 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
978 &quot;A String&quot;,
979 ],
980 },
981 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
982 },
983 ],
984 },
985 &quot;image&quot;: { # The image response message. # Displays an image.
986 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
987 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
988 },
989 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
990 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
991 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
992 },
993 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
994 &quot;items&quot;: [ # Required. List items.
995 { # An item in the list.
996 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
997 &quot;image&quot;: { # The image response message. # Optional. The image to display.
998 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
999 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1000 },
1001 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1002 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1003 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1004 &quot;A String&quot;,
1005 ],
1006 },
1007 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1008 },
1009 ],
1010 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1011 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1012 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001013 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1014 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1015 { # Response media object for media content card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001016 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001017 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1018 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1019 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1020 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1021 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001022 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1023 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1024 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1025 },
1026 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001027 },
1028 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001029 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001030 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001031 &quot;payload&quot;: { # A custom platform-specific response.
1032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1033 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001034 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1035 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1036 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1037 &quot;A String&quot;,
1038 ],
1039 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07001040 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001041 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001042 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1043 { # Rich Business Messaging (RBM) Card content
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001044 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1045 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1046 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1047 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1048 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1049 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001050 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1051 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001052 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001053 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1054 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001055 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001056 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1057 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001058 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001059 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1060 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1061 },
1062 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1063 },
1064 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1065 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1066 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001067 },
1068 },
1069 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001070 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001071 },
1072 ],
1073 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1074 },
1075 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1076 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1077 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1078 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1079 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1080 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1081 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1082 },
1083 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1084 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1085 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1086 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1087 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1088 },
1089 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1090 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1091 },
1092 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1093 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1094 },
1095 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1096 },
1097 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1098 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1099 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1100 },
1101 },
1102 ],
1103 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1104 },
1105 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1106 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1107 },
1108 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1109 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1110 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1111 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1112 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1113 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1114 },
1115 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1116 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1117 },
1118 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1119 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1120 },
1121 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1122 },
1123 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1124 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1125 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001126 },
1127 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001128 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001129 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001130 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001131 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
1132 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1133 { # The simple response message containing speech or text.
1134 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1135 &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.
1136 &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.
1137 },
1138 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001139 },
1140 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1141 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1142 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1143 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1144 },
1145 ],
1146 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001147 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001148 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1149 { # The button object that appears at the bottom of a card.
1150 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1151 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1152 },
1153 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1154 },
1155 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001156 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1157 { # Column properties for TableCard.
1158 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1159 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1160 },
1161 ],
1162 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1163 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1164 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1165 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001166 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1167 { # Row of TableCard.
1168 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1169 { # Cell of TableCardRow.
1170 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1171 },
1172 ],
1173 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1174 },
1175 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001176 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1177 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001178 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001179 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1180 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001181 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001182 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1183 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1184 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001185 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001186 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1187 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001188 },
1189 &quot;text&quot;: { # The text response message. # Returns a text response.
1190 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1191 &quot;A String&quot;,
1192 ],
1193 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 },
1195 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001196 &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.
1197 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
1198 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
1199 &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/`.
1200 { # 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).
1201 &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.
1202 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001203 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1205 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001206 },
1207 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001208 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1209 { # Represents intent parameters.
1210 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001211 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001212 &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.
1213 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001214 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001215 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001216 &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.
1217 &quot;A String&quot;,
1218 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001219 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001220 },
1221 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001222 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1223 &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.
1224 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1225 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
1226 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1227 { # Represents an example that the agent is trained on.
1228 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1229 &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.
1230 { # Represents a part of a training phrase.
1231 &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.
1232 &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.
1233 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1234 &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.
1235 },
1236 ],
1237 &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.
1238 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1239 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001240 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001241 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242}
1243
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001244 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001245 Allowed values
1246 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1247 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001248 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 x__xgafv: string, V1 error format.
1250 Allowed values
1251 1 - v1 error format
1252 2 - v2 error format
1253
1254Returns:
1255 An object of the form:
1256
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001257 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001258 &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.
1259 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1260 &quot;A String&quot;,
1261 ],
1262 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1263 &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.
1264 &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.
1265 &quot;A String&quot;,
1266 ],
1267 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1268 { # Represents a single followup intent in the chain.
1269 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1270 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1271 },
1272 ],
1273 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
1274 &quot;A String&quot;,
1275 ],
1276 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1277 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1278 { # Corresponds to the `Response` field in the Dialogflow console.
1279 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1280 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1281 { # The button object that appears at the bottom of a card.
1282 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1283 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001284 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001285 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001286 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001287 ],
1288 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1289 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001290 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1291 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1292 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001293 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1294 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001296 &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.
1297 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1298 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1299 { # Browsing carousel tile
1300 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1301 &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.
1302 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1303 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1304 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1305 },
1306 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1307 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1308 &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.
1309 },
1310 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001311 },
1312 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001314 &quot;card&quot;: { # The card response message. # Displays a card.
1315 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1316 { # Optional. Contains information about a button.
1317 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1318 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1319 },
1320 ],
1321 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1322 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1323 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1324 },
1325 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1326 &quot;items&quot;: [ # Required. Carousel items.
1327 { # An item in the carousel.
1328 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1329 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1330 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1331 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1332 },
1333 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1334 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1335 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1336 &quot;A String&quot;,
1337 ],
1338 },
1339 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1340 },
1341 ],
1342 },
1343 &quot;image&quot;: { # The image response message. # Displays an image.
1344 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1345 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1346 },
1347 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
1348 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1349 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1350 },
1351 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1352 &quot;items&quot;: [ # Required. List items.
1353 { # An item in the list.
1354 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1355 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1356 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1357 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1358 },
1359 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1360 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1361 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1362 &quot;A String&quot;,
1363 ],
1364 },
1365 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1366 },
1367 ],
1368 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1369 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1370 },
1371 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1372 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1373 { # Response media object for media content card.
1374 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1375 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1376 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1377 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1378 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1379 },
1380 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1381 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1382 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1383 },
1384 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1385 },
1386 ],
1387 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1388 },
1389 &quot;payload&quot;: { # A custom platform-specific response.
1390 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1391 },
1392 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1393 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1394 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001395 &quot;A String&quot;,
1396 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001397 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001398 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001399 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
1400 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1401 { # Rich Business Messaging (RBM) Card content
1402 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1403 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1404 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1405 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1406 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1407 },
1408 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1409 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1410 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1411 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1412 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1413 },
1414 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1415 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1416 },
1417 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1418 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1419 },
1420 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1421 },
1422 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1423 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1424 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1425 },
1426 },
1427 ],
1428 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1429 },
1430 ],
1431 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1432 },
1433 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1434 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1435 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1436 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1437 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1438 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1439 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1440 },
1441 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1442 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1443 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1444 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1445 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1446 },
1447 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1448 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1449 },
1450 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1451 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1452 },
1453 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1454 },
1455 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1456 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1457 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1458 },
1459 },
1460 ],
1461 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1462 },
1463 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1464 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1465 },
1466 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1467 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1468 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1469 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1470 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1471 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1472 },
1473 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1474 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1475 },
1476 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1477 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1478 },
1479 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1480 },
1481 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1482 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1483 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1484 },
1485 },
1486 ],
1487 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1488 },
1489 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
1490 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1491 { # The simple response message containing speech or text.
1492 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1493 &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.
1494 &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.
1495 },
1496 ],
1497 },
1498 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1499 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1500 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1501 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1502 },
1503 ],
1504 },
1505 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1506 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1507 { # The button object that appears at the bottom of a card.
1508 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1509 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1510 },
1511 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1512 },
1513 ],
1514 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1515 { # Column properties for TableCard.
1516 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1517 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1518 },
1519 ],
1520 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1521 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1523 },
1524 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1525 { # Row of TableCard.
1526 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1527 { # Cell of TableCardRow.
1528 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1529 },
1530 ],
1531 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1532 },
1533 ],
1534 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1535 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1536 },
1537 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1538 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
1539 },
1540 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1541 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1542 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1543 },
1544 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1545 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1546 },
1547 &quot;text&quot;: { # The text response message. # Returns a text response.
1548 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1549 &quot;A String&quot;,
1550 ],
1551 },
1552 },
1553 ],
1554 &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.
1555 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
1556 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
1557 &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/`.
1558 { # 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).
1559 &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.
1560 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001561 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1563 },
1564 },
1565 ],
1566 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1567 { # Represents intent parameters.
1568 &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`.
1569 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1570 &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.
1571 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1572 &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.
1573 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1574 &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.
1575 &quot;A String&quot;,
1576 ],
1577 &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`.
1578 },
1579 ],
1580 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1581 &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.
1582 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1583 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
1584 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1585 { # Represents an example that the agent is trained on.
1586 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1587 &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.
1588 { # Represents a part of a training phrase.
1589 &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.
1590 &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.
1591 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1592 &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.
1593 },
1594 ],
1595 &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.
1596 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1597 },
1598 ],
1599 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1600}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001601</div>
1602
1603<div class="method">
1604 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1605 <pre>Deletes the specified intent and its direct or indirect followup intents.
1606
1607Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001608 name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 x__xgafv: string, V1 error format.
1610 Allowed values
1611 1 - v1 error format
1612 2 - v2 error format
1613
1614Returns:
1615 An object of the form:
1616
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001617 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001618}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001619</div>
1620
1621<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001622 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623 <pre>Retrieves the specified intent.
1624
1625Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001626 name: string, Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001627 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001628 Allowed values
1629 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1630 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001631 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001632 x__xgafv: string, V1 error format.
1633 Allowed values
1634 1 - v1 error format
1635 2 - v2 error format
1636
1637Returns:
1638 An object of the form:
1639
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001640 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001641 &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.
1642 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1643 &quot;A String&quot;,
1644 ],
1645 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1646 &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.
1647 &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.
1648 &quot;A String&quot;,
1649 ],
1650 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
1651 { # Represents a single followup intent in the chain.
1652 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1653 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1654 },
1655 ],
1656 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
1657 &quot;A String&quot;,
1658 ],
1659 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
1660 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1661 { # Corresponds to the `Response` field in the Dialogflow console.
1662 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1663 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1664 { # The button object that appears at the bottom of a card.
1665 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1666 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001667 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001668 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001669 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001670 ],
1671 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1672 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001673 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1674 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1675 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001676 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1677 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001679 &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.
1680 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1681 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1682 { # Browsing carousel tile
1683 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1684 &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.
1685 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1686 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1687 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1688 },
1689 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1690 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1691 &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.
1692 },
1693 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001694 },
1695 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001696 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001697 &quot;card&quot;: { # The card response message. # Displays a card.
1698 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1699 { # Optional. Contains information about a button.
1700 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1701 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1702 },
1703 ],
1704 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1705 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1706 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1707 },
1708 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1709 &quot;items&quot;: [ # Required. Carousel items.
1710 { # An item in the carousel.
1711 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1712 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1713 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1714 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1715 },
1716 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1717 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1718 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1719 &quot;A String&quot;,
1720 ],
1721 },
1722 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1723 },
1724 ],
1725 },
1726 &quot;image&quot;: { # The image response message. # Displays an image.
1727 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1728 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1729 },
1730 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
1731 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1732 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1733 },
1734 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1735 &quot;items&quot;: [ # Required. List items.
1736 { # An item in the list.
1737 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1738 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1739 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1740 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1741 },
1742 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1743 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1744 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1745 &quot;A String&quot;,
1746 ],
1747 },
1748 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1749 },
1750 ],
1751 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1752 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1753 },
1754 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1755 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1756 { # Response media object for media content card.
1757 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1758 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1759 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1760 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1761 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1762 },
1763 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1764 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1765 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1766 },
1767 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1768 },
1769 ],
1770 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1771 },
1772 &quot;payload&quot;: { # A custom platform-specific response.
1773 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1774 },
1775 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1776 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1777 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001778 &quot;A String&quot;,
1779 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001780 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001781 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001782 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
1783 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1784 { # Rich Business Messaging (RBM) Card content
1785 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1786 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1787 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1788 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1789 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1790 },
1791 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1792 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1793 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1794 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1795 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1796 },
1797 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1798 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1799 },
1800 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1801 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1802 },
1803 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1804 },
1805 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1806 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1807 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1808 },
1809 },
1810 ],
1811 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1812 },
1813 ],
1814 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1815 },
1816 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
1817 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1818 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
1819 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1820 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
1821 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1822 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
1823 },
1824 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1825 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1826 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1827 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1828 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1829 },
1830 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1831 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1832 },
1833 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1834 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1835 },
1836 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1837 },
1838 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1839 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1840 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1841 },
1842 },
1843 ],
1844 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
1845 },
1846 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1847 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1848 },
1849 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
1850 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1851 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1852 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
1853 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
1854 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
1855 },
1856 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
1857 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1858 },
1859 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
1860 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
1861 },
1862 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1863 },
1864 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
1865 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
1866 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1867 },
1868 },
1869 ],
1870 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1871 },
1872 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
1873 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1874 { # The simple response message containing speech or text.
1875 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1876 &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.
1877 &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.
1878 },
1879 ],
1880 },
1881 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1882 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1883 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1884 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1885 },
1886 ],
1887 },
1888 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1889 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1890 { # The button object that appears at the bottom of a card.
1891 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1892 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1893 },
1894 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1895 },
1896 ],
1897 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1898 { # Column properties for TableCard.
1899 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1900 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1901 },
1902 ],
1903 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1904 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1905 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1906 },
1907 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1908 { # Row of TableCard.
1909 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1910 { # Cell of TableCardRow.
1911 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1912 },
1913 ],
1914 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1915 },
1916 ],
1917 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1918 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1919 },
1920 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1921 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
1922 },
1923 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
1924 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1925 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1926 },
1927 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1928 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
1929 },
1930 &quot;text&quot;: { # The text response message. # Returns a text response.
1931 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1932 &quot;A String&quot;,
1933 ],
1934 },
1935 },
1936 ],
1937 &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.
1938 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
1939 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
1940 &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/`.
1941 { # 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).
1942 &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.
1943 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001944 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001945 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1946 },
1947 },
1948 ],
1949 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1950 { # Represents intent parameters.
1951 &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`.
1952 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1953 &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.
1954 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1955 &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.
1956 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1957 &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.
1958 &quot;A String&quot;,
1959 ],
1960 &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`.
1961 },
1962 ],
1963 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
1964 &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.
1965 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1966 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
1967 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1968 { # Represents an example that the agent is trained on.
1969 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1970 &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.
1971 { # Represents a part of a training phrase.
1972 &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.
1973 &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.
1974 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1975 &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.
1976 },
1977 ],
1978 &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.
1979 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1980 },
1981 ],
1982 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1983}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001984</div>
1985
1986<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001987 <code class="details" id="list">list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001988 <pre>Returns the list of all intents in the specified agent.
1989
1990Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001991 parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001992 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001993 Allowed values
1994 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1995 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001996 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).
1997 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
1998 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001999 x__xgafv: string, V1 error format.
2000 Allowed values
2001 1 - v1 error format
2002 2 - v2 error format
2003
2004Returns:
2005 An object of the form:
2006
2007 { # The response message for Intents.ListIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002008 &quot;intents&quot;: [ # The list of agent intents. There will be a maximum number of items returned based on the page_size field in the request.
2009 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
2010 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
2011 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2012 &quot;A String&quot;,
2013 ],
2014 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2015 &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.
2016 &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.
2017 &quot;A String&quot;,
2018 ],
2019 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
2020 { # Represents a single followup intent in the chain.
2021 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2022 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2023 },
2024 ],
2025 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2026 &quot;A String&quot;,
2027 ],
2028 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2029 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2030 { # Corresponds to the `Response` field in the Dialogflow console.
2031 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2032 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2033 { # The button object that appears at the bottom of a card.
2034 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2035 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002036 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002037 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002038 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002039 ],
2040 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2041 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002042 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2043 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002045 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2046 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002047 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002048 &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.
2049 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2050 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2051 { # Browsing carousel tile
2052 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2053 &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.
2054 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2055 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2056 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2057 },
2058 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2059 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2060 &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.
2061 },
2062 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002063 },
2064 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002065 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002066 &quot;card&quot;: { # The card response message. # Displays a card.
2067 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2068 { # Optional. Contains information about a button.
2069 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2070 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2071 },
2072 ],
2073 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2074 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2075 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2076 },
2077 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2078 &quot;items&quot;: [ # Required. Carousel items.
2079 { # An item in the carousel.
2080 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2081 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2082 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2083 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2084 },
2085 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2086 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2087 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2088 &quot;A String&quot;,
2089 ],
2090 },
2091 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2092 },
2093 ],
2094 },
2095 &quot;image&quot;: { # The image response message. # Displays an image.
2096 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2097 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2098 },
2099 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2100 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2101 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2102 },
2103 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2104 &quot;items&quot;: [ # Required. List items.
2105 { # An item in the list.
2106 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2107 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2108 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2109 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2110 },
2111 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2112 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2113 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2114 &quot;A String&quot;,
2115 ],
2116 },
2117 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2118 },
2119 ],
2120 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2121 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2122 },
2123 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2124 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2125 { # Response media object for media content card.
2126 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2127 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2128 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2129 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2130 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2131 },
2132 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2133 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2134 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2135 },
2136 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2137 },
2138 ],
2139 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2140 },
2141 &quot;payload&quot;: { # A custom platform-specific response.
2142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2143 },
2144 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2145 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2146 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002147 &quot;A String&quot;,
2148 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002149 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002150 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002151 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
2152 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2153 { # Rich Business Messaging (RBM) Card content
2154 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2155 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2156 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2157 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2158 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2159 },
2160 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2161 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2162 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2163 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2164 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2165 },
2166 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2167 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2168 },
2169 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2170 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2171 },
2172 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2173 },
2174 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2175 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2176 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2177 },
2178 },
2179 ],
2180 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2181 },
2182 ],
2183 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2184 },
2185 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2186 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2187 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2188 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2189 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2190 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2191 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2192 },
2193 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2194 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2195 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2196 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2197 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2198 },
2199 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2200 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2201 },
2202 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2203 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2204 },
2205 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2206 },
2207 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2208 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2209 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2210 },
2211 },
2212 ],
2213 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2214 },
2215 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2216 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2217 },
2218 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2219 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2220 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2221 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2222 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2223 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2224 },
2225 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2226 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2227 },
2228 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2229 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2230 },
2231 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2232 },
2233 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2234 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2235 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2236 },
2237 },
2238 ],
2239 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2240 },
2241 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
2242 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2243 { # The simple response message containing speech or text.
2244 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2245 &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.
2246 &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.
2247 },
2248 ],
2249 },
2250 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2251 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2252 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2253 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2254 },
2255 ],
2256 },
2257 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2258 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2259 { # The button object that appears at the bottom of a card.
2260 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2261 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2262 },
2263 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2264 },
2265 ],
2266 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2267 { # Column properties for TableCard.
2268 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2269 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2270 },
2271 ],
2272 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2273 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2274 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2275 },
2276 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2277 { # Row of TableCard.
2278 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2279 { # Cell of TableCardRow.
2280 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2281 },
2282 ],
2283 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2284 },
2285 ],
2286 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2287 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2288 },
2289 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2290 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
2291 },
2292 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
2293 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2294 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2295 },
2296 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2297 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
2298 },
2299 &quot;text&quot;: { # The text response message. # Returns a text response.
2300 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2301 &quot;A String&quot;,
2302 ],
2303 },
2304 },
2305 ],
2306 &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.
2307 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
2308 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
2309 &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/`.
2310 { # 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).
2311 &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.
2312 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002313 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2315 },
2316 },
2317 ],
2318 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2319 { # Represents intent parameters.
2320 &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`.
2321 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2322 &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.
2323 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2324 &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.
2325 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2326 &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.
2327 &quot;A String&quot;,
2328 ],
2329 &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`.
2330 },
2331 ],
2332 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2333 &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.
2334 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2335 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
2336 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2337 { # Represents an example that the agent is trained on.
2338 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2339 &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.
2340 { # Represents a part of a training phrase.
2341 &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.
2342 &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.
2343 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2344 &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.
2345 },
2346 ],
2347 &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.
2348 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2349 },
2350 ],
2351 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2352 },
2353 ],
2354 &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.
2355}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002356</div>
2357
2358<div class="method">
2359 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2360 <pre>Retrieves the next page of results.
2361
2362Args:
2363 previous_request: The request for the previous page. (required)
2364 previous_response: The response from the request for the previous page. (required)
2365
2366Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002367 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002368 page. Returns None if there are no more items in the collection.
2369 </pre>
2370</div>
2371
2372<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002373 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002374 <pre>Updates the specified intent.
2375
2376Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002377 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002378 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002379 The object takes the form of:
2380
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002381{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002382 &quot;action&quot;: &quot;A String&quot;, # Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002383 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2384 &quot;A String&quot;,
2385 ],
2386 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2387 &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.
2388 &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.
2389 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002390 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002391 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
2392 { # Represents a single followup intent in the chain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002393 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002394 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002395 },
2396 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002397 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2398 &quot;A String&quot;,
2399 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002400 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002401 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
Bu Sun Kim65020912020-05-20 12:08:20 -07002402 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002403 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2404 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2405 { # The button object that appears at the bottom of a card.
2406 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2407 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2408 },
2409 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2410 },
2411 ],
2412 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2413 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2414 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2415 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2416 },
2417 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2418 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002419 },
2420 &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.
2421 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2422 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2423 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002424 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002425 &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.
2426 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2427 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2428 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2429 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002430 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002431 &quot;url&quot;: &quot;A String&quot;, # Required. URL
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002432 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002433 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002434 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002435 },
2436 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002437 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002438 &quot;card&quot;: { # The card response message. # Displays a card.
2439 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2440 { # Optional. Contains information about a button.
2441 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2442 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2443 },
2444 ],
2445 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2446 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2447 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2448 },
2449 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2450 &quot;items&quot;: [ # Required. Carousel items.
2451 { # An item in the carousel.
2452 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2453 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2454 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2455 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2456 },
2457 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2458 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2459 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2460 &quot;A String&quot;,
2461 ],
2462 },
2463 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2464 },
2465 ],
2466 },
2467 &quot;image&quot;: { # The image response message. # Displays an image.
2468 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2469 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2470 },
2471 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2472 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2473 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2474 },
2475 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2476 &quot;items&quot;: [ # Required. List items.
2477 { # An item in the list.
2478 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2479 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2480 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2481 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2482 },
2483 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2484 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2485 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2486 &quot;A String&quot;,
2487 ],
2488 },
2489 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2490 },
2491 ],
2492 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2493 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2494 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002495 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2496 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2497 { # Response media object for media content card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002498 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002499 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2500 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2501 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2502 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2503 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002504 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2505 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2506 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2507 },
2508 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002509 },
2510 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002511 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002512 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002513 &quot;payload&quot;: { # A custom platform-specific response.
2514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2515 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002516 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2517 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2518 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2519 &quot;A String&quot;,
2520 ],
2521 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07002522 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002523 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002524 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2525 { # Rich Business Messaging (RBM) Card content
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002526 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2527 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2528 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2529 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2530 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2531 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002532 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2533 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002534 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002535 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2536 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002537 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002538 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2539 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002540 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002541 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2542 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2543 },
2544 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2545 },
2546 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2547 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2548 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002549 },
2550 },
2551 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002552 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002553 },
2554 ],
2555 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2556 },
2557 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2558 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2559 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2560 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2561 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2562 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2563 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2564 },
2565 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2566 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2567 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2568 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2569 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2570 },
2571 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2572 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2573 },
2574 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2575 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2576 },
2577 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2578 },
2579 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2580 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2581 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2582 },
2583 },
2584 ],
2585 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2586 },
2587 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2588 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2589 },
2590 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2591 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2592 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2593 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2594 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2595 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2596 },
2597 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2598 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2599 },
2600 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2601 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2602 },
2603 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2604 },
2605 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2606 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2607 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002608 },
2609 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002610 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002611 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002613 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
2614 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2615 { # The simple response message containing speech or text.
2616 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2617 &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.
2618 &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.
2619 },
2620 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002621 },
2622 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2623 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2624 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2625 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2626 },
2627 ],
2628 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002629 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002630 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2631 { # The button object that appears at the bottom of a card.
2632 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2633 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2634 },
2635 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2636 },
2637 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002638 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2639 { # Column properties for TableCard.
2640 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2641 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2642 },
2643 ],
2644 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2645 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2646 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2647 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002648 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2649 { # Row of TableCard.
2650 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2651 { # Cell of TableCardRow.
2652 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2653 },
2654 ],
2655 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2656 },
2657 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002658 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2659 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002660 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002661 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2662 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002663 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002664 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
2665 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2666 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002667 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002668 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2669 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002670 },
2671 &quot;text&quot;: { # The text response message. # Returns a text response.
2672 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2673 &quot;A String&quot;,
2674 ],
2675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002676 },
2677 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002678 &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.
2679 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
2680 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
2681 &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/`.
2682 { # 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).
2683 &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.
2684 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002685 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002686 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2687 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002688 },
2689 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002690 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2691 { # Represents intent parameters.
2692 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002693 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002694 &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.
2695 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002696 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002697 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002698 &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.
2699 &quot;A String&quot;,
2700 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002701 &quot;value&quot;: &quot;A String&quot;, # Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002702 },
2703 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002704 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
2705 &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.
2706 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2707 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
2708 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2709 { # Represents an example that the agent is trained on.
2710 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2711 &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.
2712 { # Represents a part of a training phrase.
2713 &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.
2714 &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.
2715 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2716 &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.
2717 },
2718 ],
2719 &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.
2720 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2721 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002722 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002723 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002724}
2725
Bu Sun Kim65020912020-05-20 12:08:20 -07002726 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002727 Allowed values
2728 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2729 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002730 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002731 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002732 x__xgafv: string, V1 error format.
2733 Allowed values
2734 1 - v1 error format
2735 2 - v2 error format
2736
2737Returns:
2738 An object of the form:
2739
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002740 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002741 &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.
2742 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
2743 &quot;A String&quot;,
2744 ],
2745 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2746 &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.
2747 &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.
2748 &quot;A String&quot;,
2749 ],
2750 &quot;followupIntentInfo&quot;: [ # Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
2751 { # Represents a single followup intent in the chain.
2752 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2753 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2754 },
2755 ],
2756 &quot;inputContextNames&quot;: [ # Optional. The list of context names required for this intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` - `projects//locations//agent/sessions/-/contexts/`
2757 &quot;A String&quot;,
2758 ],
2759 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
2760 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2761 { # Corresponds to the `Response` field in the Dialogflow console.
2762 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2763 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2764 { # The button object that appears at the bottom of a card.
2765 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2766 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002767 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002768 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002769 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002770 ],
2771 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2772 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002773 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2774 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2775 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002776 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2777 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002778 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002779 &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.
2780 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2781 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2782 { # Browsing carousel tile
2783 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2784 &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.
2785 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2786 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2787 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2788 },
2789 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2790 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2791 &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.
2792 },
2793 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002794 },
2795 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002796 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002797 &quot;card&quot;: { # The card response message. # Displays a card.
2798 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2799 { # Optional. Contains information about a button.
2800 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2801 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2802 },
2803 ],
2804 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2805 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2806 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2807 },
2808 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2809 &quot;items&quot;: [ # Required. Carousel items.
2810 { # An item in the carousel.
2811 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2812 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2813 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2814 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2815 },
2816 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2817 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2818 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2819 &quot;A String&quot;,
2820 ],
2821 },
2822 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2823 },
2824 ],
2825 },
2826 &quot;image&quot;: { # The image response message. # Displays an image.
2827 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2828 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2829 },
2830 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
2831 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2832 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2833 },
2834 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2835 &quot;items&quot;: [ # Required. List items.
2836 { # An item in the list.
2837 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2838 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2839 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2840 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2841 },
2842 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2843 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2844 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2845 &quot;A String&quot;,
2846 ],
2847 },
2848 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2849 },
2850 ],
2851 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2852 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2853 },
2854 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2855 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2856 { # Response media object for media content card.
2857 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2858 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2859 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2860 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2861 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2862 },
2863 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2864 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2865 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2866 },
2867 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2868 },
2869 ],
2870 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2871 },
2872 &quot;payload&quot;: { # A custom platform-specific response.
2873 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2874 },
2875 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2876 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2877 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002878 &quot;A String&quot;,
2879 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002880 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002881 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002882 &quot;rbmCarouselRichCard&quot;: { # Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead. # Rich Business Messaging (RBM) carousel rich card response.
2883 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2884 { # Rich Business Messaging (RBM) Card content
2885 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2886 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2887 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2888 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2889 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2890 },
2891 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2892 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2893 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2894 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2895 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2896 },
2897 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2898 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2899 },
2900 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2901 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2902 },
2903 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2904 },
2905 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2906 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2907 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2908 },
2909 },
2910 ],
2911 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2912 },
2913 ],
2914 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2915 },
2916 &quot;rbmStandaloneRichCard&quot;: { # Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. # Standalone Rich Business Messaging (RBM) rich card response.
2917 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2918 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
2919 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2920 &quot;fileUri&quot;: &quot;A String&quot;, # Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.
2921 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2922 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2923 },
2924 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2925 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2926 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2927 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2928 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2929 },
2930 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2931 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2932 },
2933 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2934 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2935 },
2936 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2937 },
2938 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2939 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2940 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2941 },
2942 },
2943 ],
2944 &quot;title&quot;: &quot;A String&quot;, # Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set.
2945 },
2946 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2947 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2948 },
2949 &quot;rbmText&quot;: { # Rich Business Messaging (RBM) text response with suggestions. # Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
2950 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2951 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2952 &quot;action&quot;: { # Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card. # Predefined client side actions that user can choose
2953 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
2954 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
2955 },
2956 &quot;openUrl&quot;: { # Opens the user&#x27;s default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI. # Suggested client side action: Open a URI on device
2957 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2958 },
2959 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. This data will be also forwarded to webhook to allow performing custom business logic.
2960 &quot;shareLocation&quot;: { # Opens the device&#x27;s location chooser so the user can pick a location to send back to the agent. # Suggested client side action: Share user location
2961 },
2962 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2963 },
2964 &quot;reply&quot;: { # Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response. # Predefined replies for user to select instead of typing
2965 &quot;postbackData&quot;: &quot;A String&quot;, # Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.
2966 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2967 },
2968 },
2969 ],
2970 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2971 },
2972 &quot;simpleResponses&quot;: { # The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. # Returns a voice or text-only response for Actions on Google.
2973 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2974 { # The simple response message containing speech or text.
2975 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2976 &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.
2977 &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.
2978 },
2979 ],
2980 },
2981 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2982 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2983 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2984 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2985 },
2986 ],
2987 },
2988 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2989 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2990 { # The button object that appears at the bottom of a card.
2991 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2992 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2993 },
2994 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2995 },
2996 ],
2997 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2998 { # Column properties for TableCard.
2999 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3000 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3001 },
3002 ],
3003 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3004 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
3005 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3006 },
3007 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3008 { # Row of TableCard.
3009 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3010 { # Cell of TableCardRow.
3011 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3012 },
3013 ],
3014 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3015 },
3016 ],
3017 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3018 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3019 },
3020 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3021 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI to a Google Cloud Storage object containing the audio to play, e.g., &quot;gs://bucket/object&quot;. The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
3022 },
3023 &quot;telephonySynthesizeSpeech&quot;: { # Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config. # Synthesizes speech in Telephony Gateway.
3024 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
3025 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3026 },
3027 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3028 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to transfer the call to in [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently only allow transferring to US numbers (+1xxxyyyzzzz).
3029 },
3030 &quot;text&quot;: { # The text response message. # Returns a text response.
3031 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3032 &quot;A String&quot;,
3033 ],
3034 },
3035 },
3036 ],
3037 &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.
3038 &quot;mlEnabled&quot;: True or False, # Optional. Indicates whether Machine Learning is enabled for the intent. Note: If `ml_enabled` setting is set to false, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, then the default value is determined as follows: - Before April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the default is: ml_enabled = true / ml_disabled = false.
3039 &quot;name&quot;: &quot;A String&quot;, # Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/`
3040 &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/`.
3041 { # 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).
3042 &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.
3043 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the context. Supported formats: - `projects//agent/sessions//contexts/`, - `projects//locations//agent/sessions//contexts/`, - `projects//agent/environments//users//sessions//contexts/`, - `projects//locations//agent/environments//users//sessions//contexts/`, The `Context ID` is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `Environment ID` is not specified, we assume default &#x27;draft&#x27; environment. If `User ID` is not specified, we assume default &#x27;-&#x27; user. The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names: * `__system_counters__` * `*_id_dialog_context` * `*_dialog_params_size`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003044 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003045 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3046 },
3047 },
3048 ],
3049 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3050 { # Represents intent parameters.
3051 &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`.
3052 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3053 &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.
3054 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3055 &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.
3056 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3057 &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.
3058 &quot;A String&quot;,
3059 ],
3060 &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`.
3061 },
3062 ],
3063 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects//agent/intents/`.
3064 &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.
3065 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
3066 &quot;rootFollowupIntentName&quot;: &quot;A String&quot;, # Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects//agent/intents/`.
3067 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
3068 { # Represents an example that the agent is trained on.
3069 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3070 &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.
3071 { # Represents a part of a training phrase.
3072 &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.
3073 &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.
3074 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3075 &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.
3076 },
3077 ],
3078 &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.
3079 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
3080 },
3081 ],
3082 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3083}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003084</div>
3085
3086</body></html>