Skip to content

Commit 97bbafd

Browse files
author
AWS
committed
Amazon Connect Wisdom Service Update: This release introduces a new API PutFeedback that allows submitting feedback to Wisdom on content relevance.
1 parent 024f2ca commit 97bbafd

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Connect Wisdom Service",
4+
"contributor": "",
5+
"description": "This release introduces a new API PutFeedback that allows submitting feedback to Wisdom on content relevance."
6+
}

services/wisdom/src/main/resources/codegen-resources/service-2.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,23 @@
377377
"documentation":"<p>Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html\">GetRecommendations</a> and a <code>waitTimeSeconds</code> input for long-polling behavior and avoiding duplicate recommendations.</p>",
378378
"idempotent":true
379379
},
380+
"PutFeedback":{
381+
"name":"PutFeedback",
382+
"http":{
383+
"method":"PUT",
384+
"requestUri":"/assistants/{assistantId}/feedback",
385+
"responseCode":200
386+
},
387+
"input":{"shape":"PutFeedbackRequest"},
388+
"output":{"shape":"PutFeedbackResponse"},
389+
"errors":[
390+
{"shape":"ValidationException"},
391+
{"shape":"AccessDeniedException"},
392+
{"shape":"ResourceNotFoundException"}
393+
],
394+
"documentation":"<p>Submits feedback to Wisdom. The feedback is used to improve future recommendations from <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html\">GetRecommendations</a> or results from <a href=\"https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html\">QueryAssistant</a>. Feedback can be resubmitted up to 6 hours after submission. </p>",
395+
"idempotent":true
396+
},
380397
"QueryAssistant":{
381398
"name":"QueryAssistant",
382399
"http":{
@@ -1349,6 +1366,17 @@
13491366
},
13501367
"documentation":"<p>The text of the document.</p>"
13511368
},
1369+
"FeedbackData":{
1370+
"type":"structure",
1371+
"required":["relevance"],
1372+
"members":{
1373+
"relevance":{
1374+
"shape":"Relevance",
1375+
"documentation":"<p>The relevance of the target this feedback is for.</p>"
1376+
}
1377+
},
1378+
"documentation":"<p>The feedback to submit to Wisdom.</p>"
1379+
},
13521380
"Filter":{
13531381
"type":"structure",
13541382
"required":[
@@ -2026,6 +2054,67 @@
20262054
},
20272055
"exception":true
20282056
},
2057+
"PutFeedbackRequest":{
2058+
"type":"structure",
2059+
"required":[
2060+
"assistantId",
2061+
"feedback",
2062+
"targetId",
2063+
"targetType"
2064+
],
2065+
"members":{
2066+
"assistantId":{
2067+
"shape":"UuidOrArn",
2068+
"documentation":"<p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>",
2069+
"location":"uri",
2070+
"locationName":"assistantId"
2071+
},
2072+
"feedback":{
2073+
"shape":"FeedbackData",
2074+
"documentation":"<p>The feedback.</p>"
2075+
},
2076+
"targetId":{
2077+
"shape":"String",
2078+
"documentation":"<p>The identifier of a recommendation. or The identifier of the result data.</p>"
2079+
},
2080+
"targetType":{
2081+
"shape":"TargetType",
2082+
"documentation":"<p>The type of the targetId for which The feedback. is targeted.</p>"
2083+
}
2084+
}
2085+
},
2086+
"PutFeedbackResponse":{
2087+
"type":"structure",
2088+
"required":[
2089+
"assistantArn",
2090+
"assistantId",
2091+
"feedback",
2092+
"targetId",
2093+
"targetType"
2094+
],
2095+
"members":{
2096+
"assistantArn":{
2097+
"shape":"UuidOrArn",
2098+
"documentation":"<p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>"
2099+
},
2100+
"assistantId":{
2101+
"shape":"Uuid",
2102+
"documentation":"<p>The identifier of the Wisdom assistant.</p>"
2103+
},
2104+
"feedback":{
2105+
"shape":"FeedbackData",
2106+
"documentation":"<p>The feedback.</p>"
2107+
},
2108+
"targetId":{
2109+
"shape":"Uuid",
2110+
"documentation":"<p>The identifier of a recommendation. or The identifier of the result data.</p>"
2111+
},
2112+
"targetType":{
2113+
"shape":"TargetType",
2114+
"documentation":"<p>The type of the targetId for which The feedback. is targeted.</p>"
2115+
}
2116+
}
2117+
},
20292118
"QueryAssistantRequest":{
20302119
"type":"structure",
20312120
"required":[
@@ -2187,6 +2276,13 @@
21872276
"type":"string",
21882277
"enum":["KNOWLEDGE_CONTENT"]
21892278
},
2279+
"Relevance":{
2280+
"type":"string",
2281+
"enum":[
2282+
"HELPFUL",
2283+
"NOT_HELPFUL"
2284+
]
2285+
},
21902286
"RelevanceLevel":{
21912287
"type":"string",
21922288
"enum":[
@@ -2562,6 +2658,13 @@
25622658
"key":{"shape":"TagKey"},
25632659
"value":{"shape":"TagValue"}
25642660
},
2661+
"TargetType":{
2662+
"type":"string",
2663+
"enum":[
2664+
"RECOMMENDATION",
2665+
"RESULT"
2666+
]
2667+
},
25652668
"TooManyTagsException":{
25662669
"type":"structure",
25672670
"members":{

0 commit comments

Comments
 (0)