blob: a0d13fc50548b78d9e3613dfe16efa25b6d7e97e [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -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_v3beta1.html">Dialogflow API</a> . <a href="dialogflow_v3beta1.projects.html">projects</a> . <a href="dialogflow_v3beta1.projects.locations.html">locations</a> . <a href="dialogflow_v3beta1.projects.locations.agents.html">agents</a> . <a href="dialogflow_v3beta1.projects.locations.agents.flows.html">flows</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="dialogflow_v3beta1.projects.locations.agents.flows.pages.html">pages()</a></code>
79</p>
80<p class="firstline">Returns the pages Resource.</p>
81
82<p class="toc_element">
83 <code><a href="dialogflow_v3beta1.projects.locations.agents.flows.transitionRouteGroups.html">transitionRouteGroups()</a></code>
84</p>
85<p class="firstline">Returns the transitionRouteGroups Resource.</p>
86
87<p class="toc_element">
88 <code><a href="dialogflow_v3beta1.projects.locations.agents.flows.versions.html">versions()</a></code>
89</p>
90<p class="firstline">Returns the versions Resource.</p>
91
92<p class="toc_element">
93 <code><a href="#close">close()</a></code></p>
94<p class="firstline">Close httplib2 connections.</p>
95<p class="toc_element">
96 <code><a href="#create">create(parent, body=None, languageCode=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Creates a flow in the specified agent.</p>
98<p class="toc_element">
99 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Deletes a specified flow.</p>
101<p class="toc_element">
yoshi-code-bot44a67192021-05-02 03:48:02 -0700102 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Exports the specified flow to a binary file. Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.</p>
104<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code><a href="#get">get(name, languageCode=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Retrieves the specified flow.</p>
107<p class="toc_element">
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800108 <code><a href="#getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.</p>
110<p class="toc_element">
yoshi-code-bot44a67192021-05-02 03:48:02 -0700111 <code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
112<p class="firstline">Imports the specified flow to the specified agent from a binary file.</p>
113<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800114 <code><a href="#list">list(parent, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<p class="firstline">Returns the list of all flows in the specified agent.</p>
116<p class="toc_element">
117 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
118<p class="firstline">Retrieves the next page of results.</p>
119<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800120 <code><a href="#patch">patch(name, body=None, languageCode=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121<p class="firstline">Updates the specified flow.</p>
122<p class="toc_element">
123 <code><a href="#train">train(name, body=None, x__xgafv=None)</a></code></p>
124<p class="firstline">Trains the specified flow. Note that only the flow in 'draft' environment is trained.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800125<p class="toc_element">
126 <code><a href="#validate">validate(name, body=None, x__xgafv=None)</a></code></p>
127<p class="firstline">Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128<h3>Method Details</h3>
129<div class="method">
130 <code class="details" id="close">close()</code>
131 <pre>Close httplib2 connections.</pre>
132</div>
133
134<div class="method">
135 <code class="details" id="create">create(parent, body=None, languageCode=None, x__xgafv=None)</code>
136 <pre>Creates a flow in the specified agent.
137
138Args:
139 parent: string, Required. The agent to create a flow for. Format: `projects//locations//agents/`. (required)
140 body: object, The request body.
141 The object takes the form of:
142
143{ # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800144 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800145 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800146 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
147 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800148 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
149 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
150 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
151 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
154 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
155 &quot;cases&quot;: [ # A list of cascading if-else conditions.
156 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800157 &quot;caseContent&quot;: [ # A list of case content.
158 { # The list of messages or conditional cases to activate for this case.
159 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
160 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
162 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
164 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800165 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800166 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800167 },
168 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
169 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
170 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
171 },
172 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
174 &quot;segments&quot;: [ # Segments this audio response is composed of.
175 { # Represents one segment of audio.
176 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
177 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
178 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
179 },
180 ],
181 },
182 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
183 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
184 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
185 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
186 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800187 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
189 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800190 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
191 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
192 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800193 },
194 &quot;text&quot;: { # The text response message. # Returns a text response.
195 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
196 &quot;text&quot;: [ # Required. A collection of text responses.
197 &quot;A String&quot;,
198 ],
199 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800200 },
201 },
202 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800203 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800204 },
205 ],
206 },
207 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800208 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
209 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800210 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
211 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
213 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800214 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800215 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800216 },
217 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
218 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
220 },
221 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800222 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
223 &quot;segments&quot;: [ # Segments this audio response is composed of.
224 { # Represents one segment of audio.
225 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
226 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
227 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
228 },
229 ],
230 },
231 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
232 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
233 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
234 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
235 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800236 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
238 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800239 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
240 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
241 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800242 },
243 &quot;text&quot;: { # The text response message. # Returns a text response.
244 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
245 &quot;text&quot;: [ # Required. A collection of text responses.
246 &quot;A String&quot;,
247 ],
248 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800249 },
250 ],
251 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
252 { # Setting a parameter value.
253 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
254 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
255 },
256 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800257 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
258 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800259 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800260 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800261 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800262 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800263 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800265 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
266 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800267 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400268 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
269 &quot;A String&quot;,
270 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800271 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
272 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800273 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800274 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
275 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800276 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
277 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800278 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800279 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
280 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
281 &quot;cases&quot;: [ # A list of cascading if-else conditions.
282 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800283 &quot;caseContent&quot;: [ # A list of case content.
284 { # The list of messages or conditional cases to activate for this case.
285 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
286 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800287 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
288 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
290 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800291 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800292 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 },
294 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
295 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
297 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
300 &quot;segments&quot;: [ # Segments this audio response is composed of.
301 { # Represents one segment of audio.
302 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
303 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
304 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
305 },
306 ],
307 },
308 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
309 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
310 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
311 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
312 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800313 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
315 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
317 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
318 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800319 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800320 &quot;text&quot;: { # The text response message. # Returns a text response.
321 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
322 &quot;text&quot;: [ # Required. A collection of text responses.
323 &quot;A String&quot;,
324 ],
325 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800326 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800327 },
328 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800329 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800330 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800331 ],
332 },
333 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800334 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
335 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800336 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
337 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
338 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
339 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800341 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800342 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800343 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
344 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800345 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
346 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800347 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800348 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
349 &quot;segments&quot;: [ # Segments this audio response is composed of.
350 { # Represents one segment of audio.
351 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
352 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
353 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
354 },
355 ],
356 },
357 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
358 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
359 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
360 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
361 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800362 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
363 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
364 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800365 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
366 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
367 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800368 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800369 &quot;text&quot;: { # The text response message. # Returns a text response.
370 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
371 &quot;text&quot;: [ # Required. A collection of text responses.
372 &quot;A String&quot;,
373 ],
374 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800375 },
376 ],
377 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
378 { # Setting a parameter value.
379 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
380 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
381 },
382 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
384 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800385 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800386 },
387 ],
388}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700390 languageCode: string, The language of the following fields in `flow`: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified, the agent&#x27;s default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700391 x__xgafv: string, V1 error format.
392 Allowed values
393 1 - v1 error format
394 2 - v2 error format
395
396Returns:
397 An object of the form:
398
399 { # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
401 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
402 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
403 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
404 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
405 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
406 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
407 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
408 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
409 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
410 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
411 &quot;cases&quot;: [ # A list of cascading if-else conditions.
412 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
413 &quot;caseContent&quot;: [ # A list of case content.
414 { # The list of messages or conditional cases to activate for this case.
415 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
416 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
417 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
418 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800419 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
420 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800422 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800423 },
424 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
425 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
426 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800427 },
428 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800429 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
430 &quot;segments&quot;: [ # Segments this audio response is composed of.
431 { # Represents one segment of audio.
432 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
433 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
434 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
435 },
436 ],
437 },
438 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
439 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
440 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
441 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
442 },
443 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
444 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
445 },
446 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
447 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
448 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
449 },
450 &quot;text&quot;: { # The text response message. # Returns a text response.
451 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
452 &quot;text&quot;: [ # Required. A collection of text responses.
453 &quot;A String&quot;,
454 ],
455 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800456 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 },
458 ],
459 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
460 },
461 ],
462 },
463 ],
464 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
465 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
466 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
467 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
469 },
470 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800471 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800472 },
473 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
474 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
475 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
476 },
477 },
478 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
479 &quot;segments&quot;: [ # Segments this audio response is composed of.
480 { # Represents one segment of audio.
481 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
482 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
483 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800484 },
485 ],
486 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800487 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
488 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
489 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
490 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800491 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800492 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800494 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800495 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
496 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
497 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
498 },
499 &quot;text&quot;: { # The text response message. # Returns a text response.
500 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
501 &quot;text&quot;: [ # Required. A collection of text responses.
502 &quot;A String&quot;,
503 ],
504 },
505 },
506 ],
507 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
508 { # Setting a parameter value.
509 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
510 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
511 },
512 ],
513 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
514 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800515 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800516 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800517 ],
518 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
519 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
520 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
521 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
522 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
523 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400524 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
525 &quot;A String&quot;,
526 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800527 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
528 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
529 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
530 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
531 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
532 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
533 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
534 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
535 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
536 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
537 &quot;cases&quot;: [ # A list of cascading if-else conditions.
538 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
539 &quot;caseContent&quot;: [ # A list of case content.
540 { # The list of messages or conditional cases to activate for this case.
541 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
542 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
543 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
544 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
546 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800547 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800548 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800549 },
550 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
551 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
552 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800553 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800555 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
556 &quot;segments&quot;: [ # Segments this audio response is composed of.
557 { # Represents one segment of audio.
558 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
559 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
560 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
561 },
562 ],
563 },
564 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
565 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
566 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
567 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
568 },
569 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
570 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
571 },
572 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
573 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
574 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
575 },
576 &quot;text&quot;: { # The text response message. # Returns a text response.
577 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
578 &quot;text&quot;: [ # Required. A collection of text responses.
579 &quot;A String&quot;,
580 ],
581 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800582 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800583 },
584 ],
585 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
586 },
587 ],
588 },
589 ],
590 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
591 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
592 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
593 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
594 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
595 },
596 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800597 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800598 },
599 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
600 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
602 },
603 },
604 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
605 &quot;segments&quot;: [ # Segments this audio response is composed of.
606 { # Represents one segment of audio.
607 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
608 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
609 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800610 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800611 ],
612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800613 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
614 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
615 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
616 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800617 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800618 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
619 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800620 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800621 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
622 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
623 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
624 },
625 &quot;text&quot;: { # The text response message. # Returns a text response.
626 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
627 &quot;text&quot;: [ # Required. A collection of text responses.
628 &quot;A String&quot;,
629 ],
630 },
631 },
632 ],
633 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
634 { # Setting a parameter value.
635 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
636 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
637 },
638 ],
639 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
640 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800641 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800642 },
643 ],
644}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700645</div>
646
647<div class="method">
648 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
649 <pre>Deletes a specified flow.
650
651Args:
652 name: string, Required. The name of the flow to delete. Format: `projects//locations//agents//flows/`. (required)
653 force: boolean, This field has no effect for flows with no incoming transitions. For flows with incoming transitions: * If `force` is set to false, an error will be returned with message indicating the incoming transitions. * If `force` is set to true, Dialogflow will remove the flow, as well as any transitions to the flow (i.e. Target flow in event handlers or Target flow in transition routes that point to this flow will be cleared).
654 x__xgafv: string, V1 error format.
655 Allowed values
656 1 - v1 error format
657 2 - v2 error format
658
659Returns:
660 An object of the form:
661
662 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800663}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700664</div>
665
666<div class="method">
yoshi-code-bot44a67192021-05-02 03:48:02 -0700667 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
668 <pre>Exports the specified flow to a binary file. Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.
669
670Args:
671 name: string, Required. The name of the flow to export. Format: `projects//locations//agents//flows/`. (required)
672 body: object, The request body.
673 The object takes the form of:
674
675{ # The request message for Flows.ExportFlow.
676 &quot;flowUri&quot;: &quot;A String&quot;, # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the flow to. The format of this URI must be `gs:///`. If left unspecified, the serialized flow is returned inline.
677 &quot;includeReferencedFlows&quot;: True or False, # Optional. Whether to export flows referenced by the specified flow.
678}
679
680 x__xgafv: string, V1 error format.
681 Allowed values
682 1 - v1 error format
683 2 - v2 error format
684
685Returns:
686 An object of the form:
687
688 { # This resource represents a long-running operation that is the result of a network API call.
689 &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.
690 &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.
691 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
692 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
693 {
694 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
695 },
696 ],
697 &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.
698 },
699 &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.
700 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
701 },
702 &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}`.
703 &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`.
704 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
705 },
706}</pre>
707</div>
708
709<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700710 <code class="details" id="get">get(name, languageCode=None, x__xgafv=None)</code>
711 <pre>Retrieves the specified flow.
712
713Args:
714 name: string, Required. The name of the flow to get. Format: `projects//locations//agents//flows/`. (required)
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700715 languageCode: string, The language to retrieve the flow for. The following fields are language dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified, the agent&#x27;s default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700716 x__xgafv: string, V1 error format.
717 Allowed values
718 1 - v1 error format
719 2 - v2 error format
720
721Returns:
722 An object of the form:
723
724 { # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
726 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
727 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
728 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
729 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
730 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
731 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
732 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
733 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
734 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
735 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
736 &quot;cases&quot;: [ # A list of cascading if-else conditions.
737 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
738 &quot;caseContent&quot;: [ # A list of case content.
739 { # The list of messages or conditional cases to activate for this case.
740 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
741 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
742 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
743 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800744 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
745 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800746 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800747 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800748 },
749 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
750 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800752 },
753 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800754 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
755 &quot;segments&quot;: [ # Segments this audio response is composed of.
756 { # Represents one segment of audio.
757 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
758 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
759 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
760 },
761 ],
762 },
763 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
764 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
765 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
766 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
767 },
768 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
769 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
770 },
771 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
772 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
773 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
774 },
775 &quot;text&quot;: { # The text response message. # Returns a text response.
776 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
777 &quot;text&quot;: [ # Required. A collection of text responses.
778 &quot;A String&quot;,
779 ],
780 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800781 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800782 },
783 ],
784 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
785 },
786 ],
787 },
788 ],
789 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
790 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
791 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
792 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
793 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
794 },
795 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800796 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800797 },
798 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
799 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
800 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
801 },
802 },
803 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
804 &quot;segments&quot;: [ # Segments this audio response is composed of.
805 { # Represents one segment of audio.
806 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
807 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
808 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800809 },
810 ],
811 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800812 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
813 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
814 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
815 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800816 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800817 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
818 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800819 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800820 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
821 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
822 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
823 },
824 &quot;text&quot;: { # The text response message. # Returns a text response.
825 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
826 &quot;text&quot;: [ # Required. A collection of text responses.
827 &quot;A String&quot;,
828 ],
829 },
830 },
831 ],
832 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
833 { # Setting a parameter value.
834 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
835 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
836 },
837 ],
838 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
839 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800840 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800841 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800842 ],
843 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
844 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
845 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
846 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
847 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
848 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400849 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
850 &quot;A String&quot;,
851 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800852 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
853 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
854 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
855 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
856 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
857 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
858 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
859 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
860 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
861 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
862 &quot;cases&quot;: [ # A list of cascading if-else conditions.
863 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
864 &quot;caseContent&quot;: [ # A list of case content.
865 { # The list of messages or conditional cases to activate for this case.
866 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
867 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
868 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
869 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
871 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800872 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800873 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800874 },
875 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
876 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
877 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800878 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800879 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800880 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
881 &quot;segments&quot;: [ # Segments this audio response is composed of.
882 { # Represents one segment of audio.
883 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
884 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
885 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
886 },
887 ],
888 },
889 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
890 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
891 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
892 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
893 },
894 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
895 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
896 },
897 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
898 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
899 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
900 },
901 &quot;text&quot;: { # The text response message. # Returns a text response.
902 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
903 &quot;text&quot;: [ # Required. A collection of text responses.
904 &quot;A String&quot;,
905 ],
906 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800907 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800908 },
909 ],
910 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
911 },
912 ],
913 },
914 ],
915 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
916 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
917 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
918 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
920 },
921 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800922 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800923 },
924 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
925 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
926 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
927 },
928 },
929 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
930 &quot;segments&quot;: [ # Segments this audio response is composed of.
931 { # Represents one segment of audio.
932 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
933 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
934 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800935 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800936 ],
937 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800938 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
939 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
940 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
941 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800942 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800943 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800945 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800946 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
947 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
948 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
949 },
950 &quot;text&quot;: { # The text response message. # Returns a text response.
951 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
952 &quot;text&quot;: [ # Required. A collection of text responses.
953 &quot;A String&quot;,
954 ],
955 },
956 },
957 ],
958 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
959 { # Setting a parameter value.
960 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
961 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
962 },
963 ],
964 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
965 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800966 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800967 },
968 ],
969}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700970</div>
971
972<div class="method">
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800973 <code class="details" id="getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</code>
974 <pre>Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.
975
976Args:
977 name: string, Required. The flow name. Format: `projects//locations//agents//flows//validationResult`. (required)
978 languageCode: string, If not specified, the agent&#x27;s default language is used.
979 x__xgafv: string, V1 error format.
980 Allowed values
981 1 - v1 error format
982 2 - v2 error format
983
984Returns:
985 An object of the form:
986
987 { # The response message for Flows.GetFlowValidationResult.
988 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
989 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
990 &quot;validationMessages&quot;: [ # Contains all validation messages.
991 { # Agent/flow validation message.
992 &quot;detail&quot;: &quot;A String&quot;, # The message detail.
993 &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
994 { # Resource name and display name.
995 &quot;displayName&quot;: &quot;A String&quot;, # Display name.
996 &quot;name&quot;: &quot;A String&quot;, # Name.
997 },
998 ],
999 &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
1000 &quot;resources&quot;: [ # The names of the resources where the message is found.
1001 &quot;A String&quot;,
1002 ],
1003 &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
1004 },
1005 ],
1006}</pre>
1007</div>
1008
1009<div class="method">
yoshi-code-bot44a67192021-05-02 03:48:02 -07001010 <code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
1011 <pre>Imports the specified flow to the specified agent from a binary file.
1012
1013Args:
1014 parent: string, Required. The agent to import the flow into. Format: `projects//locations//agents/`. (required)
1015 body: object, The request body.
1016 The object takes the form of:
1017
1018{ # The request message for Flows.ImportFlow.
1019 &quot;flowContent&quot;: &quot;A String&quot;, # Uncompressed raw byte content for flow.
1020 &quot;flowUri&quot;: &quot;A String&quot;, # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import flow from. The format of this URI must be `gs:///`.
1021 &quot;importOption&quot;: &quot;A String&quot;, # Flow import mode. If not specified, `KEEP` is assumed.
1022}
1023
1024 x__xgafv: string, V1 error format.
1025 Allowed values
1026 1 - v1 error format
1027 2 - v2 error format
1028
1029Returns:
1030 An object of the form:
1031
1032 { # This resource represents a long-running operation that is the result of a network API call.
1033 &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.
1034 &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.
1035 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1036 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1037 {
1038 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1039 },
1040 ],
1041 &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.
1042 },
1043 &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.
1044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1045 },
1046 &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}`.
1047 &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`.
1048 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1049 },
1050}</pre>
1051</div>
1052
1053<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001054 <code class="details" id="list">list(parent, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 <pre>Returns the list of all flows in the specified agent.
1056
1057Args:
1058 parent: string, Required. The agent containing the flows. Format: `projects//locations//agents/`. (required)
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001059 languageCode: string, The language to list flows for. The following fields are language dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified, the agent&#x27;s default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001060 pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001061 pageToken: string, The next_page_token value returned from a previous list request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001062 x__xgafv: string, V1 error format.
1063 Allowed values
1064 1 - v1 error format
1065 2 - v2 error format
1066
1067Returns:
1068 An object of the form:
1069
1070 { # The response message for Flows.ListFlows.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001071 &quot;flows&quot;: [ # The list of flows. There will be a maximum number of items returned based on the page_size field in the request.
1072 { # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
1073 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
1074 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
1075 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
1076 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
1077 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
1078 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
1079 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1080 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
1081 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
1082 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1083 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1084 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1085 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
1086 &quot;caseContent&quot;: [ # A list of case content.
1087 { # The list of messages or conditional cases to activate for this case.
1088 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1089 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
1090 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1091 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001092 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1093 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001094 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001095 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001096 },
1097 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1098 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1099 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001100 },
1101 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001102 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1103 &quot;segments&quot;: [ # Segments this audio response is composed of.
1104 { # Represents one segment of audio.
1105 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1106 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1107 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1108 },
1109 ],
1110 },
1111 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1112 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1113 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1114 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1115 },
1116 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1117 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1118 },
1119 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1120 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1121 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1122 },
1123 &quot;text&quot;: { # The text response message. # Returns a text response.
1124 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1125 &quot;text&quot;: [ # Required. A collection of text responses.
1126 &quot;A String&quot;,
1127 ],
1128 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001129 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001130 },
1131 ],
1132 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1133 },
1134 ],
1135 },
1136 ],
1137 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1138 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
1139 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1140 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1141 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1142 },
1143 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001144 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001145 },
1146 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1147 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1149 },
1150 },
1151 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1152 &quot;segments&quot;: [ # Segments this audio response is composed of.
1153 { # Represents one segment of audio.
1154 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1155 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1156 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001157 },
1158 ],
1159 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001160 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1161 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1162 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1163 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001164 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001165 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001167 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1169 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1170 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1171 },
1172 &quot;text&quot;: { # The text response message. # Returns a text response.
1173 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1174 &quot;text&quot;: [ # Required. A collection of text responses.
1175 &quot;A String&quot;,
1176 ],
1177 },
1178 },
1179 ],
1180 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1181 { # Setting a parameter value.
1182 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1183 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1184 },
1185 ],
1186 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1187 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001188 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001189 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001190 ],
1191 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
1192 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
1193 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
1194 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
1195 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
1196 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001197 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
1198 &quot;A String&quot;,
1199 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001200 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
1201 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
1202 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
1203 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
1204 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
1205 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1206 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
1207 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
1208 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1209 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1210 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1211 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
1212 &quot;caseContent&quot;: [ # A list of case content.
1213 { # The list of messages or conditional cases to activate for this case.
1214 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1215 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
1216 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1217 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1219 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001220 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001221 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001222 },
1223 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1224 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001226 },
1227 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001228 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1229 &quot;segments&quot;: [ # Segments this audio response is composed of.
1230 { # Represents one segment of audio.
1231 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1232 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1233 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1234 },
1235 ],
1236 },
1237 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1238 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1239 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1240 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1241 },
1242 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1243 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1244 },
1245 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1246 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1247 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1248 },
1249 &quot;text&quot;: { # The text response message. # Returns a text response.
1250 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1251 &quot;text&quot;: [ # Required. A collection of text responses.
1252 &quot;A String&quot;,
1253 ],
1254 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001255 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001256 },
1257 ],
1258 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1259 },
1260 ],
1261 },
1262 ],
1263 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1264 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
1265 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1266 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1267 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1268 },
1269 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001270 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001271 },
1272 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1273 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1274 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1275 },
1276 },
1277 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1278 &quot;segments&quot;: [ # Segments this audio response is composed of.
1279 { # Represents one segment of audio.
1280 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1281 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1282 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001283 },
1284 ],
1285 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001286 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1287 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1288 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1289 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001290 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001293 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001294 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1295 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1296 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1297 },
1298 &quot;text&quot;: { # The text response message. # Returns a text response.
1299 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1300 &quot;text&quot;: [ # Required. A collection of text responses.
1301 &quot;A String&quot;,
1302 ],
1303 },
1304 },
1305 ],
1306 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1307 { # Setting a parameter value.
1308 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1309 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1310 },
1311 ],
1312 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1313 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001314 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001315 },
1316 ],
1317 },
1318 ],
1319 &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.
1320}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001321</div>
1322
1323<div class="method">
1324 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1325 <pre>Retrieves the next page of results.
1326
1327Args:
1328 previous_request: The request for the previous page. (required)
1329 previous_response: The response from the request for the previous page. (required)
1330
1331Returns:
1332 A request object that you can call &#x27;execute()&#x27; on to request the next
1333 page. Returns None if there are no more items in the collection.
1334 </pre>
1335</div>
1336
1337<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001338 <code class="details" id="patch">patch(name, body=None, languageCode=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001339 <pre>Updates the specified flow.
1340
1341Args:
1342 name: string, The unique identifier of the flow. Format: `projects//locations//agents//flows/`. (required)
1343 body: object, The request body.
1344 The object takes the form of:
1345
1346{ # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001347 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001348 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001349 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
1350 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001351 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
1352 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
1353 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1354 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001355 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001356 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1357 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1358 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1359 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001360 &quot;caseContent&quot;: [ # A list of case content.
1361 { # The list of messages or conditional cases to activate for this case.
1362 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1363 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001364 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1365 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1367 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001368 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001369 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001370 },
1371 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1372 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1373 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1374 },
1375 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001376 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1377 &quot;segments&quot;: [ # Segments this audio response is composed of.
1378 { # Represents one segment of audio.
1379 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1380 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1381 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1382 },
1383 ],
1384 },
1385 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1386 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1387 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1388 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1389 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001390 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1392 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001393 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1394 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1395 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001396 },
1397 &quot;text&quot;: { # The text response message. # Returns a text response.
1398 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1399 &quot;text&quot;: [ # Required. A collection of text responses.
1400 &quot;A String&quot;,
1401 ],
1402 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001403 },
1404 },
1405 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001406 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001407 },
1408 ],
1409 },
1410 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001411 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1412 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001413 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1414 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1415 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1416 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001417 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001418 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001419 },
1420 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1421 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1423 },
1424 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001425 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1426 &quot;segments&quot;: [ # Segments this audio response is composed of.
1427 { # Represents one segment of audio.
1428 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1429 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1430 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1431 },
1432 ],
1433 },
1434 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1435 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1436 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1437 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1438 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001439 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1440 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1441 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001442 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1443 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1444 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001445 },
1446 &quot;text&quot;: { # The text response message. # Returns a text response.
1447 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1448 &quot;text&quot;: [ # Required. A collection of text responses.
1449 &quot;A String&quot;,
1450 ],
1451 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001452 },
1453 ],
1454 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1455 { # Setting a parameter value.
1456 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1457 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1458 },
1459 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001460 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1461 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001462 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001463 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001464 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001465 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001466 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001467 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001468 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
1469 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001470 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001471 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
1472 &quot;A String&quot;,
1473 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001474 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
1475 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001476 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001477 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
1478 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001479 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1480 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001481 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001482 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1483 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1484 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1485 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001486 &quot;caseContent&quot;: [ # A list of case content.
1487 { # The list of messages or conditional cases to activate for this case.
1488 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1489 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001490 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1491 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1493 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001494 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001495 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001496 },
1497 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1498 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1500 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001501 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001502 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1503 &quot;segments&quot;: [ # Segments this audio response is composed of.
1504 { # Represents one segment of audio.
1505 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1506 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1507 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1508 },
1509 ],
1510 },
1511 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1512 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1513 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1514 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1515 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001516 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1517 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1518 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001519 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1520 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1521 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001522 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001523 &quot;text&quot;: { # The text response message. # Returns a text response.
1524 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1525 &quot;text&quot;: [ # Required. A collection of text responses.
1526 &quot;A String&quot;,
1527 ],
1528 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001529 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001530 },
1531 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001532 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001533 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001534 ],
1535 },
1536 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001537 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1538 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001539 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1540 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1542 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001543 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001544 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001545 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001546 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1547 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001548 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1549 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001550 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001551 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1552 &quot;segments&quot;: [ # Segments this audio response is composed of.
1553 { # Represents one segment of audio.
1554 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1555 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1556 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1557 },
1558 ],
1559 },
1560 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1561 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1562 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1563 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1564 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001565 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1566 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1567 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001568 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1569 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1570 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001571 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001572 &quot;text&quot;: { # The text response message. # Returns a text response.
1573 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1574 &quot;text&quot;: [ # Required. A collection of text responses.
1575 &quot;A String&quot;,
1576 ],
1577 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001578 },
1579 ],
1580 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1581 { # Setting a parameter value.
1582 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1583 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1584 },
1585 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001586 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1587 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001588 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001589 },
1590 ],
1591}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001592
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001593 languageCode: string, The language of the following fields in `flow`: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases` If not specified, the agent&#x27;s default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001594 updateMask: string, Required. The mask to control which fields get updated. If `update_mask` is not specified, an error will be returned.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001595 x__xgafv: string, V1 error format.
1596 Allowed values
1597 1 - v1 error format
1598 2 - v2 error format
1599
1600Returns:
1601 An object of the form:
1602
1603 { # Flows represents the conversation flows when you build your chatbot agent. A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started. Usually, when a transition route is followed by a matched intent, the intent will be &quot;consumed&quot;. This means the intent won&#x27;t activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001604 &quot;description&quot;: &quot;A String&quot;, # The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.
1605 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the flow.
1606 &quot;eventHandlers&quot;: [ # A flow&#x27;s event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page&#x27;s event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.
1607 { # An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
1608 &quot;event&quot;: &quot;A String&quot;, # Required. The name of the event to handle.
1609 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this event handler.
1610 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1611 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
1612 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
1613 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1614 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1615 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1616 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
1617 &quot;caseContent&quot;: [ # A list of case content.
1618 { # The list of messages or conditional cases to activate for this case.
1619 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1620 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
1621 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1622 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001623 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1624 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001625 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001626 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001627 },
1628 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1629 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1630 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001631 },
1632 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001633 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1634 &quot;segments&quot;: [ # Segments this audio response is composed of.
1635 { # Represents one segment of audio.
1636 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1637 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1638 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1639 },
1640 ],
1641 },
1642 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1643 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1644 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1645 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1646 },
1647 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1648 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1649 },
1650 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1651 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1652 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1653 },
1654 &quot;text&quot;: { # The text response message. # Returns a text response.
1655 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1656 &quot;text&quot;: [ # Required. A collection of text responses.
1657 &quot;A String&quot;,
1658 ],
1659 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001660 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001661 },
1662 ],
1663 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1664 },
1665 ],
1666 },
1667 ],
1668 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1669 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
1670 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1671 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1672 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1673 },
1674 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001675 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001676 },
1677 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1678 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1679 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1680 },
1681 },
1682 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1683 &quot;segments&quot;: [ # Segments this audio response is composed of.
1684 { # Represents one segment of audio.
1685 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1686 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1687 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001688 },
1689 ],
1690 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001691 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1692 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1693 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1694 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001695 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001696 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1697 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001698 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001699 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1700 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1701 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1702 },
1703 &quot;text&quot;: { # The text response message. # Returns a text response.
1704 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1705 &quot;text&quot;: [ # Required. A collection of text responses.
1706 &quot;A String&quot;,
1707 ],
1708 },
1709 },
1710 ],
1711 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1712 { # Setting a parameter value.
1713 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1714 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1715 },
1716 ],
1717 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1718 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001719 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001720 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001721 ],
1722 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow. Format: `projects//locations//agents//flows/`.
1723 &quot;nluSettings&quot;: { # Settings related to NLU. # NLU related settings of the flow.
1724 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
1725 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
1726 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
1727 },
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001728 &quot;transitionRouteGroups&quot;: [ # A flow&#x27;s transition route group serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:`projects//locations//agents//flows//transitionRouteGroups/`.
1729 &quot;A String&quot;,
1730 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001731 &quot;transitionRoutes&quot;: [ # A flow&#x27;s transition routes serve two purposes: * They are responsible for matching the user&#x27;s first utterances in the flow. * They are inherited by every page&#x27;s transition routes and can support use cases such as the user saying &quot;help&quot; or &quot;can I talk to a human?&quot;, which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified.. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.
1732 { # A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.
1733 &quot;condition&quot;: &quot;A String&quot;, # The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
1734 &quot;intent&quot;: &quot;A String&quot;, # The unique identifier of an Intent. Format: `projects//locations//agents//intents/`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
1735 &quot;name&quot;: &quot;A String&quot;, # Output only. The unique identifier of this transition route.
1736 &quot;targetFlow&quot;: &quot;A String&quot;, # The target flow to transition to. Format: `projects//locations//agents//flows/`.
1737 &quot;targetPage&quot;: &quot;A String&quot;, # The target page to transition to. Format: `projects//locations//agents//flows//pages/`.
1738 &quot;triggerFulfillment&quot;: { # A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses. * Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page&#x27;s entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both. # The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
1739 &quot;conditionalCases&quot;: [ # Conditional cases for this fulfillment.
1740 { # A list of cascading if-else conditions. Cases are mutually exclusive. The first one with a matching condition is selected, all the rest ignored.
1741 &quot;cases&quot;: [ # A list of cascading if-else conditions.
1742 { # Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.
1743 &quot;caseContent&quot;: [ # A list of case content.
1744 { # The list of messages or conditional cases to activate for this case.
1745 &quot;additionalCases&quot;: # Object with schema name: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases # Additional cases to be evaluated.
1746 &quot;message&quot;: { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard. # Returned message.
1747 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1748 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001749 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1750 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001751 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001752 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001753 },
1754 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1755 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1756 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001757 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001758 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001759 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1760 &quot;segments&quot;: [ # Segments this audio response is composed of.
1761 { # Represents one segment of audio.
1762 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1763 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1764 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
1765 },
1766 ],
1767 },
1768 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1769 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1770 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1771 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
1772 },
1773 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1774 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1775 },
1776 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1777 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1778 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1779 },
1780 &quot;text&quot;: { # The text response message. # Returns a text response.
1781 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1782 &quot;text&quot;: [ # Required. A collection of text responses.
1783 &quot;A String&quot;,
1784 ],
1785 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001786 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001787 },
1788 ],
1789 &quot;condition&quot;: &quot;A String&quot;, # The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1790 },
1791 ],
1792 },
1793 ],
1794 &quot;messages&quot;: [ # The list of rich message responses to present to the user.
1795 { # Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
1796 &quot;conversationSuccess&quot;: { # Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn&#x27;t process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don&#x27;t return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue. # Indicates that the conversation succeeded.
1797 &quot;metadata&quot;: { # Custom metadata. Dialogflow doesn&#x27;t impose any structure on this.
1798 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1799 },
1800 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001801 &quot;endInteraction&quot;: { # Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user. It&#x27;s guaranteed that there is at most one such message in each response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001802 },
1803 &quot;liveAgentHandoff&quot;: { # Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human. # Hands off conversation to a human agent.
1804 &quot;metadata&quot;: { # Custom metadata for your handoff procedure. Dialogflow doesn&#x27;t impose any structure on this.
1805 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1806 },
1807 },
1808 &quot;mixedAudio&quot;: { # Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user. # Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
1809 &quot;segments&quot;: [ # Segments this audio response is composed of.
1810 { # Represents one segment of audio.
1811 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this segment can be interrupted by the end user&#x27;s speech and the client should then start the next Dialogflow request.
1812 &quot;audio&quot;: &quot;A String&quot;, # Raw audio synthesized from the Dialogflow agent&#x27;s response using the output config specified in the request.
1813 &quot;uri&quot;: &quot;A String&quot;, # Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001814 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001815 ],
1816 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001817 &quot;outputAudioText&quot;: { # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message. # A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
1818 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1819 &quot;ssml&quot;: &quot;A String&quot;, # The SSML text to be synthesized. For more information, see [SSML](/speech/text-to-speech/docs/ssml).
1820 &quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001821 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001822 &quot;payload&quot;: { # Returns a response containing a custom, platform-specific payload.
1823 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001824 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001825 &quot;playAudio&quot;: { # Specifies an audio clip to be played by the client as part of the response. # Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
1826 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1827 &quot;audioUri&quot;: &quot;A String&quot;, # Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
1828 },
1829 &quot;text&quot;: { # The text response message. # Returns a text response.
1830 &quot;allowPlaybackInterruption&quot;: True or False, # Output only. Whether the playback of this message can be interrupted by the end user&#x27;s speech and the client can then starts the next Dialogflow request.
1831 &quot;text&quot;: [ # Required. A collection of text responses.
1832 &quot;A String&quot;,
1833 ],
1834 },
1835 },
1836 ],
1837 &quot;setParameterActions&quot;: [ # Set parameter values before executing the webhook.
1838 { # Setting a parameter value.
1839 &quot;parameter&quot;: &quot;A String&quot;, # Display name of the parameter.
1840 &quot;value&quot;: &quot;&quot;, # The new value of the parameter. A null value clears the parameter.
1841 },
1842 ],
1843 &quot;tag&quot;: &quot;A String&quot;, # The tag used by the webhook to identify which fulfillment is being called. This field is required if `webhook` is specified.
1844 &quot;webhook&quot;: &quot;A String&quot;, # The webhook to call. Format: `projects//locations//agents//webhooks/`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001845 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001846 },
1847 ],
1848}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001849</div>
1850
1851<div class="method">
1852 <code class="details" id="train">train(name, body=None, x__xgafv=None)</code>
1853 <pre>Trains the specified flow. Note that only the flow in &#x27;draft&#x27; environment is trained.
1854
1855Args:
1856 name: string, Required. The flow to train. Format: `projects//locations//agents//flows/`. (required)
1857 body: object, The request body.
1858 The object takes the form of:
1859
1860{ # The request message for Flows.TrainFlow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001861}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001862
1863 x__xgafv: string, V1 error format.
1864 Allowed values
1865 1 - v1 error format
1866 2 - v2 error format
1867
1868Returns:
1869 An object of the form:
1870
1871 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001872 &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.
1873 &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.
1874 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1875 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1876 {
1877 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1878 },
1879 ],
1880 &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.
1881 },
1882 &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.
1883 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1884 },
1885 &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}`.
1886 &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`.
1887 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1888 },
1889}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001890</div>
1891
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001892<div class="method">
1893 <code class="details" id="validate">validate(name, body=None, x__xgafv=None)</code>
1894 <pre>Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.
1895
1896Args:
1897 name: string, Required. The flow to validate. Format: `projects//locations//agents//flows/`. (required)
1898 body: object, The request body.
1899 The object takes the form of:
1900
1901{ # The request message for Flows.ValidateFlow.
1902 &quot;languageCode&quot;: &quot;A String&quot;, # If not specified, the agent&#x27;s default language is used.
1903}
1904
1905 x__xgafv: string, V1 error format.
1906 Allowed values
1907 1 - v1 error format
1908 2 - v2 error format
1909
1910Returns:
1911 An object of the form:
1912
1913 { # The response message for Flows.GetFlowValidationResult.
1914 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
1915 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
1916 &quot;validationMessages&quot;: [ # Contains all validation messages.
1917 { # Agent/flow validation message.
1918 &quot;detail&quot;: &quot;A String&quot;, # The message detail.
1919 &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
1920 { # Resource name and display name.
1921 &quot;displayName&quot;: &quot;A String&quot;, # Display name.
1922 &quot;name&quot;: &quot;A String&quot;, # Name.
1923 },
1924 ],
1925 &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
1926 &quot;resources&quot;: [ # The names of the resources where the message is found.
1927 &quot;A String&quot;,
1928 ],
1929 &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
1930 },
1931 ],
1932}</pre>
1933</div>
1934
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001935</body></html>