Skip to main content

ai_agents

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

Overview

Nameai_agents
TypeResource
Idaws.qconnect.ai_agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ai_agentobjectThe data of the AI Agent.
version_numberinteger (int64)The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the aiAgentId on the request).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ai_agentselectassistant_id, ai_agent_id, regionGets an Amazon Q in Connect AI Agent.
list_ai_agentsselectassistant_id, regionnextToken, maxResults, originLists AI Agents.
create_ai_agentinsertassistant_id, region, name, type, configuration, visibilityStatusCreates an Amazon Q in Connect AI Agent.
update_ai_agentupdateassistant_id, ai_agent_id, region, visibilityStatusUpdates an AI Agent.
update_assistant_ai_agentupdateassistant_id, region, aiAgentType, configurationUpdates the AI Agent that is set for use by default on an Amazon Q in Connect Assistant.
remove_assistant_ai_agentupdateassistant_id, aiAgentType, regionorchestratorUseCaseRemoves the AI Agent that is set for use by default on an Amazon Q in Connect Assistant.
delete_ai_agentdeleteassistant_id, ai_agent_id, regionDeletes an Amazon Q in Connect AI Agent.

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
aiAgentTypestringThe type of the AI Agent being removed for use by default from the Amazon Q in Connect Assistant.
ai_agent_idstringThe identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs cannot contain the ARN.
assistant_idstringThe identifier of the Amazon Q in Connect 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.
orchestratorUseCasestringThe orchestrator use case for the AI Agent being removed.
originstringThe origin of the AI Agents to be listed. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

SELECT examples

Gets an Amazon Q in Connect AI Agent.

SELECT
ai_agent,
version_number
FROM aws.qconnect.ai_agents
WHERE assistant_id = '{{ assistant_id }}' -- required
AND ai_agent_id = '{{ ai_agent_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Q in Connect AI Agent.

INSERT INTO aws.qconnect.ai_agents (
clientToken,
name,
type,
configuration,
visibilityStatus,
tags,
description,
assistant_id,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ type }}' /* required */,
'{{ configuration }}' /* required */,
'{{ visibilityStatus }}' /* required */,
'{{ tags }}',
'{{ description }}',
'{{ assistant_id }}',
'{{ region }}'
RETURNING
ai_agent
;

UPDATE examples

Updates an AI Agent.

UPDATE aws.qconnect.ai_agents
SET
clientToken = '{{ clientToken }}',
visibilityStatus = '{{ visibilityStatus }}',
configuration = '{{ configuration }}',
description = '{{ description }}'
WHERE
assistant_id = '{{ assistant_id }}' --required
AND ai_agent_id = '{{ ai_agent_id }}' --required
AND region = '{{ region }}' --required
AND visibilityStatus = '{{ visibilityStatus }}' --required
RETURNING
ai_agent;

DELETE examples

Deletes an Amazon Q in Connect AI Agent.

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