Skip to content
GitHubXDiscordRSS

Assistant

Learn how to create, update, and manage AWS Wisdom Assistants using Alchemy Cloud Control.

The Assistant resource lets you create and manage AWS Wisdom Assistants which provide contextual information and insights to support agents in customer interactions.

Create a basic Wisdom Assistant with required properties and a description:

import AWS from "alchemy/aws/control";
const basicAssistant = await AWS.Wisdom.Assistant("basic-assistant", {
Type: "CUSTOM",
Description: "A basic Wisdom Assistant to support customer service agents.",
Name: "BasicAssistant"
});

Configure an Assistant with server-side encryption and tags for better management:

const advancedAssistant = await AWS.Wisdom.Assistant("advanced-assistant", {
Type: "CUSTOM",
Description: "An advanced Wisdom Assistant with encryption.",
Name: "AdvancedAssistant",
ServerSideEncryptionConfiguration: {
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-ef56-7890-abcd-ef1234567890",
EncryptionType: "KMS"
},
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Department", Value: "Customer Support" }
]
});

Create an Assistant that adopts an existing resource if it already exists, avoiding failure:

const adoptAssistant = await AWS.Wisdom.Assistant("adopt-assistant", {
Type: "CUSTOM",
Name: "AdoptableAssistant",
adopt: true
});

Create an Assistant with specific configurations for a training environment:

const trainingAssistant = await AWS.Wisdom.Assistant("training-assistant", {
Type: "CUSTOM",
Description: "A Wisdom Assistant for training purposes.",
Name: "TrainingAssistant",
ServerSideEncryptionConfiguration: {
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-ef56-7890-abcd-ef1234567890",
EncryptionType: "KMS"
},
Tags: [
{ Key: "Environment", Value: "Training" },
{ Key: "Purpose", Value: "Agent Training" }
]
});