blob: e9290626dc2dd012d06acfa8082488cd5296ac9d [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>
yoshi-code-bote5e87b12021-09-14 00:22:34 -070079<p class="firstline">Deletes intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</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>
yoshi-code-bote5e87b12021-09-14 00:22:34 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: BatchUpdateIntentsResponse Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083<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>
yoshi-code-bot04bafe12021-06-29 00:20:25 -070088<p class="firstline">Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
yoshi-code-bot04bafe12021-06-29 00:20:25 -070091<p class="firstline">Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<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>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700103<p class="firstline">Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<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>
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700107 <pre>Deletes intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
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.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700136 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800137 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
138 { # Corresponds to the `Response` field in the Dialogflow console.
139 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
140 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
141 { # The button object that appears at the bottom of a card.
142 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
143 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800145 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800146 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800147 ],
148 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
149 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800150 &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.
151 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
152 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800153 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
154 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 &quot;browseCarouselCard&quot;: { # Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel # Browse carousel card for Actions on Google.
157 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
158 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
159 { # Browsing carousel tile
160 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
161 &quot;footer&quot;: &quot;A String&quot;, # Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text.
162 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
163 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
164 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
165 },
166 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
167 &quot;url&quot;: &quot;A String&quot;, # Required. URL
168 &quot;urlTypeHint&quot;: &quot;A String&quot;, # Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.
169 },
170 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800171 },
172 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800173 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800174 &quot;card&quot;: { # The card response message. # Displays a card.
175 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
176 { # Optional. Contains information about a button.
177 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
178 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
179 },
180 ],
181 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
182 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
183 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
184 },
185 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
186 &quot;items&quot;: [ # Required. Carousel items.
187 { # An item in the carousel.
188 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
189 &quot;image&quot;: { # The image response message. # Optional. The image to display.
190 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
191 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
192 },
193 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
194 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
195 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
196 &quot;A String&quot;,
197 ],
198 },
199 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
200 },
201 ],
202 },
203 &quot;image&quot;: { # The image response message. # Displays an image.
204 &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.
205 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
206 },
207 &quot;linkOutSuggestion&quot;: { # The suggestion chip message that allows the user to jump out to the app or website associated with this agent. # Displays a link out suggestion chip for Actions on Google.
208 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
209 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
210 },
211 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
212 &quot;items&quot;: [ # Required. List items.
213 { # An item in the list.
214 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
215 &quot;image&quot;: { # The image response message. # Optional. The image to display.
216 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
217 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
218 },
219 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
220 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
221 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
222 &quot;A String&quot;,
223 ],
224 },
225 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
226 },
227 ],
228 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
229 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
230 },
231 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
232 &quot;mediaObjects&quot;: [ # Required. List of media objects.
233 { # Response media object for media content card.
234 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
235 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
236 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
237 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
238 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
239 },
240 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
241 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
242 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
243 },
244 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
245 },
246 ],
247 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
248 },
249 &quot;payload&quot;: { # A custom platform-specific response.
250 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
251 },
252 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
253 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
254 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800255 &quot;A String&quot;,
256 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800257 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800258 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800259 &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.
260 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
261 { # Rich Business Messaging (RBM) Card content
262 &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.
263 &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.
264 &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.
265 &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.
266 &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.
267 },
268 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
269 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
270 &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
271 &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
272 &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.
273 },
274 &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
275 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
276 },
277 &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.
278 &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
279 },
280 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
281 },
282 &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
283 &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.
284 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
285 },
286 },
287 ],
288 &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.
289 },
290 ],
291 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
292 },
293 &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.
294 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
295 &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.
296 &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.
297 &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.
298 &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.
299 &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.
300 },
301 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
302 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
303 &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
304 &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
305 &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.
306 },
307 &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
308 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
309 },
310 &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.
311 &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
312 },
313 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
314 },
315 &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
316 &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.
317 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
318 },
319 },
320 ],
321 &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.
322 },
323 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
324 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
325 },
326 &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.
327 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
328 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
329 &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
330 &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
331 &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.
332 },
333 &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
334 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
335 },
336 &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.
337 &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
338 },
339 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
340 },
341 &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
342 &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.
343 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
344 },
345 },
346 ],
347 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
348 },
349 &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.
350 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
351 { # The simple response message containing speech or text.
352 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
353 &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.
354 &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.
355 },
356 ],
357 },
358 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
359 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
360 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
361 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
362 },
363 ],
364 },
365 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
366 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
367 { # The button object that appears at the bottom of a card.
368 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
369 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
370 },
371 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
372 },
373 ],
374 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
375 { # Column properties for TableCard.
376 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
377 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
378 },
379 ],
380 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
381 &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.
382 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
383 },
384 &quot;rows&quot;: [ # Optional. Rows in this table of data.
385 { # Row of TableCard.
386 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
387 { # Cell of TableCardRow.
388 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
389 },
390 ],
391 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
392 },
393 ],
394 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
395 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
396 },
397 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
398 &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.
399 },
400 &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.
401 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
402 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
403 },
404 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
405 &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).
406 },
407 &quot;text&quot;: { # The text response message. # Returns a text response.
408 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
409 &quot;A String&quot;,
410 ],
411 },
412 },
413 ],
414 &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.
415 &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.
416 &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/`
417 &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/`.
418 { # 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).
419 &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.
420 &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 -0800421 &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 -0800422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
423 },
424 },
425 ],
426 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
427 { # Represents intent parameters.
428 &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`.
429 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
430 &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.
431 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
432 &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.
433 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
434 &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.
435 &quot;A String&quot;,
436 ],
437 &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`.
438 },
439 ],
440 &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/`.
441 &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.
442 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
443 &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/`.
444 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
445 { # Represents an example that the agent is trained on.
446 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
447 &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.
448 { # Represents a part of a training phrase.
449 &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.
450 &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.
451 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
452 &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.
453 },
454 ],
455 &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.
456 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
457 },
458 ],
459 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
460 },
461 ],
462}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463
464 x__xgafv: string, V1 error format.
465 Allowed values
466 1 - v1 error format
467 2 - v2 error format
468
469Returns:
470 An object of the form:
471
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800473 &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.
474 &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.
475 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
476 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
477 {
478 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
479 },
480 ],
481 &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.
482 },
483 &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.
484 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
485 },
486 &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}`.
487 &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`.
488 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
489 },
490}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491</div>
492
493<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700494 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700495 <pre>Updates/Creates multiple intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: BatchUpdateIntentsResponse Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496
497Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700498 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 -0700499 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 The object takes the form of:
501
502{ # The request message for Intents.BatchUpdateIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800503 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
504 &quot;intents&quot;: [ # A collection of intents.
505 { # 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).
506 &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.
507 &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).
508 &quot;A String&quot;,
509 ],
510 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
511 &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.
512 &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.
513 &quot;A String&quot;,
514 ],
515 &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.
516 { # Represents a single followup intent in the chain.
517 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
518 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
519 },
520 ],
521 &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/`
522 &quot;A String&quot;,
523 ],
524 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700525 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800526 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
527 { # Corresponds to the `Response` field in the Dialogflow console.
528 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
529 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
530 { # The button object that appears at the bottom of a card.
531 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
532 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700533 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800534 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800535 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800536 ],
537 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
538 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800539 &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.
540 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
541 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800542 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
543 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &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.
546 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
547 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
548 { # Browsing carousel tile
549 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
550 &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.
551 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
552 &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.
553 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
554 },
555 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
556 &quot;url&quot;: &quot;A String&quot;, # Required. URL
557 &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.
558 },
559 &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 -0800560 },
561 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800562 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800563 &quot;card&quot;: { # The card response message. # Displays a card.
564 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
565 { # Optional. Contains information about a button.
566 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
567 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
568 },
569 ],
570 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
571 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
572 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
573 },
574 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
575 &quot;items&quot;: [ # Required. Carousel items.
576 { # An item in the carousel.
577 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
578 &quot;image&quot;: { # The image response message. # Optional. The image to display.
579 &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.
580 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
581 },
582 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
583 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
584 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
585 &quot;A String&quot;,
586 ],
587 },
588 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
589 },
590 ],
591 },
592 &quot;image&quot;: { # The image response message. # Displays an image.
593 &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.
594 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
595 },
596 &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.
597 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
598 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
599 },
600 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
601 &quot;items&quot;: [ # Required. List items.
602 { # An item in the list.
603 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
604 &quot;image&quot;: { # The image response message. # Optional. The image to display.
605 &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.
606 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
607 },
608 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
609 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
610 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
611 &quot;A String&quot;,
612 ],
613 },
614 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
615 },
616 ],
617 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
618 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
619 },
620 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
621 &quot;mediaObjects&quot;: [ # Required. List of media objects.
622 { # Response media object for media content card.
623 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
624 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
625 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
626 &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.
627 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
628 },
629 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
630 &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.
631 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
632 },
633 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
634 },
635 ],
636 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
637 },
638 &quot;payload&quot;: { # A custom platform-specific response.
639 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
640 },
641 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
642 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
643 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800644 &quot;A String&quot;,
645 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800646 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800647 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800648 &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.
649 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
650 { # Rich Business Messaging (RBM) Card content
651 &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.
652 &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.
653 &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.
654 &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.
655 &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.
656 },
657 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
658 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
659 &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
660 &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
661 &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.
662 },
663 &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
664 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
665 },
666 &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.
667 &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
668 },
669 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
670 },
671 &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
672 &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.
673 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
674 },
675 },
676 ],
677 &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.
678 },
679 ],
680 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
681 },
682 &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.
683 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
684 &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.
685 &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.
686 &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.
687 &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.
688 &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.
689 },
690 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
691 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
692 &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
693 &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
694 &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.
695 },
696 &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
697 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
698 },
699 &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.
700 &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
701 },
702 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
703 },
704 &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
705 &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.
706 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
707 },
708 },
709 ],
710 &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.
711 },
712 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
713 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
714 },
715 &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.
716 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
717 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
718 &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
719 &quot;dial&quot;: { # Opens the user&#x27;s default dialer app with the specified phone number but does not dial automatically. # Suggested client side action: Dial a phone number
720 &quot;phoneNumber&quot;: &quot;A String&quot;, # Required. The phone number to fill in the default dialer app. This field should be in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
721 },
722 &quot;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
723 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
724 },
725 &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.
726 &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
727 },
728 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
729 },
730 &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
731 &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.
732 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
733 },
734 },
735 ],
736 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
737 },
738 &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.
739 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
740 { # The simple response message containing speech or text.
741 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
742 &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.
743 &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.
744 },
745 ],
746 },
747 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
748 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
749 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
750 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
751 },
752 ],
753 },
754 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
755 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
756 { # The button object that appears at the bottom of a card.
757 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
758 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
759 },
760 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
761 },
762 ],
763 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
764 { # Column properties for TableCard.
765 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
766 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
767 },
768 ],
769 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
770 &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.
771 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
772 },
773 &quot;rows&quot;: [ # Optional. Rows in this table of data.
774 { # Row of TableCard.
775 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
776 { # Cell of TableCardRow.
777 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
778 },
779 ],
780 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
781 },
782 ],
783 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
784 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
785 },
786 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
787 &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.
788 },
789 &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.
790 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
791 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
792 },
793 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
794 &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).
795 },
796 &quot;text&quot;: { # The text response message. # Returns a text response.
797 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
798 &quot;A String&quot;,
799 ],
800 },
801 },
802 ],
803 &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.
804 &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.
805 &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/`
806 &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/`.
807 { # 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).
808 &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.
809 &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 -0800810 &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 -0800811 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
812 },
813 },
814 ],
815 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
816 { # Represents intent parameters.
817 &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`.
818 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
819 &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.
820 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
821 &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.
822 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
823 &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.
824 &quot;A String&quot;,
825 ],
826 &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`.
827 },
828 ],
829 &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/`.
830 &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.
831 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
832 &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/`.
833 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
834 { # Represents an example that the agent is trained on.
835 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
836 &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.
837 { # Represents a part of a training phrase.
838 &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.
839 &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.
840 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
841 &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.
842 },
843 ],
844 &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.
845 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
846 },
847 ],
848 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
849 },
850 ],
851 },
852 &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;.
853 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
854 &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).
855 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
856}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700857
858 x__xgafv: string, V1 error format.
859 Allowed values
860 1 - v1 error format
861 2 - v2 error format
862
863Returns:
864 An object of the form:
865
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700866 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800867 &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.
868 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
869 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
870 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
871 {
872 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
873 },
874 ],
875 &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.
876 },
877 &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.
878 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
879 },
880 &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}`.
881 &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`.
882 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
883 },
884}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885</div>
886
887<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700888 <code class="details" id="close">close()</code>
889 <pre>Close httplib2 connections.</pre>
890</div>
891
892<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800893 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700894 <pre>Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895
896Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700897 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 -0700898 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700899 The object takes the form of:
900
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700901{ # 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 -0800902 &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 -0800903 &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).
904 &quot;A String&quot;,
905 ],
906 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
907 &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.
908 &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.
909 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700910 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800911 &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.
912 { # Represents a single followup intent in the chain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800913 &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 -0800914 &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 -0800915 },
916 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800917 &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/`
918 &quot;A String&quot;,
919 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800920 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700921 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700922 &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 -0700923 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800924 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
925 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
926 { # The button object that appears at the bottom of a card.
927 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
928 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
929 },
930 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
931 },
932 ],
933 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
934 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
935 &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.
936 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
937 },
938 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
939 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800940 },
941 &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.
942 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
943 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
944 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800945 &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 -0800946 &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.
947 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
948 &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.
949 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
950 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800951 &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 -0800952 &quot;url&quot;: &quot;A String&quot;, # Required. URL
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800953 &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 -0800954 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800955 &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 -0700956 },
957 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800958 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800959 &quot;card&quot;: { # The card response message. # Displays a card.
960 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
961 { # Optional. Contains information about a button.
962 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
963 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
964 },
965 ],
966 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
967 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
968 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
969 },
970 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
971 &quot;items&quot;: [ # Required. Carousel items.
972 { # An item in the carousel.
973 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
974 &quot;image&quot;: { # The image response message. # Optional. The image to display.
975 &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.
976 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
977 },
978 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
979 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
980 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
981 &quot;A String&quot;,
982 ],
983 },
984 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
985 },
986 ],
987 },
988 &quot;image&quot;: { # The image response message. # Displays an image.
989 &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.
990 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
991 },
992 &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.
993 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
994 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
995 },
996 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
997 &quot;items&quot;: [ # Required. List items.
998 { # An item in the list.
999 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1000 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1001 &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.
1002 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1003 },
1004 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1005 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1006 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1007 &quot;A String&quot;,
1008 ],
1009 },
1010 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1011 },
1012 ],
1013 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1014 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1015 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001016 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1017 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1018 { # Response media object for media content card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001019 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001020 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1021 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1022 &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.
1023 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1024 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001025 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1026 &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.
1027 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1028 },
1029 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001030 },
1031 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001032 &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 -08001033 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001034 &quot;payload&quot;: { # A custom platform-specific response.
1035 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1036 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001037 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1038 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1039 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1040 &quot;A String&quot;,
1041 ],
1042 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001044 &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 -08001045 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1046 { # Rich Business Messaging (RBM) Card content
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001047 &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.
1048 &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.
1049 &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.
1050 &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.
1051 &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.
1052 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001053 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1054 { # 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 -08001055 &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 -08001056 &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
1057 &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 -08001058 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001059 &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
1060 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001061 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001062 &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.
1063 &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
1064 },
1065 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1066 },
1067 &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
1068 &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.
1069 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001070 },
1071 },
1072 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001073 &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 -08001074 },
1075 ],
1076 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1077 },
1078 &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.
1079 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1080 &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.
1081 &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.
1082 &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.
1083 &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.
1084 &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.
1085 },
1086 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1087 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1088 &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
1089 &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
1090 &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.
1091 },
1092 &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
1093 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1094 },
1095 &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.
1096 &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
1097 },
1098 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1099 },
1100 &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
1101 &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.
1102 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1103 },
1104 },
1105 ],
1106 &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.
1107 },
1108 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1109 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1110 },
1111 &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.
1112 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1113 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1114 &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
1115 &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
1116 &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.
1117 },
1118 &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
1119 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1120 },
1121 &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.
1122 &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
1123 },
1124 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1125 },
1126 &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
1127 &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.
1128 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001129 },
1130 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001131 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001132 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001133 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001134 &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.
1135 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1136 { # The simple response message containing speech or text.
1137 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1138 &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.
1139 &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.
1140 },
1141 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001142 },
1143 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1144 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1145 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1146 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1147 },
1148 ],
1149 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001150 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001151 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1152 { # The button object that appears at the bottom of a card.
1153 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1154 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1155 },
1156 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1157 },
1158 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001159 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1160 { # Column properties for TableCard.
1161 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1162 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1163 },
1164 ],
1165 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1166 &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.
1167 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1168 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001169 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1170 { # Row of TableCard.
1171 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1172 { # Cell of TableCardRow.
1173 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1174 },
1175 ],
1176 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1177 },
1178 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001179 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1180 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001181 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001182 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1183 &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 -08001184 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001185 &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.
1186 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1187 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001188 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001189 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1190 &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 -08001191 },
1192 &quot;text&quot;: { # The text response message. # Returns a text response.
1193 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1194 &quot;A String&quot;,
1195 ],
1196 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 },
1198 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001199 &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.
1200 &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.
1201 &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/`
1202 &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/`.
1203 { # 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).
1204 &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.
1205 &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 -08001206 &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 -08001207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1208 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001209 },
1210 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001211 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1212 { # Represents intent parameters.
1213 &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 -08001214 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001215 &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.
1216 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001217 &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 -08001218 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001219 &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.
1220 &quot;A String&quot;,
1221 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001222 &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 -08001223 },
1224 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001225 &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/`.
1226 &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.
1227 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1228 &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/`.
1229 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1230 { # Represents an example that the agent is trained on.
1231 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1232 &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.
1233 { # Represents a part of a training phrase.
1234 &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.
1235 &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.
1236 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1237 &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.
1238 },
1239 ],
1240 &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.
1241 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1242 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001243 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001244 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim65020912020-05-20 12:08:20 -07001245}
1246
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001247 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001248 Allowed values
1249 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1250 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001251 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 -07001252 x__xgafv: string, V1 error format.
1253 Allowed values
1254 1 - v1 error format
1255 2 - v2 error format
1256
1257Returns:
1258 An object of the form:
1259
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001260 { # 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 -08001261 &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.
1262 &quot;defaultResponsePlatforms&quot;: [ # Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
1263 &quot;A String&quot;,
1264 ],
1265 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1266 &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.
1267 &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.
1268 &quot;A String&quot;,
1269 ],
1270 &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.
1271 { # Represents a single followup intent in the chain.
1272 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1273 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1274 },
1275 ],
1276 &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/`
1277 &quot;A String&quot;,
1278 ],
1279 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001280 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001281 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1282 { # Corresponds to the `Response` field in the Dialogflow console.
1283 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1284 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1285 { # The button object that appears at the bottom of a card.
1286 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1287 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001288 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001289 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001290 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 ],
1292 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1293 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001294 &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.
1295 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1296 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001297 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1298 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001300 &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.
1301 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1302 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1303 { # Browsing carousel tile
1304 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1305 &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.
1306 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1307 &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.
1308 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1309 },
1310 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1311 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1312 &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.
1313 },
1314 &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 -08001315 },
1316 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001318 &quot;card&quot;: { # The card response message. # Displays a card.
1319 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1320 { # Optional. Contains information about a button.
1321 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1322 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1323 },
1324 ],
1325 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1326 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1327 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1328 },
1329 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1330 &quot;items&quot;: [ # Required. Carousel items.
1331 { # An item in the carousel.
1332 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1333 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1334 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
1335 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1336 },
1337 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1338 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1339 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1340 &quot;A String&quot;,
1341 ],
1342 },
1343 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1344 },
1345 ],
1346 },
1347 &quot;image&quot;: { # The image response message. # Displays an image.
1348 &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.
1349 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1350 },
1351 &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.
1352 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1353 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1354 },
1355 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1356 &quot;items&quot;: [ # Required. List items.
1357 { # An item in the list.
1358 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1359 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1360 &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.
1361 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1362 },
1363 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1364 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1365 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1366 &quot;A String&quot;,
1367 ],
1368 },
1369 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1370 },
1371 ],
1372 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1373 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1374 },
1375 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1376 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1377 { # Response media object for media content card.
1378 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1379 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1380 &quot;icon&quot;: { # The image response message. # Optional. Icon 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;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1385 &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.
1386 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1387 },
1388 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1389 },
1390 ],
1391 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1392 },
1393 &quot;payload&quot;: { # A custom platform-specific response.
1394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1395 },
1396 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1397 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1398 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001399 &quot;A String&quot;,
1400 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001401 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001402 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001403 &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.
1404 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1405 { # Rich Business Messaging (RBM) Card content
1406 &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.
1407 &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.
1408 &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.
1409 &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.
1410 &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.
1411 },
1412 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1413 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1414 &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
1415 &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
1416 &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.
1417 },
1418 &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
1419 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1420 },
1421 &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.
1422 &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
1423 },
1424 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1425 },
1426 &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
1427 &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.
1428 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1429 },
1430 },
1431 ],
1432 &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.
1433 },
1434 ],
1435 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1436 },
1437 &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.
1438 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1439 &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.
1440 &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.
1441 &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.
1442 &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.
1443 &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.
1444 },
1445 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1446 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1447 &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
1448 &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
1449 &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.
1450 },
1451 &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
1452 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1453 },
1454 &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.
1455 &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
1456 },
1457 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1458 },
1459 &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
1460 &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.
1461 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1462 },
1463 },
1464 ],
1465 &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.
1466 },
1467 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1468 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1469 },
1470 &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.
1471 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1472 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1473 &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
1474 &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
1475 &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.
1476 },
1477 &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
1478 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1479 },
1480 &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.
1481 &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
1482 },
1483 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1484 },
1485 &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
1486 &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.
1487 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1488 },
1489 },
1490 ],
1491 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1492 },
1493 &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.
1494 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1495 { # The simple response message containing speech or text.
1496 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1497 &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.
1498 &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.
1499 },
1500 ],
1501 },
1502 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1503 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1504 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1505 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1506 },
1507 ],
1508 },
1509 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1510 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1511 { # The button object that appears at the bottom of a card.
1512 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1513 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1514 },
1515 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1516 },
1517 ],
1518 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1519 { # Column properties for TableCard.
1520 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1521 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1522 },
1523 ],
1524 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1525 &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.
1526 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1527 },
1528 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1529 { # Row of TableCard.
1530 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1531 { # Cell of TableCardRow.
1532 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1533 },
1534 ],
1535 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1536 },
1537 ],
1538 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1539 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1540 },
1541 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1542 &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.
1543 },
1544 &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.
1545 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1546 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1547 },
1548 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1549 &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).
1550 },
1551 &quot;text&quot;: { # The text response message. # Returns a text response.
1552 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1553 &quot;A String&quot;,
1554 ],
1555 },
1556 },
1557 ],
1558 &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.
1559 &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.
1560 &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/`
1561 &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/`.
1562 { # 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).
1563 &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.
1564 &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 -08001565 &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 -08001566 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1567 },
1568 },
1569 ],
1570 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1571 { # Represents intent parameters.
1572 &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`.
1573 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1574 &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.
1575 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1576 &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.
1577 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1578 &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.
1579 &quot;A String&quot;,
1580 ],
1581 &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`.
1582 },
1583 ],
1584 &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/`.
1585 &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.
1586 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1587 &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/`.
1588 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1589 { # Represents an example that the agent is trained on.
1590 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1591 &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.
1592 { # Represents a part of a training phrase.
1593 &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.
1594 &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.
1595 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1596 &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.
1597 },
1598 ],
1599 &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.
1600 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1601 },
1602 ],
1603 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1604}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001605</div>
1606
1607<div class="method">
1608 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001609 <pre>Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001610
1611Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001612 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 -07001613 x__xgafv: string, V1 error format.
1614 Allowed values
1615 1 - v1 error format
1616 2 - v2 error format
1617
1618Returns:
1619 An object of the form:
1620
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001621 { # 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 -08001622}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623</div>
1624
1625<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001626 <code class="details" id="get">get(name, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 <pre>Retrieves the specified intent.
1628
1629Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001630 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 -07001631 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001632 Allowed values
1633 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1634 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001635 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 -07001636 x__xgafv: string, V1 error format.
1637 Allowed values
1638 1 - v1 error format
1639 2 - v2 error format
1640
1641Returns:
1642 An object of the form:
1643
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001644 { # 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 -08001645 &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.
1646 &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).
1647 &quot;A String&quot;,
1648 ],
1649 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
1650 &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.
1651 &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.
1652 &quot;A String&quot;,
1653 ],
1654 &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.
1655 { # Represents a single followup intent in the chain.
1656 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
1657 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
1658 },
1659 ],
1660 &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/`
1661 &quot;A String&quot;,
1662 ],
1663 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001664 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001665 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
1666 { # Corresponds to the `Response` field in the Dialogflow console.
1667 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1668 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1669 { # The button object that appears at the bottom of a card.
1670 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1671 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001673 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001674 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001675 ],
1676 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1677 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001678 &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.
1679 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1680 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001681 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1682 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001684 &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.
1685 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1686 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1687 { # Browsing carousel tile
1688 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1689 &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.
1690 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1691 &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.
1692 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1693 },
1694 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1695 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1696 &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.
1697 },
1698 &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 -08001699 },
1700 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001701 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001702 &quot;card&quot;: { # The card response message. # Displays a card.
1703 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1704 { # Optional. Contains information about a button.
1705 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1706 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1707 },
1708 ],
1709 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1710 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1711 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1712 },
1713 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1714 &quot;items&quot;: [ # Required. Carousel items.
1715 { # An item in the carousel.
1716 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1717 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1718 &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.
1719 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1720 },
1721 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1722 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1723 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1724 &quot;A String&quot;,
1725 ],
1726 },
1727 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1728 },
1729 ],
1730 },
1731 &quot;image&quot;: { # The image response message. # Displays an image.
1732 &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.
1733 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1734 },
1735 &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.
1736 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1737 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1738 },
1739 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1740 &quot;items&quot;: [ # Required. List items.
1741 { # An item in the list.
1742 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1743 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1744 &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.
1745 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1746 },
1747 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1748 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1749 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1750 &quot;A String&quot;,
1751 ],
1752 },
1753 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
1754 },
1755 ],
1756 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1757 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1758 },
1759 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1760 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1761 { # Response media object for media content card.
1762 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1763 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1764 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1765 &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.
1766 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1767 },
1768 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1769 &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.
1770 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1771 },
1772 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1773 },
1774 ],
1775 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1776 },
1777 &quot;payload&quot;: { # A custom platform-specific response.
1778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1779 },
1780 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1781 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1782 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001783 &quot;A String&quot;,
1784 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001785 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001786 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001787 &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.
1788 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1789 { # Rich Business Messaging (RBM) Card content
1790 &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.
1791 &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.
1792 &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.
1793 &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.
1794 &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.
1795 },
1796 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1797 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1798 &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
1799 &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
1800 &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.
1801 },
1802 &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
1803 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1804 },
1805 &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.
1806 &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
1807 },
1808 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1809 },
1810 &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
1811 &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.
1812 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1813 },
1814 },
1815 ],
1816 &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.
1817 },
1818 ],
1819 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1820 },
1821 &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.
1822 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1823 &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.
1824 &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.
1825 &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.
1826 &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.
1827 &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.
1828 },
1829 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1830 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1831 &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
1832 &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
1833 &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.
1834 },
1835 &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
1836 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1837 },
1838 &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.
1839 &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
1840 },
1841 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1842 },
1843 &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
1844 &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.
1845 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1846 },
1847 },
1848 ],
1849 &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.
1850 },
1851 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1852 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1853 },
1854 &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.
1855 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1856 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1857 &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
1858 &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
1859 &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.
1860 },
1861 &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
1862 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1863 },
1864 &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.
1865 &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
1866 },
1867 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1868 },
1869 &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
1870 &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.
1871 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1872 },
1873 },
1874 ],
1875 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1876 },
1877 &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.
1878 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1879 { # The simple response message containing speech or text.
1880 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1881 &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.
1882 &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.
1883 },
1884 ],
1885 },
1886 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1887 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1888 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1889 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1890 },
1891 ],
1892 },
1893 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
1894 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1895 { # The button object that appears at the bottom of a card.
1896 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1897 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1898 },
1899 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1900 },
1901 ],
1902 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1903 { # Column properties for TableCard.
1904 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1905 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1906 },
1907 ],
1908 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
1909 &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.
1910 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1911 },
1912 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1913 { # Row of TableCard.
1914 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1915 { # Cell of TableCardRow.
1916 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1917 },
1918 ],
1919 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1920 },
1921 ],
1922 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
1923 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
1924 },
1925 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1926 &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.
1927 },
1928 &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.
1929 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1930 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1931 },
1932 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1933 &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).
1934 },
1935 &quot;text&quot;: { # The text response message. # Returns a text response.
1936 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1937 &quot;A String&quot;,
1938 ],
1939 },
1940 },
1941 ],
1942 &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.
1943 &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.
1944 &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/`
1945 &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/`.
1946 { # 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).
1947 &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.
1948 &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 -08001949 &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 -08001950 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1951 },
1952 },
1953 ],
1954 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1955 { # Represents intent parameters.
1956 &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`.
1957 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1958 &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.
1959 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1960 &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.
1961 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1962 &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.
1963 &quot;A String&quot;,
1964 ],
1965 &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`.
1966 },
1967 ],
1968 &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/`.
1969 &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.
1970 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1971 &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/`.
1972 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1973 { # Represents an example that the agent is trained on.
1974 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1975 &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.
1976 { # Represents a part of a training phrase.
1977 &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.
1978 &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.
1979 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1980 &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.
1981 },
1982 ],
1983 &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.
1984 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1985 },
1986 ],
1987 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1988}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001989</div>
1990
1991<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001992 <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 -07001993 <pre>Returns the list of all intents in the specified agent.
1994
1995Args:
yoshi-code-bot7700bbf2021-05-20 04:44:03 -07001996 parent: string, Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001997 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001998 Allowed values
1999 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2000 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002001 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).
2002 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
2003 pageToken: string, Optional. The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002004 x__xgafv: string, V1 error format.
2005 Allowed values
2006 1 - v1 error format
2007 2 - v2 error format
2008
2009Returns:
2010 An object of the form:
2011
2012 { # The response message for Intents.ListIntents.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002013 &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.
2014 { # 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).
2015 &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.
2016 &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).
2017 &quot;A String&quot;,
2018 ],
2019 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2020 &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.
2021 &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.
2022 &quot;A String&quot;,
2023 ],
2024 &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.
2025 { # Represents a single followup intent in the chain.
2026 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2027 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2028 },
2029 ],
2030 &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/`
2031 &quot;A String&quot;,
2032 ],
2033 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002034 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002035 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2036 { # Corresponds to the `Response` field in the Dialogflow console.
2037 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2038 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2039 { # The button object that appears at the bottom of a card.
2040 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2041 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002042 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002043 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002045 ],
2046 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2047 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002048 &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.
2049 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2050 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002051 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2052 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002053 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002054 &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.
2055 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2056 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2057 { # Browsing carousel tile
2058 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2059 &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.
2060 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2061 &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.
2062 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2063 },
2064 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2065 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2066 &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.
2067 },
2068 &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 -08002069 },
2070 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002071 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002072 &quot;card&quot;: { # The card response message. # Displays a card.
2073 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2074 { # Optional. Contains information about a button.
2075 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2076 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2077 },
2078 ],
2079 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2080 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2081 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2082 },
2083 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2084 &quot;items&quot;: [ # Required. Carousel items.
2085 { # An item in the carousel.
2086 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2087 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2088 &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.
2089 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2090 },
2091 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2092 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2093 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2094 &quot;A String&quot;,
2095 ],
2096 },
2097 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2098 },
2099 ],
2100 },
2101 &quot;image&quot;: { # The image response message. # Displays an image.
2102 &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.
2103 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2104 },
2105 &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.
2106 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2107 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2108 },
2109 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2110 &quot;items&quot;: [ # Required. List items.
2111 { # An item in the list.
2112 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2113 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2114 &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.
2115 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2116 },
2117 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2118 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2119 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2120 &quot;A String&quot;,
2121 ],
2122 },
2123 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2124 },
2125 ],
2126 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2127 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2128 },
2129 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2130 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2131 { # Response media object for media content card.
2132 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2133 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2134 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2135 &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.
2136 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2137 },
2138 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2139 &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.
2140 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2141 },
2142 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2143 },
2144 ],
2145 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2146 },
2147 &quot;payload&quot;: { # A custom platform-specific response.
2148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2149 },
2150 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2151 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2152 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002153 &quot;A String&quot;,
2154 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002155 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002156 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002157 &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.
2158 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2159 { # Rich Business Messaging (RBM) Card content
2160 &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.
2161 &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.
2162 &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.
2163 &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.
2164 &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.
2165 },
2166 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2167 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2168 &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
2169 &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
2170 &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.
2171 },
2172 &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
2173 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2174 },
2175 &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.
2176 &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
2177 },
2178 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2179 },
2180 &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
2181 &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.
2182 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2183 },
2184 },
2185 ],
2186 &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.
2187 },
2188 ],
2189 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2190 },
2191 &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.
2192 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2193 &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.
2194 &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.
2195 &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.
2196 &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.
2197 &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.
2198 },
2199 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2200 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2201 &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
2202 &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
2203 &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.
2204 },
2205 &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
2206 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2207 },
2208 &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.
2209 &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
2210 },
2211 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2212 },
2213 &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
2214 &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.
2215 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2216 },
2217 },
2218 ],
2219 &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.
2220 },
2221 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2222 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2223 },
2224 &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.
2225 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2226 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2227 &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
2228 &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
2229 &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.
2230 },
2231 &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
2232 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2233 },
2234 &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.
2235 &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
2236 },
2237 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2238 },
2239 &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
2240 &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.
2241 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2242 },
2243 },
2244 ],
2245 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2246 },
2247 &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.
2248 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2249 { # The simple response message containing speech or text.
2250 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2251 &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.
2252 &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.
2253 },
2254 ],
2255 },
2256 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2257 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2258 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2259 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2260 },
2261 ],
2262 },
2263 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2264 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2265 { # The button object that appears at the bottom of a card.
2266 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2267 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2268 },
2269 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2270 },
2271 ],
2272 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2273 { # Column properties for TableCard.
2274 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2275 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2276 },
2277 ],
2278 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2279 &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.
2280 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2281 },
2282 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2283 { # Row of TableCard.
2284 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2285 { # Cell of TableCardRow.
2286 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2287 },
2288 ],
2289 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2290 },
2291 ],
2292 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2293 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
2294 },
2295 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2296 &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.
2297 },
2298 &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.
2299 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2300 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2301 },
2302 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2303 &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).
2304 },
2305 &quot;text&quot;: { # The text response message. # Returns a text response.
2306 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2307 &quot;A String&quot;,
2308 ],
2309 },
2310 },
2311 ],
2312 &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.
2313 &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.
2314 &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/`
2315 &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/`.
2316 { # 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).
2317 &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.
2318 &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 -08002319 &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 -08002320 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2321 },
2322 },
2323 ],
2324 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2325 { # Represents intent parameters.
2326 &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`.
2327 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2328 &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.
2329 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2330 &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.
2331 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2332 &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.
2333 &quot;A String&quot;,
2334 ],
2335 &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`.
2336 },
2337 ],
2338 &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/`.
2339 &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.
2340 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2341 &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/`.
2342 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2343 { # Represents an example that the agent is trained on.
2344 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2345 &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.
2346 { # Represents a part of a training phrase.
2347 &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.
2348 &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.
2349 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2350 &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.
2351 },
2352 ],
2353 &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.
2354 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2355 },
2356 ],
2357 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2358 },
2359 ],
2360 &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.
2361}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002362</div>
2363
2364<div class="method">
2365 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2366 <pre>Retrieves the next page of results.
2367
2368Args:
2369 previous_request: The request for the previous page. (required)
2370 previous_response: The response from the request for the previous page. (required)
2371
2372Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002373 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002374 page. Returns None if there are no more items in the collection.
2375 </pre>
2376</div>
2377
2378<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002379 <code class="details" id="patch">patch(name, body=None, intentView=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002380 <pre>Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002381
2382Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002383 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 -07002384 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002385 The object takes the form of:
2386
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002387{ # 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 -08002388 &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 -08002389 &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).
2390 &quot;A String&quot;,
2391 ],
2392 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2393 &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.
2394 &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.
2395 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002396 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002397 &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.
2398 { # Represents a single followup intent in the chain.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002399 &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 -08002400 &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 -08002401 },
2402 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002403 &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/`
2404 &quot;A String&quot;,
2405 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002406 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002407 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002408 &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 -07002409 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002410 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2411 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2412 { # The button object that appears at the bottom of a card.
2413 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2414 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2415 },
2416 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2417 },
2418 ],
2419 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2420 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2421 &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.
2422 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2423 },
2424 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2425 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002426 },
2427 &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.
2428 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2429 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2430 { # Browsing carousel tile
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002431 &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 -08002432 &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.
2433 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2434 &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.
2435 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2436 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002437 &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 -08002438 &quot;url&quot;: &quot;A String&quot;, # Required. URL
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002439 &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 -08002440 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002441 &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 -07002442 },
2443 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002444 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002445 &quot;card&quot;: { # The card response message. # Displays a card.
2446 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2447 { # Optional. Contains information about a button.
2448 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2449 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2450 },
2451 ],
2452 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2453 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2454 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2455 },
2456 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2457 &quot;items&quot;: [ # Required. Carousel items.
2458 { # An item in the carousel.
2459 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2460 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2461 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2462 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2463 },
2464 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2465 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2466 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2467 &quot;A String&quot;,
2468 ],
2469 },
2470 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2471 },
2472 ],
2473 },
2474 &quot;image&quot;: { # The image response message. # Displays an image.
2475 &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.
2476 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2477 },
2478 &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.
2479 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2480 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2481 },
2482 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2483 &quot;items&quot;: [ # Required. List items.
2484 { # An item in the list.
2485 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2486 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2487 &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.
2488 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2489 },
2490 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2491 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2492 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2493 &quot;A String&quot;,
2494 ],
2495 },
2496 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2497 },
2498 ],
2499 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2500 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2501 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002502 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2503 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2504 { # Response media object for media content card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002505 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002506 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2507 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2508 &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.
2509 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2510 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002511 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2512 &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.
2513 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2514 },
2515 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002516 },
2517 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002518 &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 -08002519 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002520 &quot;payload&quot;: { # A custom platform-specific response.
2521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002523 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2524 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2525 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2526 &quot;A String&quot;,
2527 ],
2528 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Bu Sun Kim65020912020-05-20 12:08:20 -07002529 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002530 &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 -08002531 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2532 { # Rich Business Messaging (RBM) Card content
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002533 &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.
2534 &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.
2535 &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.
2536 &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.
2537 &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.
2538 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002539 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2540 { # 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 -08002541 &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 -08002542 &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
2543 &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 -08002544 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002545 &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
2546 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002547 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002548 &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.
2549 &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
2550 },
2551 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2552 },
2553 &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
2554 &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.
2555 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002556 },
2557 },
2558 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002559 &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 -08002560 },
2561 ],
2562 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2563 },
2564 &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.
2565 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2566 &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.
2567 &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.
2568 &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.
2569 &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.
2570 &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.
2571 },
2572 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2573 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2574 &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
2575 &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
2576 &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.
2577 },
2578 &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
2579 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2580 },
2581 &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.
2582 &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
2583 },
2584 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2585 },
2586 &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
2587 &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.
2588 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2589 },
2590 },
2591 ],
2592 &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.
2593 },
2594 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2595 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2596 },
2597 &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.
2598 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2599 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2600 &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
2601 &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
2602 &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.
2603 },
2604 &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
2605 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2606 },
2607 &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.
2608 &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
2609 },
2610 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2611 },
2612 &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
2613 &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.
2614 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002615 },
2616 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002617 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002618 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002619 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002620 &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.
2621 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2622 { # The simple response message containing speech or text.
2623 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2624 &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.
2625 &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.
2626 },
2627 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002628 },
2629 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2630 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2631 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2632 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2633 },
2634 ],
2635 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002636 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002637 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2638 { # The button object that appears at the bottom of a card.
2639 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2640 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2641 },
2642 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2643 },
2644 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002645 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2646 { # Column properties for TableCard.
2647 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2648 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2649 },
2650 ],
2651 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
2652 &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.
2653 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2654 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002655 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2656 { # Row of TableCard.
2657 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2658 { # Cell of TableCardRow.
2659 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2660 },
2661 ],
2662 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2663 },
2664 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002665 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
2666 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002667 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002668 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2669 &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 -08002670 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002671 &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.
2672 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2673 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002674 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002675 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2676 &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 -08002677 },
2678 &quot;text&quot;: { # The text response message. # Returns a text response.
2679 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2680 &quot;A String&quot;,
2681 ],
2682 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002683 },
2684 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002685 &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.
2686 &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.
2687 &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/`
2688 &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/`.
2689 { # 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).
2690 &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.
2691 &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 -08002692 &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 -08002693 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2694 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002695 },
2696 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002697 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2698 { # Represents intent parameters.
2699 &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 -08002700 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002701 &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.
2702 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002703 &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 -08002704 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002705 &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.
2706 &quot;A String&quot;,
2707 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002708 &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 -08002709 },
2710 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002711 &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/`.
2712 &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.
2713 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2714 &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/`.
2715 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2716 { # Represents an example that the agent is trained on.
2717 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2718 &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.
2719 { # Represents a part of a training phrase.
2720 &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.
2721 &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.
2722 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2723 &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.
2724 },
2725 ],
2726 &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.
2727 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2728 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002729 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002730 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002731}
2732
Bu Sun Kim65020912020-05-20 12:08:20 -07002733 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002734 Allowed values
2735 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2736 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002737 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 -08002738 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002739 x__xgafv: string, V1 error format.
2740 Allowed values
2741 1 - v1 error format
2742 2 - v2 error format
2743
2744Returns:
2745 An object of the form:
2746
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002747 { # 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 -08002748 &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.
2749 &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).
2750 &quot;A String&quot;,
2751 ],
2752 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
2753 &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.
2754 &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.
2755 &quot;A String&quot;,
2756 ],
2757 &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.
2758 { # Represents a single followup intent in the chain.
2759 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
2760 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
2761 },
2762 ],
2763 &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/`
2764 &quot;A String&quot;,
2765 ],
2766 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002767 &quot;liveAgentHandoff&quot;: True or False, # Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002768 &quot;messages&quot;: [ # Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
2769 { # Corresponds to the `Response` field in the Dialogflow console.
2770 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2771 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2772 { # The button object that appears at the bottom of a card.
2773 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2774 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002775 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002776 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002777 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002778 ],
2779 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2780 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002781 &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.
2782 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2783 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002784 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2785 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
Bu Sun Kim65020912020-05-20 12:08:20 -07002786 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002787 &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.
2788 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2789 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2790 { # Browsing carousel tile
2791 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2792 &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.
2793 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2794 &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.
2795 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2796 },
2797 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2798 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2799 &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.
2800 },
2801 &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 -08002802 },
2803 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002804 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002805 &quot;card&quot;: { # The card response message. # Displays a card.
2806 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2807 { # Optional. Contains information about a button.
2808 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2809 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2810 },
2811 ],
2812 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2813 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2814 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2815 },
2816 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2817 &quot;items&quot;: [ # Required. Carousel items.
2818 { # An item in the carousel.
2819 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2820 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2821 &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.
2822 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2823 },
2824 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2825 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2826 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2827 &quot;A String&quot;,
2828 ],
2829 },
2830 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2831 },
2832 ],
2833 },
2834 &quot;image&quot;: { # The image response message. # Displays an image.
2835 &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.
2836 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2837 },
2838 &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.
2839 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2840 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2841 },
2842 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2843 &quot;items&quot;: [ # Required. List items.
2844 { # An item in the list.
2845 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2846 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2847 &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.
2848 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2849 },
2850 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2851 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2852 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2853 &quot;A String&quot;,
2854 ],
2855 },
2856 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
2857 },
2858 ],
2859 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2860 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2861 },
2862 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2863 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2864 { # Response media object for media content card.
2865 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2866 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2867 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2868 &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.
2869 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2870 },
2871 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2872 &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.
2873 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2874 },
2875 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2876 },
2877 ],
2878 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2879 },
2880 &quot;payload&quot;: { # A custom platform-specific response.
2881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2882 },
2883 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2884 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2885 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002886 &quot;A String&quot;,
2887 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002888 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002889 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002890 &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.
2891 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2892 { # Rich Business Messaging (RBM) Card content
2893 &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.
2894 &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.
2895 &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.
2896 &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.
2897 &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.
2898 },
2899 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2900 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2901 &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
2902 &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
2903 &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.
2904 },
2905 &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
2906 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2907 },
2908 &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.
2909 &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
2910 },
2911 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2912 },
2913 &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
2914 &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.
2915 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2916 },
2917 },
2918 ],
2919 &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.
2920 },
2921 ],
2922 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2923 },
2924 &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.
2925 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2926 &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.
2927 &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.
2928 &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.
2929 &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.
2930 &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.
2931 },
2932 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2933 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2934 &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
2935 &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
2936 &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.
2937 },
2938 &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
2939 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2940 },
2941 &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.
2942 &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
2943 },
2944 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2945 },
2946 &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
2947 &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.
2948 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2949 },
2950 },
2951 ],
2952 &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.
2953 },
2954 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2955 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2956 },
2957 &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.
2958 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2959 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2960 &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
2961 &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
2962 &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.
2963 },
2964 &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
2965 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2966 },
2967 &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.
2968 &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
2969 },
2970 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2971 },
2972 &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
2973 &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.
2974 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2975 },
2976 },
2977 ],
2978 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2979 },
2980 &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.
2981 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2982 { # The simple response message containing speech or text.
2983 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2984 &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.
2985 &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.
2986 },
2987 ],
2988 },
2989 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2990 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2991 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2992 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2993 },
2994 ],
2995 },
2996 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
2997 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2998 { # The button object that appears at the bottom of a card.
2999 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
3000 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3001 },
3002 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
3003 },
3004 ],
3005 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
3006 { # Column properties for TableCard.
3007 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
3008 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
3009 },
3010 ],
3011 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
3012 &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.
3013 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3014 },
3015 &quot;rows&quot;: [ # Optional. Rows in this table of data.
3016 { # Row of TableCard.
3017 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
3018 { # Cell of TableCardRow.
3019 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
3020 },
3021 ],
3022 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
3023 },
3024 ],
3025 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
3026 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
3027 },
3028 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
3029 &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.
3030 },
3031 &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.
3032 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
3033 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
3034 },
3035 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
3036 &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).
3037 },
3038 &quot;text&quot;: { # The text response message. # Returns a text response.
3039 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
3040 &quot;A String&quot;,
3041 ],
3042 },
3043 },
3044 ],
3045 &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.
3046 &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.
3047 &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/`
3048 &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/`.
3049 { # 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).
3050 &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.
3051 &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 -08003052 &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 -08003053 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
3054 },
3055 },
3056 ],
3057 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3058 { # Represents intent parameters.
3059 &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`.
3060 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3061 &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.
3062 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3063 &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.
3064 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3065 &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.
3066 &quot;A String&quot;,
3067 ],
3068 &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`.
3069 },
3070 ],
3071 &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/`.
3072 &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.
3073 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
3074 &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/`.
3075 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
3076 { # Represents an example that the agent is trained on.
3077 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
3078 &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.
3079 { # Represents a part of a training phrase.
3080 &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.
3081 &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.
3082 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
3083 &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.
3084 },
3085 ],
3086 &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.
3087 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
3088 },
3089 ],
3090 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3091}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003092</div>
3093
3094</body></html>