Amazon Connect Wisdom Service

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.

PutFeedback (new) Link ΒΆ

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'
)
type assistantId:

string

param assistantId:

[REQUIRED]

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

type feedback:

dict

param feedback:

[REQUIRED]

The feedback.

  • relevance (string) -- [REQUIRED]

    The relevance of the target this feedback is for.

type targetId:

string

param targetId:

[REQUIRED]

The identifier of a recommendation. or The identifier of the result data.

type targetType:

string

param targetType:

[REQUIRED]

The type of the targetId for which The feedback. is targeted.

rtype:

dict

returns:

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.