本文是《Connect Data 360 to Agentforce | 将 Data 360 连接到 Agentforce》的练习操作步骤。阅读原文请见:Connect Data 360 to Agentforce | 将 Data 360 连接到 Agentforce。
1. Enable Data Streams
- Launch your Data 360 and Agentforce playground.
- Open the App Launcher and select Data Cloud.
- Click the Data Streams tab, then New.
- Click Salesforce CRM, then Next.
- Page down to Custom Bundles and click AIPlusData.
- Click Next, leave field selections as is, then Next.
- Click Deploy (if it errors, click Deploy again).
- Refresh the page, then for each data stream select Refresh Now → Full Refresh → Refresh Now.
- Verify Success for the new streams and that Total Records is greater than zero.
2. Set Up Identity Resolution
- Click the Identity Resolutions tab, then New.
- Click Create New Ruleset, then Next.
- Leave default selected in the Data Space menu.
- For Primary DMO, choose Individual.
- For Ruleset ID, enter
ccid, then Next. - For Ruleset Name, enter
Guest Name and Email. - For Description, enter
Reconcile Reserve-o-matic contact data with Salesforce contact data. - Disable Run jobs automatically, then Save.
- Click Configure, then Next, then Configure.
- Choose Fuzzy Name and Normalized Email, then Next twice, then Save.
- Click Run Ruleset and refresh until Last Job Status shows Succeeded.
3. Verify External Reservations Relationship
- Click the Data Model tab, then ExternalReservation.
- Click the Relationships tab and ensure a relationship is present and active.
- If no relationship is listed, click Edit and add: Field Contact ID, Cardinality N:1, Related Object Individual, Related Field Individual Id, then Save & Close.
4. Connect Data 360 and CRM with Enrichment
- Click the Setup icon, then Setup.
- Click Object Manager, then Contact.
- Click Data Cloud Related List, then New.
- For Data Cloud Object, choose ExternalReservation, then Next.
- Update Child Relationship Name to
Reservations, then Next. - Update Related list label to
Reservations, then Next. - Click Lightning Record Pages, then Contact Record Page, then Edit.
- Drag a Dynamic Related List - Single into the Related tab above Opportunities.
- Under Related List, choose Reservations.
- Add fields Check-in Date, Check-out Date, Room Type, and Reservation Status; delete Record ID.
- Add a filter: Field Check-in Date, Operator not equal to.
- Click Done, then Save, then close the Lightning App Builder tab.
- In the Sales app, open Contacts, find Sofia Rodriguez, and verify three reservations appear.
5. Finish a Flow to Log Guest Events
- Open the App Launcher and select Flows, then the All Flows list view.
- Click Create Check-in Guest Event, then Open Flow.
- Configure Unified Link 1: Data Source Data Cloud Object, Data Space default, Object Unified Link Individual ccid; filter Field Individual Id, Value ContactRecordId; Save.
- Configure Unified Link 2: same object; filter Field Unified Individual Id, Value
{!Unified_Link_1.UnifiedRecordId__c}; add condition Field Data Source Object, Operator Starts With, ValueExternal; Save. - Configure Reservation 1: Object ExternalReservation; filter Field Contact ID, Value
{!Unified_Link_2.SourceRecordId__c}; Sort Order Descending, Sort By Check_in_Date_c__c; Save. - Configure Event Summary: Value
Check-in date of {!Reservation_1.Check_in_Date_c__c}, check-out date of {!Reservation_1.Check_out_Date_c__c}, for room type {!Reservation_1.Room_type_c__c}; Save. - Click Activate and close the Flow tab.
6. Create a Check-in Agentforce Action
- Click the Setup icon, then Setup.
- In Setup Quick Find, search for and select Salesforce Go.
- In Search features, enter and select Agentforce Studio.
- Click Get Started, Turn On, then Confirm.
- Open the App Launcher and select Agentforce Studio.
- Click Connect Data 360, then New Version.
- Mouse over General CRM and click +, then New Action.
- For Action Name, enter
Create Check-in Guest Event. - For Description, enter
This action creates a Guest Event record to capture when a contact completes check-in for a reservation. - Click Create and Open.
- For Reference Action Type, select Flow; for Reference Action, select Create Check-in Guest Event.
- For Inputs, check Require Input to execute action for ContactRecordId.
- For Outputs, check Show in conversation for EventSummary.
- Click Save, Commit Version twice, then Activate twice.
7. Test the Check-in
- In the Sales app, click the Contacts tab and open Sofia Rodriguez.
- Refresh the browser.
- Click the Agentforce icon to open the panel.
- Type
Check in Sofia Rodriguezand press Enter/Return. - Confirm the agent responds that check-in is complete, and the Guest Event record was created.