:doc:`QBusiness <../../qbusiness>` / Client / put_feedback

************
put_feedback
************



.. py:method:: QBusiness.Client.put_feedback(**kwargs)

  

  Enables your end user to provide feedback on their Amazon Q Business generated chat responses.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/PutFeedback>`_  


  **Request Syntax**
  ::

    response = client.put_feedback(
        applicationId='string',
        userId='string',
        conversationId='string',
        messageId='string',
        messageCopiedAt=datetime(2015, 1, 1),
        messageUsefulness={
            'usefulness': 'USEFUL'|'NOT_USEFUL',
            'reason': 'NOT_FACTUALLY_CORRECT'|'HARMFUL_OR_UNSAFE'|'INCORRECT_OR_MISSING_SOURCES'|'NOT_HELPFUL'|'FACTUALLY_CORRECT'|'COMPLETE'|'RELEVANT_SOURCES'|'HELPFUL'|'NOT_BASED_ON_DOCUMENTS'|'NOT_COMPLETE'|'NOT_CONCISE'|'OTHER',
            'comment': 'string',
            'submittedAt': datetime(2015, 1, 1)
        }
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The identifier of the application associated with the feedback.

    

  
  :type userId: string
  :param userId: 

    The identifier of the user giving the feedback.

    

  
  :type conversationId: string
  :param conversationId: **[REQUIRED]** 

    The identifier of the conversation the feedback is attached to.

    

  
  :type messageId: string
  :param messageId: **[REQUIRED]** 

    The identifier of the chat message that the feedback was given for.

    

  
  :type messageCopiedAt: datetime
  :param messageCopiedAt: 

    The timestamp for when the feedback was recorded.

    

  
  :type messageUsefulness: dict
  :param messageUsefulness: 

    The feedback usefulness value given by the user to the chat message.

    

  
    - **usefulness** *(string) --* **[REQUIRED]** 

      The usefulness value assigned by an end user to a message.

      

    
    - **reason** *(string) --* 

      The reason for a usefulness rating.

      

    
    - **comment** *(string) --* 

      A comment given by an end user on the usefulness of an AI-generated chat message.

      

    
    - **submittedAt** *(datetime) --* **[REQUIRED]** 

      The timestamp for when the feedback was submitted.

      

    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`QBusiness.Client.exceptions.InternalServerException`

  
  *   :py:class:`QBusiness.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`QBusiness.Client.exceptions.ThrottlingException`

  
  *   :py:class:`QBusiness.Client.exceptions.ValidationException`

  
  *   :py:class:`QBusiness.Client.exceptions.AccessDeniedException`

  