blob: 7591dab243f03382b8adf14381095a78a60ea807 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.agent.html">agent</a> . <a href="dialogflow_v2beta1.projects.agent.intents.html">intents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Deletes intents in the specified agent. Operation </p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Updates/Creates multiple intents in the specified agent. Operation </p>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080087 <code><a href="#create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Creates an intent in the specified agent.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Deletes the specified intent and its direct or indirect followup intents.</p>
92<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#get">get(name, languageCode=None, intentView=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves the specified intent.</p>
95<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080096 <code><a href="#list">list(parent, intentView=None, pageToken=None, pageSize=None, languageCode=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 Bot0d561ef2020-11-25 07:50:41 -0800102 <code><a href="#patch">patch(name, body=None, updateMask=None, intentView=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the specified intent.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107 <pre>Deletes intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 parent: string, Required. The name of the agent to delete all entities types for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # The request message for Intents.BatchDeleteIntents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 &quot;intents&quot;: [ # Required. The collection of intents to delete. Only intent `name` must be filled in.
116 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800117 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800118 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700119 &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/`.
120 { # 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).
121 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
122 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
123 },
124 &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`
125 &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.
126 },
127 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800128 &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.
129 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
130 { # Represents an example that the agent is trained on.
131 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
132 &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.
133 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
134 &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.
135 { # Represents a part of a training phrase.
136 &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.
137 &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.
138 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
139 &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.
140 },
141 ],
142 },
143 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 &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/`
146 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700147 &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 -0700148 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800150 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800151 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800152 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800153 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800154 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800155 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;rows&quot;: [ # Optional. Rows in this table of data.
157 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
159 { # Cell of TableCardRow.
160 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
161 },
162 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
164 },
165 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800166 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
167 { # Column properties for TableCard.
168 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
169 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
170 },
171 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700172 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
173 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800174 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700175 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
176 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
177 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 },
179 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800180 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800181 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
182 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
183 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
184 &quot;items&quot;: [ # Required. List items.
185 { # An item in the list.
186 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
187 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
188 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
189 &quot;A String&quot;,
190 ],
191 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800192 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800193 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800194 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800195 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800197 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800198 },
199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 &quot;payload&quot;: { # A custom platform-specific response.
202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700204 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
205 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
206 &quot;A String&quot;,
207 ],
208 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
209 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800210 &quot;text&quot;: { # The text response message. # Returns a text response.
211 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
212 &quot;A String&quot;,
213 ],
214 },
215 &quot;image&quot;: { # The image response message. # Displays an image.
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;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.
220 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
221 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
222 },
223 &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.
224 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
225 { # Rich Business Messaging (RBM) Card content
226 &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.
227 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
228 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
229 &quot;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.
230 &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.
231 },
232 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
233 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
234 &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
235 &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
236 &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.
237 },
238 &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
239 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
240 },
241 &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
242 },
243 &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.
244 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
245 },
246 &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
247 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
248 &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.
249 },
250 },
251 ],
252 &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.
253 },
254 ],
255 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
256 },
257 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
258 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
259 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
260 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
261 },
262 ],
263 },
264 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
265 &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.
266 },
267 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
268 &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.
269 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
270 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
271 &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.
272 &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.
273 &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.
274 &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.
275 &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.
276 },
277 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
278 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
279 &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
280 &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
281 &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.
282 },
283 &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
284 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
285 },
286 &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
287 },
288 &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.
289 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
290 },
291 &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
292 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
293 &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.
294 },
295 },
296 ],
297 &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.
298 },
299 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
300 },
301 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
302 &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).
303 },
304 &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.
305 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
306 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
307 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
308 &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
309 &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
310 &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.
311 },
312 &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
313 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
314 },
315 &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
316 },
317 &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.
318 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
319 },
320 &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
321 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
322 &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.
323 },
324 },
325 ],
326 },
327 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
328 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
329 &quot;mediaObjects&quot;: [ # Required. List of media objects.
330 { # Response media object for media content card.
331 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
332 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
333 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
334 &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.
335 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
336 },
337 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
338 &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.
339 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
340 },
341 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
342 },
343 ],
344 },
345 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
346 &quot;items&quot;: [ # Required. Carousel items.
347 { # An item in the carousel.
348 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
349 &quot;image&quot;: { # The image response message. # Optional. The image to display.
350 &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.
351 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
352 },
353 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
354 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
355 &quot;A String&quot;,
356 ],
357 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
358 },
359 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
360 },
361 ],
362 },
363 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
364 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
365 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
366 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
367 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
368 &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.
369 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
370 },
371 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
372 { # The button object that appears at the bottom of a card.
373 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
374 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
375 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
376 },
377 },
378 ],
379 },
380 &quot;card&quot;: { # The card response message. # Displays a card.
381 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
382 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
383 { # Optional. Contains information about a button.
384 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
385 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
386 },
387 ],
388 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
389 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
390 },
391 &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.
392 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
393 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
394 },
395 &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.
396 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
397 { # The simple response message containing speech or text.
398 &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.
399 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
400 &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.
401 },
402 ],
403 },
404 &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.
405 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
406 { # Browsing carousel tile
407 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
408 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
409 &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.
410 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
411 },
412 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
413 &quot;url&quot;: &quot;A String&quot;, # Required. URL
414 &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.
415 },
416 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
417 &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.
418 },
419 ],
420 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
421 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 },
423 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800424 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
425 &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/`
426 &quot;A String&quot;,
427 ],
428 &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).
429 &quot;A String&quot;,
430 ],
431 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
432 { # Represents intent parameters.
433 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
434 &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`.
435 &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.
436 &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.
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 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
439 &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.
440 &quot;A String&quot;,
441 ],
442 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
443 },
444 ],
445 &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/`.
446 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
447 &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.
448 &quot;A String&quot;,
449 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700450 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800451 &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.
452 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800453 &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.
454 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800455 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800456 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800457 },
458 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 },
460 ],
461 }
462
463 x__xgafv: string, V1 error format.
464 Allowed values
465 1 - v1 error format
466 2 - v2 error format
467
468Returns:
469 An object of the form:
470
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 { # This resource represents a long-running operation that is the result of a network API call.
472 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800473 &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.
474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700476 {
477 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
478 },
479 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700480 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 &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.
482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
483 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800484 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800485 &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`.
486 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
487 },
488 &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}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 }</pre>
490</div>
491
492<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 <pre>Updates/Creates multiple intents in the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495
496Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 parent: string, Required. The name of the agent to update or create intents in. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 The object takes the form of:
500
501{ # The request message for Intents.BatchUpdateIntents.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;intentBatchInline&quot;: { # This message is a wrapper around a collection of intents. # The collection of intents to update or create.
503 &quot;intents&quot;: [ # A collection of intents.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700504 { # 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 Botc2228be2020-11-24 15:48:03 -0800505 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800506 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700507 &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/`.
508 { # 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).
509 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
510 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
511 },
512 &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`
513 &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.
514 },
515 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800516 &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.
517 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
518 { # Represents an example that the agent is trained on.
519 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
520 &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.
521 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
522 &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.
523 { # Represents a part of a training phrase.
524 &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.
525 &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.
526 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
527 &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.
528 },
529 ],
530 },
531 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700532 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800533 &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/`
534 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700535 &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 -0700536 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800537 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800538 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800540 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800541 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800542 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800543 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;rows&quot;: [ # Optional. Rows in this table of data.
545 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
547 { # Cell of TableCardRow.
548 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
549 },
550 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700551 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
552 },
553 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800554 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
555 { # Column properties for TableCard.
556 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
557 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
558 },
559 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700560 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
561 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800562 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700563 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
564 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
565 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 },
567 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800568 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800569 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
570 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
571 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
572 &quot;items&quot;: [ # Required. List items.
573 { # An item in the list.
574 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
575 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
576 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
577 &quot;A String&quot;,
578 ],
579 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800580 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800581 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800582 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800583 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800584 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800585 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800586 },
587 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700589 &quot;payload&quot;: { # A custom platform-specific response.
590 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700592 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
593 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
594 &quot;A String&quot;,
595 ],
596 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
597 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800598 &quot;text&quot;: { # The text response message. # Returns a text response.
599 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
600 &quot;A String&quot;,
601 ],
602 },
603 &quot;image&quot;: { # The image response message. # Displays an image.
604 &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.
605 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
606 },
607 &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.
608 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
609 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
610 },
611 &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.
612 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
613 { # Rich Business Messaging (RBM) Card content
614 &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.
615 &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.
616 &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.
617 &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.
618 &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.
619 },
620 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
621 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
622 &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
623 &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
624 &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.
625 },
626 &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
627 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
628 },
629 &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
630 },
631 &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.
632 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
633 },
634 &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
635 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
636 &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.
637 },
638 },
639 ],
640 &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.
641 },
642 ],
643 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
644 },
645 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
646 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
647 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
648 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
649 },
650 ],
651 },
652 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
653 &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.
654 },
655 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
656 &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.
657 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
658 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
659 &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.
660 &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.
661 &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.
662 &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.
663 &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.
664 },
665 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
666 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
667 &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
668 &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
669 &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.
670 },
671 &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
672 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
673 },
674 &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
675 },
676 &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.
677 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
678 },
679 &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
680 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
681 &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.
682 },
683 },
684 ],
685 &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.
686 },
687 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
688 },
689 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
690 &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).
691 },
692 &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.
693 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
694 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
695 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
696 &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
697 &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
698 &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.
699 },
700 &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
701 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
702 },
703 &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
704 },
705 &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.
706 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
707 },
708 &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
709 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
710 &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.
711 },
712 },
713 ],
714 },
715 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
716 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
717 &quot;mediaObjects&quot;: [ # Required. List of media objects.
718 { # Response media object for media content card.
719 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
720 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
721 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
722 &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.
723 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
724 },
725 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
726 &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.
727 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
728 },
729 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
730 },
731 ],
732 },
733 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
734 &quot;items&quot;: [ # Required. Carousel items.
735 { # An item in the carousel.
736 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
737 &quot;image&quot;: { # The image response message. # Optional. The image to display.
738 &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.
739 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
740 },
741 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
742 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
743 &quot;A String&quot;,
744 ],
745 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
746 },
747 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
748 },
749 ],
750 },
751 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
752 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
753 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
754 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
755 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
756 &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.
757 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
758 },
759 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
760 { # The button object that appears at the bottom of a card.
761 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
762 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
763 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
764 },
765 },
766 ],
767 },
768 &quot;card&quot;: { # The card response message. # Displays a card.
769 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
770 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
771 { # Optional. Contains information about a button.
772 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
773 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
774 },
775 ],
776 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
777 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
778 },
779 &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.
780 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
781 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
782 },
783 &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.
784 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
785 { # The simple response message containing speech or text.
786 &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.
787 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
788 &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.
789 },
790 ],
791 },
792 &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.
793 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
794 { # Browsing carousel tile
795 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
796 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
797 &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.
798 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
799 },
800 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
801 &quot;url&quot;: &quot;A String&quot;, # Required. URL
802 &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.
803 },
804 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
805 &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.
806 },
807 ],
808 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
809 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 },
811 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800812 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
813 &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/`
814 &quot;A String&quot;,
815 ],
816 &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).
817 &quot;A String&quot;,
818 ],
819 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
820 { # Represents intent parameters.
821 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
822 &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`.
823 &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.
824 &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.
825 &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`.
826 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
827 &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.
828 &quot;A String&quot;,
829 ],
830 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
831 },
832 ],
833 &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/`.
834 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
835 &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.
836 &quot;A String&quot;,
837 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700838 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800839 &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.
840 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800841 &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.
842 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800843 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800844 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800845 },
846 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 },
848 ],
849 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700850 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The mask to control which fields get updated.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800851 &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;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800852 &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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800853 &quot;intentView&quot;: &quot;A String&quot;, # Optional. The resource view to apply to the returned intent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 }
855
856 x__xgafv: string, V1 error format.
857 Allowed values
858 1 - v1 error format
859 2 - v2 error format
860
861Returns:
862 An object of the form:
863
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 { # This resource represents a long-running operation that is the result of a network API call.
865 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800866 &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.
867 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700868 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700869 {
870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
871 },
872 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700873 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700874 &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.
875 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
876 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800877 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800878 &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`.
879 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
880 },
881 &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}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700882 }</pre>
883</div>
884
885<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700886 <code class="details" id="close">close()</code>
887 <pre>Close httplib2 connections.</pre>
888</div>
889
890<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800891 <code class="details" id="create">create(parent, body=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700892 <pre>Creates an intent in the specified agent.
893
894Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700895 parent: string, Required. The agent to create a intent for. Supported formats: - `projects//agent` - `projects//locations//agent` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700896 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 The object takes the form of:
898
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700899{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800900 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800901 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700902 &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/`.
903 { # 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).
904 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
905 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
906 },
907 &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`
908 &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.
909 },
910 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800911 &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.
912 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
913 { # Represents an example that the agent is trained on.
914 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
915 &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.
916 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
917 &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.
918 { # Represents a part of a training phrase.
919 &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.
920 &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.
921 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
922 &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.
923 },
924 ],
925 },
926 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700927 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800928 &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/`
929 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700930 &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 -0700931 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800932 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800933 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800934 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800935 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800936 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800937 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800938 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;rows&quot;: [ # Optional. Rows in this table of data.
940 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
942 { # Cell of TableCardRow.
943 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
944 },
945 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700946 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
947 },
948 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800949 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
950 { # Column properties for TableCard.
951 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
952 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
953 },
954 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700955 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
956 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800957 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700958 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
959 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
960 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 },
962 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800963 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800964 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
965 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
966 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
967 &quot;items&quot;: [ # Required. List items.
968 { # An item in the list.
969 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
970 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
971 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
972 &quot;A String&quot;,
973 ],
974 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800975 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800976 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800977 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800978 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800979 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800980 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800981 },
982 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700983 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700984 &quot;payload&quot;: { # A custom platform-specific response.
985 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700986 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700987 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
988 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
989 &quot;A String&quot;,
990 ],
991 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
992 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800993 &quot;text&quot;: { # The text response message. # Returns a text response.
994 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
995 &quot;A String&quot;,
996 ],
997 },
998 &quot;image&quot;: { # The image response message. # Displays an image.
999 &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.
1000 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1001 },
1002 &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.
1003 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1004 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1005 },
1006 &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.
1007 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1008 { # Rich Business Messaging (RBM) Card content
1009 &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.
1010 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1011 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1012 &quot;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.
1013 &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.
1014 },
1015 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1016 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1017 &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
1018 &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
1019 &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.
1020 },
1021 &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
1022 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1023 },
1024 &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
1025 },
1026 &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.
1027 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1028 },
1029 &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
1030 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1031 &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.
1032 },
1033 },
1034 ],
1035 &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.
1036 },
1037 ],
1038 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1039 },
1040 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1041 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1042 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1043 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1044 },
1045 ],
1046 },
1047 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1048 &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.
1049 },
1050 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1051 &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.
1052 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1053 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1054 &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.
1055 &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.
1056 &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.
1057 &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.
1058 &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.
1059 },
1060 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1061 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1062 &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
1063 &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
1064 &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.
1065 },
1066 &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
1067 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1068 },
1069 &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
1070 },
1071 &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.
1072 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1073 },
1074 &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
1075 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1076 &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.
1077 },
1078 },
1079 ],
1080 &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.
1081 },
1082 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1083 },
1084 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1085 &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).
1086 },
1087 &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.
1088 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1089 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1090 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1091 &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
1092 &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
1093 &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.
1094 },
1095 &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
1096 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1097 },
1098 &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
1099 },
1100 &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.
1101 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1102 },
1103 &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
1104 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1105 &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.
1106 },
1107 },
1108 ],
1109 },
1110 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1111 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1112 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1113 { # Response media object for media content card.
1114 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1115 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1116 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1117 &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.
1118 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1119 },
1120 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1121 &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.
1122 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1123 },
1124 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1125 },
1126 ],
1127 },
1128 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1129 &quot;items&quot;: [ # Required. Carousel items.
1130 { # An item in the carousel.
1131 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1132 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1133 &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.
1134 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1135 },
1136 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1137 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1138 &quot;A String&quot;,
1139 ],
1140 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1141 },
1142 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1143 },
1144 ],
1145 },
1146 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1147 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1148 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1149 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1150 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1151 &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.
1152 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1153 },
1154 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1155 { # The button object that appears at the bottom of a card.
1156 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1157 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1158 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1159 },
1160 },
1161 ],
1162 },
1163 &quot;card&quot;: { # The card response message. # Displays a card.
1164 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1165 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1166 { # Optional. Contains information about a button.
1167 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1168 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1169 },
1170 ],
1171 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1172 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1173 },
1174 &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.
1175 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1176 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1177 },
1178 &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.
1179 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1180 { # The simple response message containing speech or text.
1181 &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.
1182 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1183 &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.
1184 },
1185 ],
1186 },
1187 &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.
1188 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1189 { # Browsing carousel tile
1190 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1191 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1192 &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.
1193 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1194 },
1195 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1196 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1197 &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.
1198 },
1199 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1200 &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.
1201 },
1202 ],
1203 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1204 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 },
1206 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001207 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1208 &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/`
1209 &quot;A String&quot;,
1210 ],
1211 &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).
1212 &quot;A String&quot;,
1213 ],
1214 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1215 { # Represents intent parameters.
1216 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1217 &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`.
1218 &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.
1219 &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.
1220 &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`.
1221 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1222 &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.
1223 &quot;A String&quot;,
1224 ],
1225 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1226 },
1227 ],
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;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1230 &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.
1231 &quot;A String&quot;,
1232 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001233 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001234 &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.
1235 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001236 &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.
1237 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001238 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001239 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001240 },
1241 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001242}
1243
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001244 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001245 Allowed values
1246 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1247 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001248 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 x__xgafv: string, V1 error format.
1250 Allowed values
1251 1 - v1 error format
1252 2 - v2 error format
1253
1254Returns:
1255 An object of the form:
1256
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001257 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001258 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001259 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001260 &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/`.
1261 { # 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).
1262 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1264 },
1265 &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`
1266 &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.
1267 },
1268 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001269 &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.
1270 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1271 { # Represents an example that the agent is trained on.
1272 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1273 &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.
1274 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1275 &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.
1276 { # Represents a part of a training phrase.
1277 &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.
1278 &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.
1279 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1280 &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.
1281 },
1282 ],
1283 },
1284 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001285 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001286 &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/`
1287 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001288 &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 -07001289 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001290 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001291 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001292 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001293 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001294 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001295 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001296 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1298 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1300 { # Cell of TableCardRow.
1301 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1302 },
1303 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001304 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1305 },
1306 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001307 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1308 { # Column properties for TableCard.
1309 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1310 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1311 },
1312 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001313 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1314 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001315 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001316 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1317 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1318 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001319 },
1320 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001321 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001322 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1323 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1324 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1325 &quot;items&quot;: [ # Required. List items.
1326 { # An item in the list.
1327 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1328 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1329 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1330 &quot;A String&quot;,
1331 ],
1332 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001333 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001334 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001335 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001336 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001337 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001338 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001339 },
1340 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001341 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001342 &quot;payload&quot;: { # A custom platform-specific response.
1343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001344 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001345 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1346 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1347 &quot;A String&quot;,
1348 ],
1349 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1350 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001351 &quot;text&quot;: { # The text response message. # Returns a text response.
1352 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1353 &quot;A String&quot;,
1354 ],
1355 },
1356 &quot;image&quot;: { # The image response message. # Displays an image.
1357 &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.
1358 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1359 },
1360 &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.
1361 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1362 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1363 },
1364 &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.
1365 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1366 { # Rich Business Messaging (RBM) Card content
1367 &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.
1368 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1369 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1370 &quot;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.
1371 &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.
1372 },
1373 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1374 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1375 &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
1376 &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
1377 &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.
1378 },
1379 &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
1380 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1381 },
1382 &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
1383 },
1384 &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.
1385 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1386 },
1387 &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
1388 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1389 &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.
1390 },
1391 },
1392 ],
1393 &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.
1394 },
1395 ],
1396 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1397 },
1398 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1399 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1400 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1401 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1402 },
1403 ],
1404 },
1405 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1406 &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.
1407 },
1408 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1409 &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.
1410 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1411 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1412 &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.
1413 &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.
1414 &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.
1415 &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.
1416 &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.
1417 },
1418 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1419 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1420 &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
1421 &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
1422 &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.
1423 },
1424 &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
1425 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1426 },
1427 &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
1428 },
1429 &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.
1430 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1431 },
1432 &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
1433 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1434 &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.
1435 },
1436 },
1437 ],
1438 &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.
1439 },
1440 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1441 },
1442 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1443 &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).
1444 },
1445 &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.
1446 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1447 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1448 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1449 &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
1450 &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
1451 &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.
1452 },
1453 &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
1454 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1455 },
1456 &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
1457 },
1458 &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.
1459 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1460 },
1461 &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
1462 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1463 &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.
1464 },
1465 },
1466 ],
1467 },
1468 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1469 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1470 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1471 { # Response media object for media content card.
1472 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1473 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1474 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1475 &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.
1476 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1477 },
1478 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1479 &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.
1480 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1481 },
1482 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1483 },
1484 ],
1485 },
1486 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1487 &quot;items&quot;: [ # Required. Carousel items.
1488 { # An item in the carousel.
1489 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1490 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1491 &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.
1492 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1493 },
1494 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1495 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1496 &quot;A String&quot;,
1497 ],
1498 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1499 },
1500 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1501 },
1502 ],
1503 },
1504 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1505 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1506 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1507 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1508 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1509 &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.
1510 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1511 },
1512 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1513 { # The button object that appears at the bottom of a card.
1514 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1515 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1516 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1517 },
1518 },
1519 ],
1520 },
1521 &quot;card&quot;: { # The card response message. # Displays a card.
1522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1523 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1524 { # Optional. Contains information about a button.
1525 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1526 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1527 },
1528 ],
1529 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1530 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1531 },
1532 &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.
1533 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1534 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1535 },
1536 &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.
1537 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1538 { # The simple response message containing speech or text.
1539 &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.
1540 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1541 &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.
1542 },
1543 ],
1544 },
1545 &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.
1546 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1547 { # Browsing carousel tile
1548 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1549 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1550 &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.
1551 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1552 },
1553 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1554 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1555 &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.
1556 },
1557 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1558 &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.
1559 },
1560 ],
1561 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1562 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001563 },
1564 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001565 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1566 &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/`
1567 &quot;A String&quot;,
1568 ],
1569 &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).
1570 &quot;A String&quot;,
1571 ],
1572 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1573 { # Represents intent parameters.
1574 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1575 &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`.
1576 &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.
1577 &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.
1578 &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`.
1579 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1580 &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.
1581 &quot;A String&quot;,
1582 ],
1583 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1584 },
1585 ],
1586 &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/`.
1587 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
1588 &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.
1589 &quot;A String&quot;,
1590 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001591 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001592 &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.
1593 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001594 &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.
1595 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001596 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001597 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001598 },
1599 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001600 }</pre>
1601</div>
1602
1603<div class="method">
1604 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1605 <pre>Deletes the specified intent and its direct or indirect followup intents.
1606
1607Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001608 name: string, Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 x__xgafv: string, V1 error format.
1610 Allowed values
1611 1 - v1 error format
1612 2 - v2 error format
1613
1614Returns:
1615 An object of the form:
1616
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001617 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001618 }</pre>
1619</div>
1620
1621<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001622 <code class="details" id="get">get(name, languageCode=None, intentView=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623 <pre>Retrieves the specified intent.
1624
1625Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001626 name: string, Required. The name of the intent. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001627 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001628 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001629 Allowed values
1630 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1631 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001632 x__xgafv: string, V1 error format.
1633 Allowed values
1634 1 - v1 error format
1635 2 - v2 error format
1636
1637Returns:
1638 An object of the form:
1639
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001640 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001641 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001642 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001643 &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/`.
1644 { # 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).
1645 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
1646 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1647 },
1648 &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`
1649 &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.
1650 },
1651 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001652 &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.
1653 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
1654 { # Represents an example that the agent is trained on.
1655 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
1656 &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.
1657 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
1658 &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.
1659 { # Represents a part of a training phrase.
1660 &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.
1661 &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.
1662 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
1663 &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.
1664 },
1665 ],
1666 },
1667 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001668 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001669 &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/`
1670 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001671 &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 -07001672 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001673 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001674 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001675 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001676 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001677 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001678 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001679 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07001680 &quot;rows&quot;: [ # Optional. Rows in this table of data.
1681 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
1683 { # Cell of TableCardRow.
1684 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
1685 },
1686 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001687 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
1688 },
1689 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001690 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
1691 { # Column properties for TableCard.
1692 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
1693 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
1694 },
1695 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001696 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
1697 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001698 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001699 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1700 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1701 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001702 },
1703 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001704 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001705 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
1706 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
1707 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
1708 &quot;items&quot;: [ # Required. List items.
1709 { # An item in the list.
1710 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
1711 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
1712 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1713 &quot;A String&quot;,
1714 ],
1715 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001716 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001717 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001718 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001719 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001720 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001721 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001722 },
1723 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001724 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001725 &quot;payload&quot;: { # A custom platform-specific response.
1726 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001727 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001728 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
1729 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
1730 &quot;A String&quot;,
1731 ],
1732 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
1733 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001734 &quot;text&quot;: { # The text response message. # Returns a text response.
1735 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
1736 &quot;A String&quot;,
1737 ],
1738 },
1739 &quot;image&quot;: { # The image response message. # Displays an image.
1740 &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.
1741 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1742 },
1743 &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.
1744 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
1745 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1746 },
1747 &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.
1748 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
1749 { # Rich Business Messaging (RBM) Card content
1750 &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.
1751 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
1752 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
1753 &quot;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.
1754 &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.
1755 },
1756 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1757 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1758 &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
1759 &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
1760 &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.
1761 },
1762 &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
1763 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1764 },
1765 &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
1766 },
1767 &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.
1768 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1769 },
1770 &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
1771 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1772 &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.
1773 },
1774 },
1775 ],
1776 &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.
1777 },
1778 ],
1779 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
1780 },
1781 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
1782 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
1783 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
1784 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
1785 },
1786 ],
1787 },
1788 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
1789 &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.
1790 },
1791 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
1792 &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.
1793 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
1794 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
1795 &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.
1796 &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.
1797 &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.
1798 &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.
1799 &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.
1800 },
1801 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
1802 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1803 &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
1804 &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
1805 &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.
1806 },
1807 &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
1808 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1809 },
1810 &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
1811 },
1812 &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.
1813 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1814 },
1815 &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
1816 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1817 &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.
1818 },
1819 },
1820 ],
1821 &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.
1822 },
1823 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
1824 },
1825 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
1826 &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).
1827 },
1828 &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.
1829 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
1830 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
1831 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
1832 &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
1833 &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
1834 &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.
1835 },
1836 &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
1837 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
1838 },
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;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.
1842 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
1843 },
1844 &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
1845 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
1846 &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.
1847 },
1848 },
1849 ],
1850 },
1851 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
1852 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
1853 &quot;mediaObjects&quot;: [ # Required. List of media objects.
1854 { # Response media object for media content card.
1855 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
1856 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
1857 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
1858 &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.
1859 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1860 },
1861 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
1862 &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.
1863 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1864 },
1865 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
1866 },
1867 ],
1868 },
1869 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
1870 &quot;items&quot;: [ # Required. Carousel items.
1871 { # An item in the carousel.
1872 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
1873 &quot;image&quot;: { # The image response message. # Optional. The image to display.
1874 &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.
1875 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1876 },
1877 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
1878 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
1879 &quot;A String&quot;,
1880 ],
1881 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
1882 },
1883 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
1884 },
1885 ],
1886 },
1887 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
1888 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
1889 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1890 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1891 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
1892 &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.
1893 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1894 },
1895 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1896 { # The button object that appears at the bottom of a card.
1897 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
1898 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
1899 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
1900 },
1901 },
1902 ],
1903 },
1904 &quot;card&quot;: { # The card response message. # Displays a card.
1905 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
1906 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
1907 { # Optional. Contains information about a button.
1908 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
1909 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
1910 },
1911 ],
1912 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
1913 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
1914 },
1915 &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.
1916 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
1917 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
1918 },
1919 &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.
1920 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
1921 { # The simple response message containing speech or text.
1922 &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.
1923 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
1924 &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.
1925 },
1926 ],
1927 },
1928 &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.
1929 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
1930 { # Browsing carousel tile
1931 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
1932 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
1933 &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.
1934 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
1935 },
1936 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
1937 &quot;url&quot;: &quot;A String&quot;, # Required. URL
1938 &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.
1939 },
1940 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
1941 &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.
1942 },
1943 ],
1944 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
1945 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001946 },
1947 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001948 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
1949 &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/`
1950 &quot;A String&quot;,
1951 ],
1952 &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).
1953 &quot;A String&quot;,
1954 ],
1955 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
1956 { # Represents intent parameters.
1957 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
1958 &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`.
1959 &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.
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;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`.
1962 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
1963 &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.
1964 &quot;A String&quot;,
1965 ],
1966 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
1967 },
1968 ],
1969 &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/`.
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;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.
1972 &quot;A String&quot;,
1973 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001974 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001975 &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.
1976 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001977 &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.
1978 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001979 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001980 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001981 },
1982 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001983 }</pre>
1984</div>
1985
1986<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001987 <code class="details" id="list">list(parent, intentView=None, pageToken=None, pageSize=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001988 <pre>Returns the list of all intents in the specified agent.
1989
1990Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001991 parent: string, Required. The agent to list all intents from. Format: `projects//agent`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001992 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001993 Allowed values
1994 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
1995 INTENT_VIEW_FULL - All fields are populated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001996 pageToken: string, Optional. The next_page_token value returned from a previous list request.
1997 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
1998 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 -07001999 x__xgafv: string, V1 error format.
2000 Allowed values
2001 1 - v1 error format
2002 2 - v2 error format
2003
2004Returns:
2005 An object of the form:
2006
2007 { # The response message for Intents.ListIntents.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002008 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002009 &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.
2010 { # 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 Botc2228be2020-11-24 15:48:03 -08002011 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002012 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002013 &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/`.
2014 { # 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).
2015 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2016 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2017 },
2018 &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`
2019 &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.
2020 },
2021 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002022 &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.
2023 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2024 { # Represents an example that the agent is trained on.
2025 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2026 &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.
2027 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2028 &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.
2029 { # Represents a part of a training phrase.
2030 &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.
2031 &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.
2032 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2033 &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.
2034 },
2035 ],
2036 },
2037 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002038 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002039 &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/`
2040 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002041 &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 -07002042 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002043 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002044 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002045 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002046 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002047 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002048 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002049 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07002050 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2051 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002052 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2053 { # Cell of TableCardRow.
2054 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2055 },
2056 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002057 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2058 },
2059 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002060 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2061 { # Column properties for TableCard.
2062 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2063 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2064 },
2065 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002066 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2067 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002068 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002069 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2070 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2071 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002072 },
2073 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002074 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002075 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2076 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2077 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2078 &quot;items&quot;: [ # Required. List items.
2079 { # An item in the list.
2080 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2081 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2082 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2083 &quot;A String&quot;,
2084 ],
2085 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002086 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002087 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002088 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002089 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002090 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002091 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002092 },
2093 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002094 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002095 &quot;payload&quot;: { # A custom platform-specific response.
2096 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002097 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002098 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2099 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2100 &quot;A String&quot;,
2101 ],
2102 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2103 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002104 &quot;text&quot;: { # The text response message. # Returns a text response.
2105 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2106 &quot;A String&quot;,
2107 ],
2108 },
2109 &quot;image&quot;: { # The image response message. # Displays an image.
2110 &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.
2111 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2112 },
2113 &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.
2114 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2115 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2116 },
2117 &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.
2118 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2119 { # Rich Business Messaging (RBM) Card content
2120 &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.
2121 &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.
2122 &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.
2123 &quot;thumbnailUri&quot;: &quot;A String&quot;, # Optional. Publicly reachable URI of the thumbnail.If you don&#x27;t provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user&#x27;s device downloads the file. Depending on the user&#x27;s setting, the file may not download automatically and may require the user to tap a download button.
2124 &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.
2125 },
2126 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2127 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2128 &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
2129 &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
2130 &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.
2131 },
2132 &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
2133 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2134 },
2135 &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
2136 },
2137 &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.
2138 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2139 },
2140 &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
2141 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2142 &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.
2143 },
2144 },
2145 ],
2146 &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.
2147 },
2148 ],
2149 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2150 },
2151 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2152 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2153 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2154 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2155 },
2156 ],
2157 },
2158 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2159 &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.
2160 },
2161 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2162 &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.
2163 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2164 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2165 &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.
2166 &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.
2167 &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.
2168 &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.
2169 &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.
2170 },
2171 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2172 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2173 &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
2174 &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
2175 &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.
2176 },
2177 &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
2178 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2179 },
2180 &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
2181 },
2182 &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.
2183 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2184 },
2185 &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
2186 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2187 &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.
2188 },
2189 },
2190 ],
2191 &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.
2192 },
2193 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2194 },
2195 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2196 &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).
2197 },
2198 &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.
2199 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2200 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2201 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2202 &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
2203 &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
2204 &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.
2205 },
2206 &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
2207 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2208 },
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;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.
2212 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2213 },
2214 &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
2215 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2216 &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.
2217 },
2218 },
2219 ],
2220 },
2221 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2222 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2223 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2224 { # Response media object for media content card.
2225 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2226 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2227 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2228 &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.
2229 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2230 },
2231 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2232 &quot;accessibilityText&quot;: &quot;A String&quot;, # A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect.
2233 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2234 },
2235 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2236 },
2237 ],
2238 },
2239 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2240 &quot;items&quot;: [ # Required. Carousel items.
2241 { # An item in the carousel.
2242 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2243 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2244 &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.
2245 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2246 },
2247 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2248 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2249 &quot;A String&quot;,
2250 ],
2251 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2252 },
2253 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2254 },
2255 ],
2256 },
2257 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2258 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2259 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2260 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2261 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2262 &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.
2263 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2264 },
2265 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2266 { # The button object that appears at the bottom of a card.
2267 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2268 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2269 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2270 },
2271 },
2272 ],
2273 },
2274 &quot;card&quot;: { # The card response message. # Displays a card.
2275 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2276 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2277 { # Optional. Contains information about a button.
2278 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2279 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2280 },
2281 ],
2282 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2283 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2284 },
2285 &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.
2286 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2287 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2288 },
2289 &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.
2290 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2291 { # The simple response message containing speech or text.
2292 &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.
2293 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2294 &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.
2295 },
2296 ],
2297 },
2298 &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.
2299 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2300 { # Browsing carousel tile
2301 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2302 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2303 &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.
2304 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2305 },
2306 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2307 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2308 &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.
2309 },
2310 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2311 &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.
2312 },
2313 ],
2314 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2315 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002316 },
2317 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002318 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2319 &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/`
2320 &quot;A String&quot;,
2321 ],
2322 &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).
2323 &quot;A String&quot;,
2324 ],
2325 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2326 { # Represents intent parameters.
2327 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
2328 &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`.
2329 &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.
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;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`.
2332 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2333 &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.
2334 &quot;A String&quot;,
2335 ],
2336 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2337 },
2338 ],
2339 &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/`.
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;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.
2342 &quot;A String&quot;,
2343 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002344 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002345 &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.
2346 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002347 &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.
2348 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002349 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002350 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002351 },
2352 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002353 },
2354 ],
2355 }</pre>
2356</div>
2357
2358<div class="method">
2359 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2360 <pre>Retrieves the next page of results.
2361
2362Args:
2363 previous_request: The request for the previous page. (required)
2364 previous_response: The response from the request for the previous page. (required)
2365
2366Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002367 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002368 page. Returns None if there are no more items in the collection.
2369 </pre>
2370</div>
2371
2372<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002373 <code class="details" id="patch">patch(name, body=None, updateMask=None, intentView=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002374 <pre>Updates the specified intent.
2375
2376Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002377 name: string, Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported formats: - `projects//agent/intents/` - `projects//locations//agent/intents/` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002378 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002379 The object takes the form of:
2380
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002381{ # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002382 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002383 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002384 &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/`.
2385 { # 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).
2386 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2388 },
2389 &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`
2390 &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.
2391 },
2392 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002393 &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.
2394 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2395 { # Represents an example that the agent is trained on.
2396 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2397 &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.
2398 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2399 &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.
2400 { # Represents a part of a training phrase.
2401 &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.
2402 &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.
2403 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2404 &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.
2405 },
2406 ],
2407 },
2408 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002409 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002410 &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/`
2411 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002412 &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 -07002413 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002414 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002415 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002416 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002417 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002418 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002419 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002420 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07002421 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2422 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002423 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2424 { # Cell of TableCardRow.
2425 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2426 },
2427 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002428 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2429 },
2430 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002431 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2432 { # Column properties for TableCard.
2433 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2434 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2435 },
2436 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002437 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2438 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002439 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002440 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2441 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2442 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002443 },
2444 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002445 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002446 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2447 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2448 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2449 &quot;items&quot;: [ # Required. List items.
2450 { # An item in the list.
2451 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2452 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2453 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2454 &quot;A String&quot;,
2455 ],
2456 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002457 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002458 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002459 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002460 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002461 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002462 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002463 },
2464 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002465 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002466 &quot;payload&quot;: { # A custom platform-specific response.
2467 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002468 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002469 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2470 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2471 &quot;A String&quot;,
2472 ],
2473 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2474 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002475 &quot;text&quot;: { # The text response message. # Returns a text response.
2476 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2477 &quot;A String&quot;,
2478 ],
2479 },
2480 &quot;image&quot;: { # The image response message. # Displays an image.
2481 &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.
2482 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2483 },
2484 &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.
2485 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2486 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2487 },
2488 &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.
2489 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2490 { # Rich Business Messaging (RBM) Card content
2491 &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.
2492 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2493 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2494 &quot;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.
2495 &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.
2496 },
2497 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2498 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2499 &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
2500 &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
2501 &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.
2502 },
2503 &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
2504 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2505 },
2506 &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
2507 },
2508 &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.
2509 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2510 },
2511 &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
2512 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2513 &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.
2514 },
2515 },
2516 ],
2517 &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.
2518 },
2519 ],
2520 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2521 },
2522 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2523 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2524 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2525 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2526 },
2527 ],
2528 },
2529 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2530 &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.
2531 },
2532 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2533 &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.
2534 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2535 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2536 &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.
2537 &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.
2538 &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.
2539 &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.
2540 &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.
2541 },
2542 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2543 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2544 &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
2545 &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
2546 &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.
2547 },
2548 &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
2549 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2550 },
2551 &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
2552 },
2553 &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.
2554 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2555 },
2556 &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
2557 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2558 &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.
2559 },
2560 },
2561 ],
2562 &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.
2563 },
2564 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2565 },
2566 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2567 &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).
2568 },
2569 &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.
2570 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2571 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2572 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2573 &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
2574 &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
2575 &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.
2576 },
2577 &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
2578 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2579 },
2580 &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
2581 },
2582 &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.
2583 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2584 },
2585 &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
2586 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
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 },
2589 },
2590 ],
2591 },
2592 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2593 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2594 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2595 { # Response media object for media content card.
2596 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2597 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2598 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2599 &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.
2600 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2601 },
2602 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2603 &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.
2604 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2605 },
2606 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2607 },
2608 ],
2609 },
2610 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2611 &quot;items&quot;: [ # Required. Carousel items.
2612 { # An item in the carousel.
2613 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2614 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2615 &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.
2616 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2617 },
2618 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2619 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2620 &quot;A String&quot;,
2621 ],
2622 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2623 },
2624 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2625 },
2626 ],
2627 },
2628 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2629 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2630 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2631 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2632 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2633 &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.
2634 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2635 },
2636 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2637 { # The button object that appears at the bottom of a card.
2638 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
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 },
2643 ],
2644 },
2645 &quot;card&quot;: { # The card response message. # Displays a card.
2646 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
2647 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2648 { # Optional. Contains information about a button.
2649 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
2650 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
2651 },
2652 ],
2653 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2654 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2655 },
2656 &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.
2657 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
2658 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
2659 },
2660 &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.
2661 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
2662 { # The simple response message containing speech or text.
2663 &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.
2664 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
2665 &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.
2666 },
2667 ],
2668 },
2669 &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.
2670 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
2671 { # Browsing carousel tile
2672 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
2673 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
2674 &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.
2675 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2676 },
2677 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
2678 &quot;url&quot;: &quot;A String&quot;, # Required. URL
2679 &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.
2680 },
2681 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
2682 &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.
2683 },
2684 ],
2685 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
2686 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002687 },
2688 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002689 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
2690 &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/`
2691 &quot;A String&quot;,
2692 ],
2693 &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).
2694 &quot;A String&quot;,
2695 ],
2696 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
2697 { # Represents intent parameters.
2698 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
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`.
2700 &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.
2701 &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.
2702 &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`.
2703 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
2704 &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.
2705 &quot;A String&quot;,
2706 ],
2707 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
2708 },
2709 ],
2710 &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/`.
2711 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
2712 &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.
2713 &quot;A String&quot;,
2714 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002715 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002716 &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.
2717 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002718 &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.
2719 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002720 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002721 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002722 },
2723 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002724}
2725
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002726 updateMask: string, Optional. The mask to control which fields get updated.
Bu Sun Kim65020912020-05-20 12:08:20 -07002727 intentView: string, Optional. The resource view to apply to the returned intent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002728 Allowed values
2729 INTENT_VIEW_UNSPECIFIED - Training phrases field is not populated in the response.
2730 INTENT_VIEW_FULL - All fields are populated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002731 languageCode: string, Optional. The language used to access language-specific data. If not specified, the agent&#x27;s default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002732 x__xgafv: string, V1 error format.
2733 Allowed values
2734 1 - v1 error format
2735 2 - v2 error format
2736
2737Returns:
2738 An object of the form:
2739
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002740 { # An intent categorizes an end-user&#x27;s intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002741 &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/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002742 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002743 &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/`.
2744 { # 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).
2745 &quot;parameters&quot;: { # Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter&#x27;s entity type is a composite entity: map - Else: string or number, depending on parameter value type - MapValue value: - If parameter&#x27;s entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
2746 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
2747 },
2748 &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`
2749 &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.
2750 },
2751 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002752 &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.
2753 &quot;trainingPhrases&quot;: [ # Optional. The collection of examples that the agent is trained on.
2754 { # Represents an example that the agent is trained on.
2755 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this training phrase.
2756 &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.
2757 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the training phrase.
2758 &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.
2759 { # Represents a part of a training phrase.
2760 &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.
2761 &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.
2762 &quot;text&quot;: &quot;A String&quot;, # Required. The text for this part.
2763 &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.
2764 },
2765 ],
2766 },
2767 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002768 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002769 &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/`
2770 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002771 &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 -07002772 { # Corresponds to the `Response` field in the Dialogflow console.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002773 &quot;tableCard&quot;: { # Table card for Actions on Google. # Table card for Actions on Google.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002774 &quot;image&quot;: { # The image response message. # Optional. Image which should be displayed on the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002775 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002776 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002777 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002778 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the card.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002779 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle to the title.
Bu Sun Kim65020912020-05-20 12:08:20 -07002780 &quot;rows&quot;: [ # Optional. Rows in this table of data.
2781 { # Row of TableCard.
Bu Sun Kim65020912020-05-20 12:08:20 -07002782 &quot;cells&quot;: [ # Optional. List of cells that make up this row.
2783 { # Cell of TableCardRow.
2784 &quot;text&quot;: &quot;A String&quot;, # Required. Text in this cell.
2785 },
2786 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002787 &quot;dividerAfter&quot;: True or False, # Optional. Whether to add a visual divider after this row.
2788 },
2789 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002790 &quot;columnProperties&quot;: [ # Optional. Display properties for the columns in this table.
2791 { # Column properties for TableCard.
2792 &quot;horizontalAlignment&quot;: &quot;A String&quot;, # Optional. Defines text alignment for all cells in this column.
2793 &quot;header&quot;: &quot;A String&quot;, # Required. Column heading.
2794 },
2795 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002796 &quot;buttons&quot;: [ # Optional. List of buttons for the card.
2797 { # The button object that appears at the bottom of a card.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002798 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002799 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2800 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
2801 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002802 },
2803 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002804 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002805 &quot;listSelect&quot;: { # The card for presenting a list of options to select from. # Displays a list card for Actions on Google.
2806 &quot;title&quot;: &quot;A String&quot;, # Optional. The overall title of the list.
2807 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. Subtitle of the list.
2808 &quot;items&quot;: [ # Required. List items.
2809 { # An item in the list.
2810 &quot;description&quot;: &quot;A String&quot;, # Optional. The main text describing the item.
2811 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional information about this option.
2812 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2813 &quot;A String&quot;,
2814 ],
2815 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002816 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002817 &quot;image&quot;: { # The image response message. # Optional. The image to display.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002818 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002819 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002820 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002821 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the list item.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002822 },
2823 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002824 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002825 &quot;payload&quot;: { # A custom platform-specific response.
2826 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002827 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002828 &quot;quickReplies&quot;: { # The quick replies response message. # Displays quick replies.
2829 &quot;quickReplies&quot;: [ # Optional. The collection of quick replies.
2830 &quot;A String&quot;,
2831 ],
2832 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the collection of quick replies.
2833 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002834 &quot;text&quot;: { # The text response message. # Returns a text response.
2835 &quot;text&quot;: [ # Optional. The collection of the agent&#x27;s responses.
2836 &quot;A String&quot;,
2837 ],
2838 },
2839 &quot;image&quot;: { # The image response message. # Displays an image.
2840 &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.
2841 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2842 },
2843 &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.
2844 &quot;ssml&quot;: &quot;A String&quot;, # The SSML to be synthesized. For more information, see [SSML](https://developers.google.com/actions/reference/ssml).
2845 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
2846 },
2847 &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.
2848 &quot;cardContents&quot;: [ # Required. The cards in the carousel. A carousel must have at least 2 cards and at most 10.
2849 { # Rich Business Messaging (RBM) Card content
2850 &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.
2851 &quot;media&quot;: { # Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg&#x27; * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm # Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.
2852 &quot;height&quot;: &quot;A String&quot;, # Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.
2853 &quot;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.
2854 &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.
2855 },
2856 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2857 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2858 &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
2859 &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
2860 &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.
2861 },
2862 &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
2863 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2864 },
2865 &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
2866 },
2867 &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.
2868 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2869 },
2870 &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
2871 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2872 &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.
2873 },
2874 },
2875 ],
2876 &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.
2877 },
2878 ],
2879 &quot;cardWidth&quot;: &quot;A String&quot;, # Required. The width of the cards in the carousel.
2880 },
2881 &quot;suggestions&quot;: { # The collection of suggestions. # Displays suggestion chips for Actions on Google.
2882 &quot;suggestions&quot;: [ # Required. The list of suggested replies.
2883 { # The suggestion chip message that the user can tap to quickly post a reply to the conversation.
2884 &quot;title&quot;: &quot;A String&quot;, # Required. The text shown the in the suggestion chip.
2885 },
2886 ],
2887 },
2888 &quot;telephonyPlayAudio&quot;: { # Plays audio from a file in Telephony Gateway. # Plays audio from a file in Telephony Gateway.
2889 &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.
2890 },
2891 &quot;platform&quot;: &quot;A String&quot;, # Optional. The platform that this message is intended for.
2892 &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.
2893 &quot;thumbnailImageAlignment&quot;: &quot;A String&quot;, # Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
2894 &quot;cardContent&quot;: { # Rich Business Messaging (RBM) Card content # Required. Card content.
2895 &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.
2896 &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.
2897 &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.
2898 &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.
2899 &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.
2900 },
2901 &quot;suggestions&quot;: [ # Optional. List of suggestions to include in the card.
2902 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2903 &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
2904 &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
2905 &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.
2906 },
2907 &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
2908 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2909 },
2910 &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
2911 },
2912 &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.
2913 &quot;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2914 },
2915 &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
2916 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2917 &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.
2918 },
2919 },
2920 ],
2921 &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.
2922 },
2923 &quot;cardOrientation&quot;: &quot;A String&quot;, # Required. Orientation of the card.
2924 },
2925 &quot;telephonyTransferCall&quot;: { # Transfers the call in Telephony Gateway. # Transfers the call in Telephony Gateway.
2926 &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).
2927 },
2928 &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.
2929 &quot;text&quot;: &quot;A String&quot;, # Required. Text sent and displayed to the user.
2930 &quot;rbmSuggestion&quot;: [ # Optional. One or more suggestions to show to the user.
2931 { # Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
2932 &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
2933 &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
2934 &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.
2935 },
2936 &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
2937 &quot;uri&quot;: &quot;A String&quot;, # Required. The uri to open on the user device
2938 },
2939 &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
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;text&quot;: &quot;A String&quot;, # Text to display alongside the action.
2943 },
2944 &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
2945 &quot;text&quot;: &quot;A String&quot;, # Suggested reply text.
2946 &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.
2947 },
2948 },
2949 ],
2950 },
2951 &quot;mediaContent&quot;: { # The media content card for Actions on Google. # The media content card for Actions on Google.
2952 &quot;mediaType&quot;: &quot;A String&quot;, # Optional. What type of media is the content (ie &quot;audio&quot;).
2953 &quot;mediaObjects&quot;: [ # Required. List of media objects.
2954 { # Response media object for media content card.
2955 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of media card.
2956 &quot;name&quot;: &quot;A String&quot;, # Required. Name of media card.
2957 &quot;icon&quot;: { # The image response message. # Optional. Icon to display above media content.
2958 &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.
2959 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2960 },
2961 &quot;largeImage&quot;: { # The image response message. # Optional. Image to display above media content.
2962 &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.
2963 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2964 },
2965 &quot;contentUrl&quot;: &quot;A String&quot;, # Required. Url where the media is stored.
2966 },
2967 ],
2968 },
2969 &quot;carouselSelect&quot;: { # The card for presenting a carousel of options to select from. # Displays a carousel card for Actions on Google.
2970 &quot;items&quot;: [ # Required. Carousel items.
2971 { # An item in the carousel.
2972 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item.
2973 &quot;image&quot;: { # The image response message. # Optional. The image to display.
2974 &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.
2975 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2976 },
2977 &quot;info&quot;: { # Additional info about the select item for when it is triggered in a dialog. # Required. Additional info about the option item.
2978 &quot;synonyms&quot;: [ # Optional. A list of synonyms that can also be used to trigger this item in dialog.
2979 &quot;A String&quot;,
2980 ],
2981 &quot;key&quot;: &quot;A String&quot;, # Required. A unique key that will be sent back to the agent if this response is given.
2982 },
2983 &quot;description&quot;: &quot;A String&quot;, # Optional. The body text of the card.
2984 },
2985 ],
2986 },
2987 &quot;basicCard&quot;: { # The basic card message. Useful for displaying information. # Displays a basic card for Actions on Google.
2988 &quot;formattedText&quot;: &quot;A String&quot;, # Required, unless image is present. The body text of the card.
2989 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
2990 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
2991 &quot;image&quot;: { # The image response message. # Optional. The image for the card.
2992 &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.
2993 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
2994 },
2995 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
2996 { # The button object that appears at the bottom of a card.
2997 &quot;title&quot;: &quot;A String&quot;, # Required. The title of the button.
2998 &quot;openUriAction&quot;: { # Opens the given URI. # Required. Action to take when a user taps on the button.
2999 &quot;uri&quot;: &quot;A String&quot;, # Required. The HTTP or HTTPS scheme URI.
3000 },
3001 },
3002 ],
3003 },
3004 &quot;card&quot;: { # The card response message. # Displays a card.
3005 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file for the card.
3006 &quot;buttons&quot;: [ # Optional. The collection of card buttons.
3007 { # Optional. Contains information about a button.
3008 &quot;postback&quot;: &quot;A String&quot;, # Optional. The text to send back to the Dialogflow API or a URI to open.
3009 &quot;text&quot;: &quot;A String&quot;, # Optional. The text to show on the button.
3010 },
3011 ],
3012 &quot;subtitle&quot;: &quot;A String&quot;, # Optional. The subtitle of the card.
3013 &quot;title&quot;: &quot;A String&quot;, # Optional. The title of the card.
3014 },
3015 &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.
3016 &quot;destinationName&quot;: &quot;A String&quot;, # Required. The name of the app or site this chip is linking to.
3017 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the app or site to open when the user taps the suggestion chip.
3018 },
3019 &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.
3020 &quot;simpleResponses&quot;: [ # Required. The list of simple responses.
3021 { # The simple response message containing speech or text.
3022 &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.
3023 &quot;displayText&quot;: &quot;A String&quot;, # Optional. The text to display.
3024 &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.
3025 },
3026 ],
3027 },
3028 &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.
3029 &quot;items&quot;: [ # Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
3030 { # Browsing carousel tile
3031 &quot;title&quot;: &quot;A String&quot;, # Required. Title of the carousel item. Maximum of two lines of text.
3032 &quot;image&quot;: { # The image response message. # Optional. Hero image for the carousel item.
3033 &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.
3034 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The public URI to an image file.
3035 },
3036 &quot;openUriAction&quot;: { # Actions on Google action to open a given url. # Required. Action to present to the user.
3037 &quot;url&quot;: &quot;A String&quot;, # Required. URL
3038 &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.
3039 },
3040 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the carousel item. Maximum of four lines of text.
3041 &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.
3042 },
3043 ],
3044 &quot;imageDisplayOptions&quot;: &quot;A String&quot;, # Optional. Settings for displaying the image. Applies to every image in items.
3045 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003046 },
3047 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003048 &quot;webhookState&quot;: &quot;A String&quot;, # Optional. Indicates whether webhooks are enabled for the intent.
3049 &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/`
3050 &quot;A String&quot;,
3051 ],
3052 &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).
3053 &quot;A String&quot;,
3054 ],
3055 &quot;parameters&quot;: [ # Optional. The collection of parameters associated with the intent.
3056 { # Represents intent parameters.
3057 &quot;isList&quot;: True or False, # Optional. Indicates whether the parameter represents a list of values.
3058 &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`.
3059 &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.
3060 &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.
3061 &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`.
3062 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this parameter.
3063 &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.
3064 &quot;A String&quot;,
3065 ],
3066 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of the parameter.
3067 },
3068 ],
3069 &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/`.
3070 &quot;resetContexts&quot;: True or False, # Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
3071 &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.
3072 &quot;A String&quot;,
3073 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003074 &quot;isFallback&quot;: True or False, # Optional. Indicates whether this is a fallback intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003075 &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.
3076 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this intent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003077 &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.
3078 { # Represents a single followup intent in the chain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003079 &quot;followupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent. Format: `projects//agent/intents/`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003080 &quot;parentFollowupIntentName&quot;: &quot;A String&quot;, # The unique identifier of the followup intent&#x27;s parent. Format: `projects//agent/intents/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003081 },
3082 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003083 }</pre>
3084</div>
3085
3086</body></html>