Skip to main content

assistants

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

Overview

Nameassistants
TypeResource
Idaws.wisdom.assistants

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name. (pattern: <code>^[a-zA-Z0-9\s_.,-]+</code>)
assistant_arnstringThe Amazon Resource Name (ARN) of the Wisdom 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})?$</code>)
assistant_idstringThe identifier of the Wisdom assistant. (pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
descriptionstringThe description. (pattern: <code>^[a-zA-Z0-9\s_.,-]+</code>)
integration_configurationobjectThe configuration information for the Wisdom assistant integration.
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_assistantsselectregionmaxResults, nextTokenLists information about assistants.
create_assistantinsertregion, name, typeCreates an Amazon Connect Wisdom assistant.
delete_assistantdeleteassistant_id, regionDeletes an assistant.
query_assistantexecassistant_id, region, queryTextPerforms a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.

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 Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
regionstringAWS region (default: us-east-1)
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,
assistant_arn,
assistant_id,
description,
integration_configuration,
server_side_encryption_configuration,
status,
tags,
type_
FROM aws.wisdom.assistants
WHERE assistant_id = '{{ assistant_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Connect Wisdom assistant.

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

DELETE examples

Deletes an assistant.

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

Lifecycle Methods

Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.

EXEC aws.wisdom.assistants.query_assistant
@assistant_id='{{ assistant_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"maxResults": {{ maxResults }},
"nextToken": "{{ nextToken }}",
"queryText": "{{ queryText }}"
}'
;