Use the Connect assistant with real-time data integration
AI agents of the Connect assistant can call the gateway's tools, or flow modules
that wrap them, without a guide. A self-service AI agent answers the customer with no human agent. Give it a data tool only when the tool reads records of a customer your flow verified, as the account agent's getMyAccount does; otherwise give it only the knowledge base. Agent assist uses the gateway's tools to help an agent during a contact. For how to add a tool to a self-service AI agent safely, see
Let self-service read the verified account.
The Salesforce template includes a sample: every stack of the template with the account and case guide also creates an AI
self-service flow, . The sample is built and tested for chat: its AI agents run the self-service chat prompt.stack-name-ai-selfservice-sample
In the sample flow, the assistant's default Self service AI agent answers the customer: the knowledge agent answers only from your knowledge bases, and the account agent, if you make it the default, also answers from the verified account in the contact's accountId; see Let self-service read the verified account. Either one hands the contact to an agent with Escalate, and the guide then opens on that accountId. On that flow's contacts, agent assist answers the agent from the same knowledge base and the guide's flow modules, asking the agent to confirm each create or update. For agent assist on contacts from your own inbound flow, see Give agents agent assist in the agent workspace. No phone number, chat entry point or flow sends contacts to the AI
self-service flow until you route contacts to it. For how AI agents work in Connect Customer, see
Use AI agents for real-time assistance.
The following diagram shows both. The numbered path is one self-service chat that ends with an agent; the dashed path is the account agent's data tool, which contacts use only if you make the account agent the default.
The stack creates these resources:
-
The AI self-service flow, and the Lex bot
, which carries the conversation to the AI agent.stack-name-ai-selfservice-bot -
The knowledge agent,
, which answers from the knowledge bases and escalates to an agent. It reads no Salesforce data.stack-name-ai-knowledge -
The account agent,
, which has the knowledge agent's tools andstack-name-ai-accountgetMyAccount, which reads only the account in the contact'saccountId. The stack creates it when Account agent for verified contacts istrue, the default; see Let self-service read the verified account. -
The agent assist AI agent,
, which the flow's Connect assistant block names. Its tools are the knowledge base search and seven of the guide's flow modules: Find the customer, Read the account, Read a case and List the account's cases, which it runs without asking, and Create a case, Create a customer and Update a record, which it runs only after the agent confirms.stack-name-ai-agent-assist -
Two prompts, one that the knowledge agent and the account agent share for self-service and one for agent assist, and a security profile for each AI agent that lists the tools it may call.
-
When Existing Connect assistant (ARN) is empty, an assistant,
, and its association with your instance, which the stack keeps when it is deleted or its create fails. When Knowledge base to associate (ARN) is set, that knowledge base's association with the assistant, which the stack removes when it is deleted.stack-name-assistant
The stack's change-alert topic gets every change to these AI agents, their prompts, the flow modules agent assist and the account agent use, the assistant's default AI agents, and the security profiles in your instance. To subscribe to it, see Monitor the integration.
The flow uses no Connect Customer messages until you route contacts to it. To estimate a chat, count its
messages to and from Connect Customer, the AI agent's included, and price them with Connect Customer pricing
Customer chat text, and anything the AI agents read from Salesforce, can be stored in these places. Limit who can read them, and set a retention period on their CloudWatch log groups.
-
Amazon Lex conversation logs, if you turn them on for the bot.
-
Flow logs, if you turn them on. The stack's AI self-service flow turns none on.
-
Chat transcripts, in the Amazon S3 bucket the instance uses for them.
-
The contact attributes
aiEscalationReasonandaiEscalationSummary, where the flow saves the AI agent's reason and summary onEscalate.
Before you begin
-
The stack from Set up real-time data integration for Salesforce, and a knowledge base with your articles, such as your refunds policy.
-
For the console steps, your AWS sign-in needs these actions:
On the stack:
cloudformation:DescribeStacks.On the assistant:
wisdom:GetAssistant,wisdom:GetAIAgent,wisdom:ListAIAgentVersions,wisdom:UpdateAssistantAIAgentandwisdom:RemoveAssistantAIAgent.On the instance:
connect:ListSecurityProfiles,connect:AssociateSecurityProfilesandconnect:DisassociateSecurityProfiles.
A deployer role also needs the AI self-service deployer policy; see CloudFormation template reference.