Skip to main content

quick_responses

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

Overview

Namequick_responses
TypeResource
Idaws.qconnect.quick_responses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the quick response.
channelsarrayThe Amazon Connect contact channels this quick response applies to. The supported contact channel types include Chat.
content_typestringThe media type of the quick response content. Use application/x.quickresponse;format=plain for quick response written in plain text. Use application/x.quickresponse;format=markdown for quick response written in richtext. (pattern: <code>(application/x.quickresponse;format=(plain|markdown))</code>)
contentsobjectThe contents of the quick response.
created_timestring (date-time)The timestamp when the quick response was created.
descriptionstringThe description of the quick response.
grouping_configurationobjectThe configuration information of the grouping of Amazon Q in Connect users.
is_activebooleanWhether the quick response is active.
knowledge_base_arnstringThe Amazon Resource Name (ARN) of the knowledge base. (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>)
knowledge_base_idstringThe identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
languagestringThe language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW
last_modified_bystringThe Amazon Resource Name (ARN) of the user who last updated the quick response data. (pattern: <code>arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+</code>)
last_modified_timestring (date-time)The timestamp when the quick response data was last modified.
quick_response_arnstringThe Amazon Resource Name (ARN) of the quick response. (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>)
quick_response_idstringThe identifier of the quick response. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
shortcut_keystringThe shortcut key of the quick response. The value should be unique across the knowledge base.
statusstringThe status of the quick response data. (CREATE_IN_PROGRESS, CREATE_FAILED, CREATED, DELETE_IN_PROGRESS, DELETE_FAILED, DELETED, UPDATE_IN_PROGRESS, UPDATE_FAILED)
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_quick_responseselectquick_response_id, knowledge_base_id, regionRetrieves the quick response.
search_quick_responsesselectknowledge_base_id, regionnextToken, maxResultsSearches existing Amazon Q in Connect quick responses in an Amazon Q in Connect knowledge base.
list_quick_responsesselectknowledge_base_id, regionnextToken, maxResultsLists information about quick response.
create_quick_responseinsertknowledge_base_id, region, name, contentCreates an Amazon Q in Connect quick response.
update_quick_responseupdateknowledge_base_id, quick_response_id, regionUpdates an existing Amazon Q in Connect quick response.
delete_quick_responsedeleteknowledge_base_id, quick_response_id, regionDeletes a quick response.

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
knowledge_base_idstringThe knowledge base from which the quick response is deleted. The identifier of the knowledge base.
quick_response_idstringThe identifier of the quick response to delete.
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 the quick response.

SELECT
name,
channels,
content_type,
contents,
created_time,
description,
grouping_configuration,
is_active,
knowledge_base_arn,
knowledge_base_id,
language,
last_modified_by,
last_modified_time,
quick_response_arn,
quick_response_id,
shortcut_key,
status,
tags
FROM aws.qconnect.quick_responses
WHERE quick_response_id = '{{ quick_response_id }}' -- required
AND knowledge_base_id = '{{ knowledge_base_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Q in Connect quick response.

INSERT INTO aws.qconnect.quick_responses (
name,
content,
contentType,
groupingConfiguration,
description,
shortcutKey,
isActive,
channels,
language,
clientToken,
tags,
knowledge_base_id,
region
)
SELECT
'{{ name }}' /* required */,
'{{ content }}' /* required */,
'{{ contentType }}',
'{{ groupingConfiguration }}',
'{{ description }}',
'{{ shortcutKey }}',
{{ isActive }},
'{{ channels }}',
'{{ language }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ knowledge_base_id }}',
'{{ region }}'
RETURNING
quick_response
;

UPDATE examples

Updates an existing Amazon Q in Connect quick response.

UPDATE aws.qconnect.quick_responses
SET
name = '{{ name }}',
content = '{{ content }}',
contentType = '{{ contentType }}',
groupingConfiguration = '{{ groupingConfiguration }}',
removeGroupingConfiguration = {{ removeGroupingConfiguration }},
description = '{{ description }}',
removeDescription = {{ removeDescription }},
shortcutKey = '{{ shortcutKey }}',
removeShortcutKey = {{ removeShortcutKey }},
isActive = {{ isActive }},
channels = '{{ channels }}',
language = '{{ language }}'
WHERE
knowledge_base_id = '{{ knowledge_base_id }}' --required
AND quick_response_id = '{{ quick_response_id }}' --required
AND region = '{{ region }}' --required
RETURNING
quick_response;

DELETE examples

Deletes a quick response.

DELETE FROM aws.qconnect.quick_responses
WHERE knowledge_base_id = '{{ knowledge_base_id }}' --required
AND quick_response_id = '{{ quick_response_id }}' --required
AND region = '{{ region }}' --required
;