Skip to main content

conversations

Creates, updates, deletes, gets or lists a conversations resource.

Overview

Nameconversations
TypeResource
Idaws.qbusiness.conversations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
conversation_idstringThe identifier of the Amazon Q Business conversation. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
start_timestring (date-time)The start time of the conversation.
title_stringThe title of the conversation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_conversationsselectapplication_id, regionuserId, nextToken, maxResultsLists one or more Amazon Q Business conversations.
put_feedbackreplaceapplication_id, conversation_id, message_id, regionuserIdEnables your end user to provide feedback on their Amazon Q Business generated chat responses.
delete_conversationdeleteconversation_id, application_id, regionuserIdDeletes an Amazon Q Business web experience conversation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application associated with the conversation.
conversation_idstringThe identifier of the Amazon Q Business web experience conversation being deleted.
message_idstringThe identifier of the chat message that the feedback was given for.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of Amazon Q Business conversations to return.
nextTokenstringIf the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business conversations.
userIdstringThe identifier of the user who is deleting the conversation.

SELECT examples

Lists one or more Amazon Q Business conversations.

SELECT
conversation_id,
start_time,
title_
FROM aws.qbusiness.conversations
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND userId = '{{ userId }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

REPLACE examples

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

REPLACE aws.qbusiness.conversations
SET
messageCopiedAt = '{{ messageCopiedAt }}',
messageUsefulness = '{{ messageUsefulness }}'
WHERE
application_id = '{{ application_id }}' --required
AND conversation_id = '{{ conversation_id }}' --required
AND message_id = '{{ message_id }}' --required
AND region = '{{ region }}' --required
AND userId = '{{ userId}}';

DELETE examples

Deletes an Amazon Q Business web experience conversation.

DELETE FROM aws.qbusiness.conversations
WHERE conversation_id = '{{ conversation_id }}' --required
AND application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
AND userId = '{{ userId }}'
;