1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.conversations.html">conversations</a> . <a href="dialogflow_v2beta1.projects.conversations.participants.html">participants</a> . <a href="dialogflow_v2beta1.projects.conversations.participants.suggestions.html">suggestions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#compile">compile(parent, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Gets suggestions for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.</p>
83<p class="toc_element">
84  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See HumanAgentAssistantConfig.name for more details. Removal Date: 2020-09-01. Retrieves suggestions for live agents. This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) design pattern. The client app should use the `next_page_token` field to fetch the next batch of suggestions. `suggestions` are sorted by `create_time` in descending order. To fetch latest suggestion, just set `page_size` to 1. To fetch new suggestions without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90  <code><a href="#suggestArticles">suggestArticles(parent, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets suggested articles for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.</p>
92<p class="toc_element">
93  <code><a href="#suggestFaqAnswers">suggestFaqAnswers(parent, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets suggested faq answers for a participant based on specific historical messages.</p>
95<p class="toc_element">
96  <code><a href="#suggestSmartReplies">suggestSmartReplies(parent, body=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets smart replies for a participant based on specific historical messages.</p>
98<h3>Method Details</h3>
99<div class="method">
100    <code class="details" id="close">close()</code>
101  <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
105    <code class="details" id="compile">compile(parent, body=None, x__xgafv=None)</code>
106  <pre>Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Gets suggestions for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.
107
108Args:
109  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
110  body: object, The request body.
111    The object takes the form of:
112
113{ # The request message for Participants.CompileSuggestion.
114  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. If zero or less than zero, 20 is used.
115  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
116}
117
118  x__xgafv: string, V1 error format.
119    Allowed values
120      1 - v1 error format
121      2 - v2 error format
122
123Returns:
124  An object of the form:
125
126    { # The response message for Participants.CompileSuggestion.
127  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the CompileSuggestionRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
128  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
129  &quot;suggestion&quot;: { # Represents a suggestion for a human agent. # The compiled suggestion.
130    &quot;articles&quot;: [ # Output only. Articles ordered by score in descending order.
131      { # Represents suggested article.
132        &quot;answerRecord&quot;: &quot;A String&quot;, # Output only. The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
133        &quot;metadata&quot;: { # Output only. A map that contains metadata about the answer and the document from which it originates.
134          &quot;a_key&quot;: &quot;A String&quot;,
135        },
136        &quot;snippets&quot;: [ # Output only. Article snippets.
137          &quot;A String&quot;,
138        ],
139        &quot;title&quot;: &quot;A String&quot;, # Output only. The article title.
140        &quot;uri&quot;: &quot;A String&quot;, # Output only. The article URI.
141      },
142    ],
143    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the suggestion was created.
144    &quot;faqAnswers&quot;: [ # Output only. Answers extracted from FAQ documents.
145      { # Represents suggested answer from &quot;frequently asked questions&quot;.
146        &quot;answer&quot;: &quot;A String&quot;, # Output only. The piece of text from the `source` knowledge base document.
147        &quot;answerRecord&quot;: &quot;A String&quot;, # Output only. The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
148        &quot;confidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
149        &quot;metadata&quot;: { # Output only. A map that contains metadata about the answer and the document from which it originates.
150          &quot;a_key&quot;: &quot;A String&quot;,
151        },
152        &quot;question&quot;: &quot;A String&quot;, # Output only. The corresponding FAQ question.
153        &quot;source&quot;: &quot;A String&quot;, # Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
154      },
155    ],
156    &quot;latestMessage&quot;: &quot;A String&quot;, # Output only. Latest message used as context to compile this suggestion. Format: `projects//locations//conversations//messages/`.
157    &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this suggestion. Format: `projects//locations//conversations//participants/*/suggestions/`.
158  },
159}</pre>
160</div>
161
162<div class="method">
163    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
164  <pre>Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See HumanAgentAssistantConfig.name for more details. Removal Date: 2020-09-01. Retrieves suggestions for live agents. This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) design pattern. The client app should use the `next_page_token` field to fetch the next batch of suggestions. `suggestions` are sorted by `create_time` in descending order. To fetch latest suggestion, just set `page_size` to 1. To fetch new suggestions without duplication, send request with filter `create_time_epoch_microseconds &gt; [first item&#x27;s create_time of previous request]` and empty page_token.
165
166Args:
167  parent: string, Required. The name of the participant to fetch suggestions for. Format: `projects//locations//conversations//participants/`. (required)
168  filter: string, Optional. Filter on suggestions fields. Currently predicates on `create_time` and `create_time_epoch_microseconds` are supported. `create_time` only support milliseconds accuracy. E.g., `create_time_epoch_microseconds &gt; 1551790877964485` or `create_time &gt; &quot;2017-01-15T01:30:15.01Z&quot;` For more information about filtering, see [API Filtering](https://aip.dev/160).
169  pageSize: integer, Optional. The maximum number of items to return in a single page. The default value is 100; the maximum value is 1000.
170  pageToken: string, Optional. The next_page_token value returned from a previous list request.
171  x__xgafv: string, V1 error format.
172    Allowed values
173      1 - v1 error format
174      2 - v2 error format
175
176Returns:
177  An object of the form:
178
179    { # The response message for Participants.ListSuggestions.
180  &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. Token to retrieve the next page of results or empty if there are no more results in the list.
181  &quot;suggestions&quot;: [ # Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. `suggestions` is sorted by `create_time` in descending order.
182    { # Represents a suggestion for a human agent.
183      &quot;articles&quot;: [ # Output only. Articles ordered by score in descending order.
184        { # Represents suggested article.
185          &quot;answerRecord&quot;: &quot;A String&quot;, # Output only. The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
186          &quot;metadata&quot;: { # Output only. A map that contains metadata about the answer and the document from which it originates.
187            &quot;a_key&quot;: &quot;A String&quot;,
188          },
189          &quot;snippets&quot;: [ # Output only. Article snippets.
190            &quot;A String&quot;,
191          ],
192          &quot;title&quot;: &quot;A String&quot;, # Output only. The article title.
193          &quot;uri&quot;: &quot;A String&quot;, # Output only. The article URI.
194        },
195      ],
196      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the suggestion was created.
197      &quot;faqAnswers&quot;: [ # Output only. Answers extracted from FAQ documents.
198        { # Represents suggested answer from &quot;frequently asked questions&quot;.
199          &quot;answer&quot;: &quot;A String&quot;, # Output only. The piece of text from the `source` knowledge base document.
200          &quot;answerRecord&quot;: &quot;A String&quot;, # Output only. The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
201          &quot;confidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
202          &quot;metadata&quot;: { # Output only. A map that contains metadata about the answer and the document from which it originates.
203            &quot;a_key&quot;: &quot;A String&quot;,
204          },
205          &quot;question&quot;: &quot;A String&quot;, # Output only. The corresponding FAQ question.
206          &quot;source&quot;: &quot;A String&quot;, # Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
207        },
208      ],
209      &quot;latestMessage&quot;: &quot;A String&quot;, # Output only. Latest message used as context to compile this suggestion. Format: `projects//locations//conversations//messages/`.
210      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this suggestion. Format: `projects//locations//conversations//participants/*/suggestions/`.
211    },
212  ],
213}</pre>
214</div>
215
216<div class="method">
217    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
218  <pre>Retrieves the next page of results.
219
220Args:
221  previous_request: The request for the previous page. (required)
222  previous_response: The response from the request for the previous page. (required)
223
224Returns:
225  A request object that you can call &#x27;execute()&#x27; on to request the next
226  page. Returns None if there are no more items in the collection.
227    </pre>
228</div>
229
230<div class="method">
231    <code class="details" id="suggestArticles">suggestArticles(parent, body=None, x__xgafv=None)</code>
232  <pre>Gets suggested articles for a participant based on specific historical messages. Note that ListSuggestions will only list the auto-generated suggestions, while CompileSuggestion will try to compile suggestion based on the provided conversation context in the real time.
233
234Args:
235  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
236  body: object, The request body.
237    The object takes the form of:
238
239{ # The request message for Participants.SuggestArticles.
240  &quot;assistQueryParams&quot;: { # Represents the parameters of human assist query. # Optional. Parameters for a human assist query.
241    &quot;documentsMetadataFilters&quot;: { # Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have &#x27;US&#x27; or &#x27;CA&#x27; in their market metadata values and &#x27;agent&#x27; in their user metadata values will be ``` documents_metadata_filters { key: &quot;market&quot; value: &quot;US,CA&quot; } documents_metadata_filters { key: &quot;user&quot; value: &quot;agent&quot; } ```
242      &quot;a_key&quot;: &quot;A String&quot;,
243    },
244  },
245  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including latest_message to use as context when compiling the suggestion. By default 20 and at most 50.
246  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
247}
248
249  x__xgafv: string, V1 error format.
250    Allowed values
251      1 - v1 error format
252      2 - v2 error format
253
254Returns:
255  An object of the form:
256
257    { # The response message for Participants.SuggestArticles.
258  &quot;articleAnswers&quot;: [ # Output only. Articles ordered by score in descending order.
259    { # Represents article answer.
260      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
261      &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
262        &quot;a_key&quot;: &quot;A String&quot;,
263      },
264      &quot;snippets&quot;: [ # Output only. Article snippets.
265        &quot;A String&quot;,
266      ],
267      &quot;title&quot;: &quot;A String&quot;, # The article title.
268      &quot;uri&quot;: &quot;A String&quot;, # The article URI.
269    },
270  ],
271  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestArticlesResponse.context_size field in the request if there aren&#x27;t that many messages in the conversation.
272  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
273}</pre>
274</div>
275
276<div class="method">
277    <code class="details" id="suggestFaqAnswers">suggestFaqAnswers(parent, body=None, x__xgafv=None)</code>
278  <pre>Gets suggested faq answers for a participant based on specific historical messages.
279
280Args:
281  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
282  body: object, The request body.
283    The object takes the form of:
284
285{ # The request message for Participants.SuggestFaqAnswers.
286  &quot;assistQueryParams&quot;: { # Represents the parameters of human assist query. # Optional. Parameters for a human assist query.
287    &quot;documentsMetadataFilters&quot;: { # Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have &#x27;US&#x27; or &#x27;CA&#x27; in their market metadata values and &#x27;agent&#x27; in their user metadata values will be ``` documents_metadata_filters { key: &quot;market&quot; value: &quot;US,CA&quot; } documents_metadata_filters { key: &quot;user&quot; value: &quot;agent&quot; } ```
288      &quot;a_key&quot;: &quot;A String&quot;,
289    },
290  },
291  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
292  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
293}
294
295  x__xgafv: string, V1 error format.
296    Allowed values
297      1 - v1 error format
298      2 - v2 error format
299
300Returns:
301  An object of the form:
302
303    { # The request message for Participants.SuggestFaqAnswers.
304  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
305  &quot;faqAnswers&quot;: [ # Output only. Answers extracted from FAQ documents.
306    { # Represents answer from &quot;frequently asked questions&quot;.
307      &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document.
308      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
309      &quot;confidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
310      &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
311        &quot;a_key&quot;: &quot;A String&quot;,
312      },
313      &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
314      &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
315    },
316  ],
317  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
318}</pre>
319</div>
320
321<div class="method">
322    <code class="details" id="suggestSmartReplies">suggestSmartReplies(parent, body=None, x__xgafv=None)</code>
323  <pre>Gets smart replies for a participant based on specific historical messages.
324
325Args:
326  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
327  body: object, The request body.
328    The object takes the form of:
329
330{ # The request message for Participants.SuggestSmartReplies.
331  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
332  &quot;currentTextInput&quot;: { # Represents the natural language text to be processed. # The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
333    &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this conversational query. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
334    &quot;text&quot;: &quot;A String&quot;, # Required. The UTF-8 encoded natural language text to be processed. Text length must not exceed 256 characters.
335  },
336  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
337}
338
339  x__xgafv: string, V1 error format.
340    Allowed values
341      1 - v1 error format
342      2 - v2 error format
343
344Returns:
345  An object of the form:
346
347    { # The response message for Participants.SuggestSmartReplies.
348  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
349  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
350  &quot;smartReplyAnswers&quot;: [ # Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
351    { # Represents a smart reply answer.
352      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
353      &quot;confidence&quot;: 3.14, # Smart reply confidence. The system&#x27;s confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
354      &quot;reply&quot;: &quot;A String&quot;, # The content of the reply.
355    },
356  ],
357}</pre>
358</div>
359
360</body></html>