本文是《Service Agent 定制 — 用 Prompt Builder + Agent Actions + Flow 构建智能客服》的练习操作步骤。阅读原文请见:Service Agent 定制 — 用 Prompt Builder + Agent Actions + Flow 构建智能客服。
1. Enable Agentforce
- In the Setup Quick Find, search for and select Salesforce Go.
- In Search features, enter and select Agentforce (Default).
- Click Get Started, Turn On, then Confirm.
2. Add a Custom Subagent
- In Setup Quick Find, search for and select Agentforce Agents.
- Select Coral Cloud Experience Agent, then Open in Builder.
- Click New > + New Subagent.
- Enter
Handles guest issues by providing personalized recovery options based on an open case.and click Next. - Configure the subagent (Name, Classification Description, Scope) and leave only two instruction text boxes.
- Add the two provided instructions, then Next and Finish.
3. Add an Action to Validate Customer Details
- Select the Guest Issue Recovery subagent.
- With Subagent's Actions selected, click New > + Create New Action.
- Select Flow as Reference Action Type, and Get Customer Details as Reference Action.
- Click Next.
- Uncheck Show loading text for this action.
- For email and memberNumber, check Require Input; for contact, check Show in conversation.
- Click Finish.
4. Create an Action to Use the Prompt Template
- With Subagent's Actions selected, click New > + Create New Action.
- Select Prompt Template as Reference Action Type, and Guest Experience Compensation as Reference Action.
- Click Next.
- Configure the Agent Action Instructions, uncheck Show loading text, and check Show in conversation.
- Click Finish.
5. Test Your Agent
- In Agentforce Builder, click the refresh icon in the Conversation Preview.
- Enter
The White Water Rafting experience my family and I booked was unexpectedly cancelled.and press Enter. - Enter
I'm sofiarodriguez@example.com and my membership number is 10008155.and press Enter. - Note the agent offers Tier 2 compensation for a Tier 3 issue.
- Refresh and enter
At the Ocean Kayak Expedition, I didn't like that the tour group was so large. - Enter
I'm tabathatobias@example.com and my membership number is 10009996.
6. Modify the Prompt Template
- Click the gear icon and select Setup.
- Search for and select Prompt Builder, then click Guest Experience Compensation.
- Replace the line "Determine the appropriate tier of compensation based on the guidelines below." with the provided text.
- Click Save As > Save As New Version.
7. Activate a Flow and Connect It to the Prompt
- In Setup, search for and select Flows, then select Get Open Cases for Contact.
- Click Activate, then the back arrow to return to Setup.
- In Setup, search for and select Prompt Builder, then Guest Experience Compensation.
- After
Case Details:, click Insert Resource > Flows > Get Open Cases for Contact. - After
Complaint:, click Insert Resource > Free Text > Complaint. - Click Save.
8. Preview and Activate
- Click Preview, select Sofia Rodriguez in Contact, and enter
I didn't like that the tour group was so largein Complaint. - Click Preview again and review.
- Click Activate.
9. Retest in Agentforce Builder
- In Setup, search for and select Agentforce Agents, choose Coral Cloud Experience Agent, then Open in Builder.
- Enter
The White Water Rafting experience my family and I booked was unexpectedly canceled.and press Enter. - Enter
I'm sofiarodriguez@example.com and my membership number is 10008155.and confirm the improved response.