Skip to main content

next_messages

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

Overview

Namenext_messages
TypeResource
Idaws.qconnect.next_messages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
chunked_response_terminatedbooleanIndicates whether the chunked response has been terminated.
conversation_session_dataarrayThe conversation data stored on an Amazon Q in Connect Session.
conversation_stateobjectThe state of current conversation.
next_message_tokenstringThe token for the next message.
request_message_idstringThe identifier of the submitted message. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
responseobjectThe message response to the requested message.
type_stringThe type of message response. (TEXT, TOOL_USE_RESULT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_next_messageselectassistant_id, session_id, nextMessageToken, regionRetrieves next message on an Amazon Q in Connect session.

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
assistant_idstringThe identifier of the Amazon Q in Connect assistant.
nextMessageTokenstringThe token for the next message. Use the value returned in the SendMessage or previous response in the next request to retrieve the next message.
regionstringAWS region (default: us-east-1)
session_idstringThe identifier of the Amazon Q in Connect session.

SELECT examples

Retrieves next message on an Amazon Q in Connect session.

SELECT
chunked_response_terminated,
conversation_session_data,
conversation_state,
next_message_token,
request_message_id,
response,
type_
FROM aws.qconnect.next_messages
WHERE assistant_id = '{{ assistant_id }}' -- required
AND session_id = '{{ session_id }}' -- required
AND nextMessageToken = '{{ nextMessageToken }}' -- required
AND region = '{{ region }}' -- required
;