View a markdown version of this page

How real-time data integration works - Amazon Connect Customer

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.

Four boxes: your customer; the agent workspace, with the step-by-step guide and the Connect assistant panel; an AWS box that contains Connect Customer, with the inbound flow, an optional self-service AI agent, the guide flow and views, and the Connect assistant AI agent, and the agentic gateway, with the gateway; its OpenAPI target, which the Salesforce stack uses; its built-in template, MCP server and Lambda targets; and the credential provider; and your business systems: Salesforce, the worked example, a billing system, an order system, and your own system. Numbered two-way arrows go from the customer to the inbound flow, from the inbound flow to the guide flow, between the guide flow and the gateway, between the gateway and Salesforce, and between the guide flow and the step-by-step guide. The self-service AI agent and the Connect assistant also call the gateway, through flow modules.

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:

  1. A customer calls or starts a chat, and your inbound flow runs. It can send the contact to a self-service AI agent first.

  2. Your inbound flow stores how to find the customer's record in the business system as a contact attribute (in the Salesforce template, accountId, caseId or contactEmail), 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.

  3. 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.

  4. The gateway calls the system's API with the stored credentials, as the integration user.

  5. 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 sets accountId only 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 agent workspace during a chat with Jordan Lee, with eight callouts. A callout at the top says the chat, the guide and the Connect assistant are side by side. Callouts on the left point to the contact details (the customer, the channel and the time on the contact), the Example Corp account read from Salesforce, the AI self-service conversation in the chat, and the Create case card. Callouts on the right point to Edit and Refresh on Customer information (Edit corrects the account's and its contacts' details, and Refresh reads the account again), to Recent cases with each case's status and priority, View case and See all cases, and to the Connect assistant's summary of the account and its 8 cases.

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.

Three groups: Amazon Connect Customer, the agentic gateway and Salesforce Service Cloud. In Amazon Connect Customer, six numbered steps run down the page: 1, the customer starts a chat or call and your inbound flow runs; 2, optional, a self-service AI agent answers from the knowledge base; 3, Connect routing hands the contact to a human agent; 4, the guide opens on the account, by the contact's attribute or by search, possible matches or New customer; 5, the agent works the account and its cases in the guide: edits the customer and contacts, and creates and updates cases; 6, optional, wrap-up, and then close. Inside Amazon Connect Customer, a group labelled Optional: AI agents holds the knowledge base; the account agent's tool, which reads only the account in the contact's accountId; and the agent assist panel beside step 5, which answers from the knowledge base, finds and reads records, and creates cases and customers and updates the account and its contacts after the agent confirms. Steps 4 and 5, the account tool (read only) and agent assist, through the guide's modules, call the Salesforce target in the agentic gateway, which reads and writes accounts, contacts and cases in Salesforce while the contact is in progress.

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.