2022/08/15 - Amazon Connect Wisdom Service - 1 new api methods
Changes This release introduces a new API PutFeedback that allows submitting feedback to Wisdom on content relevance.
Submits feedback to Wisdom. The feedback is used to improve future recommendations from GetRecommendations or results from QueryAssistant . Feedback can be resubmitted up to 6 hours after submission.
See also: AWS API Documentation
Request Syntax
client.put_feedback(
    assistantId='string',
    feedback={
        'relevance': 'HELPFUL'|'NOT_HELPFUL'
    },
    targetId='string',
    targetType='RECOMMENDATION'|'RESULT'
)
string
[REQUIRED]
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
dict
[REQUIRED]
The feedback.
relevance (string) -- [REQUIRED]
The relevance of the target this feedback is for.
string
[REQUIRED]
The identifier of a recommendation. or The identifier of the result data.
string
[REQUIRED]
The type of the targetId for which The feedback. is targeted.
dict
Response Syntax
{
    'assistantArn': 'string',
    'assistantId': 'string',
    'feedback': {
        'relevance': 'HELPFUL'|'NOT_HELPFUL'
    },
    'targetId': 'string',
    'targetType': 'RECOMMENDATION'|'RESULT'
}
Response Structure
(dict) --
assistantArn (string) --
The Amazon Resource Name (ARN) of the Wisdom assistant.
assistantId (string) --
The identifier of the Wisdom assistant.
feedback (dict) --
The feedback.
relevance (string) --
The relevance of the target this feedback is for.
targetId (string) --
The identifier of a recommendation. or The identifier of the result data.
targetType (string) --
The type of the targetId for which The feedback. is targeted.