Skip to main content

assistants

Creates, updates, deletes, gets or lists an assistants resource.

Overview

Nameassistants
TypeResource
Idaws.qconnect.assistants

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name. (pattern: <code>[a-zA-Z0-9\s_.,-]+.*</code>)
ai_agent_configurationobjectThe configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that is set on the Amazon Q in Connect Assistant.
assistant_arnstringThe Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. (pattern: <code>arn:[a-z-]?:wisdom:[a-z0-9-]?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}</code>)
assistant_idstringThe identifier of the Amazon Q in Connect assistant. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
capability_configurationobjectThe configuration information for the Amazon Q in Connect assistant capability.
descriptionstringThe description. (pattern: <code>[a-zA-Z0-9\s_.,-]+.*</code>)
integration_configurationobjectThe configuration information for the Amazon Q in Connect assistant integration.
orchestrator_configuration_listarrayThe list of orchestrator configurations for the assistant.
server_side_encryption_configurationobjectThe configuration information for the customer managed key used for encryption.
statusstringThe status of the assistant. (CREATE_IN_PROGRESS, CREATE_FAILED, ACTIVE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETED)
tagsobjectThe tags used to organize, track, or control access for this resource.
type_stringThe type of assistant. (AGENT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_assistantselectassistant_id, regionRetrieves information about an assistant.
list_assistantsselectregionnextToken, maxResultsLists information about assistants.
create_assistantinsertregion, name, typeCreates an Amazon Q in Connect assistant.
put_feedbackreplaceassistant_id, region, targetId, targetType, contentFeedbackProvides feedback against the specified assistant for the specified target. This API only supports generative targets.
delete_assistantdeleteassistant_id, regionDeletes an assistant.
query_assistantexecassistant_id, regionThis API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024, you will need to create a new Assistant in the Amazon Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications. Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.
retrieveexecassistant_id, region, retrievalConfiguration, retrievalQueryRetrieves content from knowledge sources based on a query.
send_messageexecassistant_id, session_id, region, type, messageSubmits a message to the 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.
regionstringAWS region (default: us-east-1)
session_idstringThe identifier of the Amazon Q in Connect session.
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Retrieves information about an assistant.

SELECT
name,
ai_agent_configuration,
assistant_arn,
assistant_id,
capability_configuration,
description,
integration_configuration,
orchestrator_configuration_list,
server_side_encryption_configuration,
status,
tags,
type_
FROM aws.qconnect.assistants
WHERE assistant_id = '{{ assistant_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Q in Connect assistant.

INSERT INTO aws.qconnect.assistants (
clientToken,
name,
type,
description,
tags,
serverSideEncryptionConfiguration,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ type }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ serverSideEncryptionConfiguration }}',
'{{ region }}'
RETURNING
assistant
;

REPLACE examples

Provides feedback against the specified assistant for the specified target. This API only supports generative targets.

REPLACE aws.qconnect.assistants
SET
targetId = '{{ targetId }}',
targetType = '{{ targetType }}',
contentFeedback = '{{ contentFeedback }}'
WHERE
assistant_id = '{{ assistant_id }}' --required
AND region = '{{ region }}' --required
AND targetId = '{{ targetId }}' --required
AND targetType = '{{ targetType }}' --required
AND contentFeedback = '{{ contentFeedback }}' --required
RETURNING
assistant_arn,
assistant_id,
content_feedback,
target_id,
target_type;

DELETE examples

Deletes an assistant.

DELETE FROM aws.qconnect.assistants
WHERE assistant_id = '{{ assistant_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

This API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024, you will need to create a new Assistant in the Amazon Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications. Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.

EXEC aws.qconnect.assistants.query_assistant
@assistant_id='{{ assistant_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"queryText": "{{ queryText }}",
"nextToken": "{{ nextToken }}",
"maxResults": {{ maxResults }},
"sessionId": "{{ sessionId }}",
"queryCondition": "{{ queryCondition }}",
"queryInputData": "{{ queryInputData }}",
"overrideKnowledgeBaseSearchType": "{{ overrideKnowledgeBaseSearchType }}"
}'
;