How real-time data integration works
Real-time data integration shows agents data from your business systems, such as a CRM, an order system or a billing system, in real time in the Amazon Connect Customer agent workspace. A step-by-step guide shows agents your system's records during the contact:
It starts when a contact is offered to an agent, and shows the records when the agent accepts.
It writes the agent's changes back through an agentic gateway in your AWS account.
Each call runs as an integration identity that you create in each system.
The template copies no record into Customer Profiles or Cases in Connect Customer.
AI agents in Connect Customer can use the same gateway, with or without an agent.
The Salesforce template is the ready-made example. It deploys the gateway and a sample account and case guide for Salesforce Service Cloud.
Terms used in this chapter:
- Contact
A call or chat in Connect Customer. Where the two could be confused, this chapter calls a person on a Salesforce account a Salesforce Contact.
- The customer's contact
The customer's call or chat, which the agent accepts.
- The guide's own contact
Each guide runs as a contact of its own, linked to the customer's contact. Contact attributes the guide sets on its own contact aren't on the customer's contact unless the guide writes them there too.
How the parts work together
Real-time data integration combines four parts:
-
A step-by-step guide: a Connect Customer flow that shows views to the agent and fetches the data each view displays.
-
The External Tool flow block, which calls one operation on a system and waits for the answer.
-
The agentic gateway (Amazon Bedrock AgentCore Gateway), a managed AWS service in your account that stores credentials and presents each system's operations as tools. Each system is a target on the gateway. In the Salesforce template, AI agents reach the gateway only through Connect Customer flow modules; see Use the Connect assistant with real-time data integration.
-
An integration identity in each system, which every call runs as. With the Salesforce template, it is a dedicated Salesforce user with an External Client App.
Connect Customer calls the agentic gateway over the Model Context Protocol (MCP), and the gateway calls your system's REST API through an OpenAPI target.
The following diagram shows a gateway that reaches several systems. The numbered path is the read and write during each contact, with Salesforce as the example.
The path of one contact is the same for any connected system. The numbers in the diagram match these steps, and the examples in parentheses come from the Salesforce template:
-
A customer calls or starts a chat, and your inbound flow runs. It can send the contact to a self-service AI agent first.
-
Your inbound flow stores how to find the customer's record in the business system as a contact attribute (in the Salesforce template,
accountId,caseIdorcontactEmail), and sets the guide as the Default flow for Agent UI. The guide starts when the contact is offered to an agent, and shows the customer when the agent accepts. -
The guide's flow modules ask the gateway, through External Tool blocks, for the data each view needs. In the Salesforce template, a request reads the account with its recent cases and contacts.
-
The gateway calls the system's API with the stored credentials, as the integration user.
-
The data fills the views when the agent accepts. Updates the agent makes go back the same way.
Who real-time data integration is for
Real-time data integration is for any contact center on Connect Customer whose agents or AI agents need records in real time from a business system during a contact, such as a CRM, an order system or a billing system. How you start depends on the system:
-
Any system with an API: you create a gateway, integrate it with your instance, add a target for the system, and build the guide's views; see Connect another system with an API.
-
Salesforce: a ready-made CloudFormation template sets up the gateway and a sample guide. Customers of the Connect Customer CTI Adapter for Salesforce can use it to bring their agents into the agent workspace, while Salesforce remains the system of record; see Move from the CTI Adapter for Salesforce.
It fits wherever a contact needs records from your system in real time:
-
Agents in the agent workspace, who see the customer's records in a guide and update them during the contact.
-
Self-service AI agents, which answer the customer with no agent and no agent workspace, such as reporting an order's status. In the Salesforce template, the account agent, if you make it the default, reads the account in the contact's
accountId, so your flow setsaccountIdonly after it verifies the customer; see Let self-service read the verified account. -
Agent assist, which finds and reads the customer's account, contacts and cases for the agent, creates cases and customers, and updates the account and its contacts, after the agent confirms each write; see Give agents agent assist in the agent workspace.
With Salesforce, a guide you build can also start your automation, such as autolaunched flows, invocable Apex classes and quick actions. Salesforce console components, such as Lightning pages and macros, stay in Salesforce for the users who work there. In the agent workspace, agents see the views you build in guides and flow modules.
What changes, and what stays the same
-
Agents handle contacts in the agent workspace, with its built-in softphone and chat. Your systems remain the system of record, and the guide reads and writes their records in real time.
-
Connect Customer routes contacts with your existing flows, queues and routing profiles.
-
Automation in your system still runs on the guide's writes, such as record-triggered flows, Apex triggers, and validation and assignment rules in Salesforce.
-
Your system records the integration identity as the author of every write; in Salesforce, that is the integration user. To find the agent, match the record to the Connect Customer contact record, or record the agent in your system as well; see Record the agent in your system.
Example: the Salesforce template
The Salesforce template creates a sample account and case guide (a Connect Customer flow that shows screens to the agent). It is a ready-made sample that you change to fit how your agents work. It starts when the contact is offered to an agent, and shows the customer when the agent accepts. It finds the customer's Salesforce account from the contact, and shows the account with its recent cases and contacts. When a search finds no account, the not-found screen offers New customer, which creates the account and its first contact.
From the account view, the agent can:
search for another account or case;
create a case;
add a contact;
edit the account's name, phone and billing city, with Edit on Customer information;
edit a contact's name, email and phone, with Edit on its row;
open See all cases;
open a case with its comments, emails and files, and update or close it there.
The following image shows the agent workspace during a chat that the AI self-service bot handed to an agent. Its callouts name each part: the contact details, the customer's information with Refresh and Edit, the self-service conversation, Create case, the recent cases with See all cases, and the Connect assistant's account summary.
The guide reads Salesforce when it opens an account or a case, after each save, and on the other actions listed in Reference: the sample guide's screens, and keeps nothing between contacts. A change made in Salesforce, or by agent assist, while a view is open shows the next time the guide reads that record, for example after Refresh.
If you deploy with Wrap-up flow and form set to Enabled, a wrap-up form asks the agent for a disposition code and notes when the contact ends, and saves them on the contact in Connect Customer, not in Salesforce. For each screen of the sample guide
and what the agent does on it, see What agents see in the sample account and case guide.
The following diagram shows one contact from start to finish, and which system each step uses: Connect Customer, the agentic gateway, or Salesforce Service Cloud.
The guide's steps, finding the account and working its cases, reach Salesforce
through the gateway as the integration user. Self-service and agent assist answer from
your knowledge base. Self-service reads Salesforce only if you make the account agent the assistant's
default Self service AI agent, and then only the account in the contact's
accountId; see
Let self-service read the verified account.
Agent assist asks the agent to confirm each create and update before it runs it; see
Give agents agent assist in the agent workspace.
Before you decide, read Plan for scale, which explains how to estimate usage and cost, and Security considerations.