blob: c52157b9def16474494ea0ae77e34a0180f1b596 [file] [log] [blame]
yoshi-code-bota8b35b92021-03-31 13:33:30 -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_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.answerRecords.html">answerRecords</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="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Returns the list of all answer records in the specified project in reverse chronological order.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
87 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Updates the specified answer record.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
96 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
97 <pre>Returns the list of all answer records in the specified project in reverse chronological order.
98
99Args:
100 parent: string, Required. The project to list all answer records for in reverse chronological order. Format: `projects//locations/`. (required)
101 filter: string, Required. Filters to restrict results to specific answer records. Filter on answer record type. Currently predicates on `type` is supported, valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`. For more information about filtering, see [API Filtering](https://aip.dev/160).
102 pageSize: integer, Optional. The maximum number of records to return in a single page. The server may return fewer records than this. If unspecified, we use 10. The maximum is 100.
103 pageToken: string, Optional. The ListAnswerRecordsResponse.next_page_token value returned from a previous list request used to continue listing on the next page.
104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
108
109Returns:
110 An object of the form:
111
112 { # Response message for AnswerRecords.ListAnswerRecords.
113 &quot;answerRecords&quot;: [ # The list of answer records.
114 { # Answer records are records to manage answer history and feedbacks for Dialogflow. Currently, answer record includes: - human agent assistant article suggestion - human agent assistant faq article It doesn&#x27;t include: - `DetectIntent` intent matching - `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there&#x27;s a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is: 1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers. 2. The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.
115 &quot;agentAssistantRecord&quot;: { # Represents a record of a human agent assist answer. # Output only. The record for human agent assistant.
116 &quot;articleSuggestionAnswer&quot;: { # Represents article answer. # Output only. The article suggestion answer.
117 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
118 &quot;confidence&quot;: 3.14, # Article match confidence. The system&#x27;s confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
119 &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
120 &quot;a_key&quot;: &quot;A String&quot;,
121 },
122 &quot;snippets&quot;: [ # Article snippets.
123 &quot;A String&quot;,
124 ],
125 &quot;title&quot;: &quot;A String&quot;, # The article title.
126 &quot;uri&quot;: &quot;A String&quot;, # The article URI.
127 },
128 &quot;faqAnswer&quot;: { # Represents answer from &quot;frequently asked questions&quot;. # Output only. The FAQ answer.
129 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document.
130 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
131 &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).
132 &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
133 &quot;a_key&quot;: &quot;A String&quot;,
134 },
135 &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
136 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
137 },
138 },
139 &quot;answerFeedback&quot;: { # Represents feedback the customer has about the quality &amp; correctness of a certain answer in a conversation. # Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
140 &quot;agentAssistantDetailFeedback&quot;: { # Detail feedback of Agent Assist result. # Detail feedback of agent assist suggestions.
141 &quot;answerRelevance&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested answer is relevant. For example: * Query: &quot;Can I change my mailing address?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * answer_relevance: AnswerRelevance.IRRELEVANT
142 &quot;documentCorrectness&quot;: &quot;A String&quot;, # Optional. Whether or not the information in the document is correct. For example: * Query: &quot;Can I return the package in 2 days once received?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * Ground truth: &quot;No return or exchange is allowed.&quot; * [document_correctness]: INCORRECT
143 &quot;documentEfficiency&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT.
144 },
145 &quot;clickTime&quot;: &quot;A String&quot;, # Time when the answer/item was clicked.
146 &quot;clicked&quot;: True or False, # Indicates whether the answer/item was clicked by the human agent or not. Default to false.
147 &quot;correctnessLevel&quot;: &quot;A String&quot;, # The correctness level of the specific answer.
148 &quot;displayTime&quot;: &quot;A String&quot;, # Time when the answer/item was displayed.
149 &quot;displayed&quot;: True or False, # Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
150 },
151 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this answer record. Format: `projects//locations//answerRecords/`.
152 },
153 ],
154 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Or empty if there are no more results. Pass this value in the ListAnswerRecordsRequest.page_token field in the subsequent call to `ListAnswerRecords` method to retrieve the next page of results.
155}</pre>
156</div>
157
158<div class="method">
159 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
160 <pre>Retrieves the next page of results.
161
162Args:
163 previous_request: The request for the previous page. (required)
164 previous_response: The response from the request for the previous page. (required)
165
166Returns:
167 A request object that you can call &#x27;execute()&#x27; on to request the next
168 page. Returns None if there are no more items in the collection.
169 </pre>
170</div>
171
172<div class="method">
173 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
174 <pre>Updates the specified answer record.
175
176Args:
177 name: string, The unique identifier of this answer record. Format: `projects//locations//answerRecords/`. (required)
178 body: object, The request body.
179 The object takes the form of:
180
181{ # Answer records are records to manage answer history and feedbacks for Dialogflow. Currently, answer record includes: - human agent assistant article suggestion - human agent assistant faq article It doesn&#x27;t include: - `DetectIntent` intent matching - `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there&#x27;s a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is: 1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers. 2. The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.
182 &quot;agentAssistantRecord&quot;: { # Represents a record of a human agent assist answer. # Output only. The record for human agent assistant.
183 &quot;articleSuggestionAnswer&quot;: { # Represents article answer. # Output only. The article suggestion answer.
184 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
185 &quot;confidence&quot;: 3.14, # Article match confidence. The system&#x27;s confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
186 &quot;metadata&quot;: { # 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;: [ # Article snippets.
190 &quot;A String&quot;,
191 ],
192 &quot;title&quot;: &quot;A String&quot;, # The article title.
193 &quot;uri&quot;: &quot;A String&quot;, # The article URI.
194 },
195 &quot;faqAnswer&quot;: { # Represents answer from &quot;frequently asked questions&quot;. # Output only. The FAQ answer.
196 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document.
197 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
198 &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).
199 &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
200 &quot;a_key&quot;: &quot;A String&quot;,
201 },
202 &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
203 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
204 },
205 },
206 &quot;answerFeedback&quot;: { # Represents feedback the customer has about the quality &amp; correctness of a certain answer in a conversation. # Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
207 &quot;agentAssistantDetailFeedback&quot;: { # Detail feedback of Agent Assist result. # Detail feedback of agent assist suggestions.
208 &quot;answerRelevance&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested answer is relevant. For example: * Query: &quot;Can I change my mailing address?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * answer_relevance: AnswerRelevance.IRRELEVANT
209 &quot;documentCorrectness&quot;: &quot;A String&quot;, # Optional. Whether or not the information in the document is correct. For example: * Query: &quot;Can I return the package in 2 days once received?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * Ground truth: &quot;No return or exchange is allowed.&quot; * [document_correctness]: INCORRECT
210 &quot;documentEfficiency&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT.
211 },
212 &quot;clickTime&quot;: &quot;A String&quot;, # Time when the answer/item was clicked.
213 &quot;clicked&quot;: True or False, # Indicates whether the answer/item was clicked by the human agent or not. Default to false.
214 &quot;correctnessLevel&quot;: &quot;A String&quot;, # The correctness level of the specific answer.
215 &quot;displayTime&quot;: &quot;A String&quot;, # Time when the answer/item was displayed.
216 &quot;displayed&quot;: True or False, # Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this answer record. Format: `projects//locations//answerRecords/`.
219}
220
221 updateMask: string, Required. The mask to control which fields get updated.
222 x__xgafv: string, V1 error format.
223 Allowed values
224 1 - v1 error format
225 2 - v2 error format
226
227Returns:
228 An object of the form:
229
230 { # Answer records are records to manage answer history and feedbacks for Dialogflow. Currently, answer record includes: - human agent assistant article suggestion - human agent assistant faq article It doesn&#x27;t include: - `DetectIntent` intent matching - `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there&#x27;s a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is: 1. For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, AnswerRecord.name are returned to the customers. 2. The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to send feedback about a specific answer that they believe is wrong.
231 &quot;agentAssistantRecord&quot;: { # Represents a record of a human agent assist answer. # Output only. The record for human agent assistant.
232 &quot;articleSuggestionAnswer&quot;: { # Represents article answer. # Output only. The article suggestion answer.
233 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
234 &quot;confidence&quot;: 3.14, # Article match confidence. The system&#x27;s confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
235 &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
236 &quot;a_key&quot;: &quot;A String&quot;,
237 },
238 &quot;snippets&quot;: [ # Article snippets.
239 &quot;A String&quot;,
240 ],
241 &quot;title&quot;: &quot;A String&quot;, # The article title.
242 &quot;uri&quot;: &quot;A String&quot;, # The article URI.
243 },
244 &quot;faqAnswer&quot;: { # Represents answer from &quot;frequently asked questions&quot;. # Output only. The FAQ answer.
245 &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document.
246 &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
247 &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).
248 &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
252 &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
253 },
254 },
255 &quot;answerFeedback&quot;: { # Represents feedback the customer has about the quality &amp; correctness of a certain answer in a conversation. # Required. The AnswerFeedback for this record. You can set this with AnswerRecords.UpdateAnswerRecord in order to give us feedback about this answer.
256 &quot;agentAssistantDetailFeedback&quot;: { # Detail feedback of Agent Assist result. # Detail feedback of agent assist suggestions.
257 &quot;answerRelevance&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested answer is relevant. For example: * Query: &quot;Can I change my mailing address?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * answer_relevance: AnswerRelevance.IRRELEVANT
258 &quot;documentCorrectness&quot;: &quot;A String&quot;, # Optional. Whether or not the information in the document is correct. For example: * Query: &quot;Can I return the package in 2 days once received?&quot; * Suggested document says: &quot;Items must be returned/exchanged within 60 days of the purchase date.&quot; * Ground truth: &quot;No return or exchange is allowed.&quot; * [document_correctness]: INCORRECT
259 &quot;documentEfficiency&quot;: &quot;A String&quot;, # Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT.
260 },
261 &quot;clickTime&quot;: &quot;A String&quot;, # Time when the answer/item was clicked.
262 &quot;clicked&quot;: True or False, # Indicates whether the answer/item was clicked by the human agent or not. Default to false.
263 &quot;correctnessLevel&quot;: &quot;A String&quot;, # The correctness level of the specific answer.
264 &quot;displayTime&quot;: &quot;A String&quot;, # Time when the answer/item was displayed.
265 &quot;displayed&quot;: True or False, # Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
266 },
267 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of this answer record. Format: `projects//locations//answerRecords/`.
268}</pre>
269</div>
270
271</body></html>