本文是《Agentforce Service Assistant | Case 记录页上的辅助型 AI 代理》的练习操作步骤。阅读原文请见:Agentforce Service Assistant | Case 记录页上的辅助型 AI 代理。
1. Sign Up for a Custom Playground
- Click Create Playground and follow the steps to create and connect a custom playground with Data 360.
2. Turn On Agentforce Features
- Click the gear icon and select Setup.
- Search for and select Service Assistant.
- In Turn On Einstein Generative AI, click Go to Einstein Setup and ensure the Einstein toggle is On, then refresh.
- Search for and select Salesforce Go, then Agentforce (Default).
- Click Get Started, Turn On, then Confirm.
3. Create a Service Assistant Agent
- Search for and select Agentforce Agents, then click + New Agent (refresh if not present).
- Click Create Agent, select Agentforce Service Assistant, then Next.
- In Customize your agent, add to Company:
Coral Cloud Resorts provides customers with exceptional destination activities, unforgettable experiences, and reservation services, all backed by a commitment to top-notch customer service. - Check Keep a record of conversations with Enhanced Event Logs; keep Agent User as New Agent User.
- Click Create.
4. Create the Subagent
- In the Subagents sidebar, click New → + New Subagent.
- Enter
Assist service reps with travel documentation and visa application related cases. Make sure they have all the necessary information to help customers.and click Next. - Populate the fields, replacing the auto-populated text:
- Name:
Travel Documentation - API Name:
Travel_Documentation - Classification Description:
Assist service reps in helping customers in navigating the visa application process, including required documents, application procedures, document validity, submission process, processing times, and embassy contact information. Questions are related to visa requirements, which include required documents, application procedures, document validity, submission process, processing times, and embassy contact information. - Scope:
Your job is to assist service reps in providing customers with the visa application process and related travel documents. Make sure they have all the right documents, information, and follow all the rules and procedures. You must not provide legal advice or handle inquiries outside of visa applications.
- Name:
- Replace the auto-populated instructions with the following 8 instructions (click Add Instructions as needed):
- If the customer has all the required documents, verify their validity and completeness in the verification portal.
- Always check if the customer needs a visa and vaccinations for their destination.
- For questions about the submission process, tell the customer where and how to submit the application both in the company's travel verification portal and through the destination country's visa website. Always include a link to the official embassy website for the destination country for detailed information and application procedures.
- When you have confirmed the visa requirements, always provide the customer with a checklist of all required documents such as a passport, port entry forms, visa application form, recent passport photos, and proof of travel.
- If the destination country requires additional documents such as a letter of invitation or proof of financial means, inform the customer and provide guidance on how to obtain these.
- After the application is submitted, provide the customer with a follow-up plan, including expected processing times and contact information for the embassy.
- Provide travel tips and advice on what to expect during the visa interview, if required.
- Always be sure to thank the customer for choosing our company and provide a link to our survey on the service to help improve future assistance.
- Click Next, skip actions, and Finish.
- Click Activate (or Ignore & Activate if prompted), then exit Agentforce Builder.
5. Turn On Service AI Grounding
- Search for and select Service Assistant, then go to the Customize Experience by Object step.
- In Turn on Service AI Grounding for Cases, click Go to Service AI Grounding and turn it on.
- Under Case Fields, click Edit: set Subject → Subject and Description → Description.
- Check Include Case Emails and Include Case Comments, then Save and Activate Grounding with Cases.
6. Set Eligibility Criteria
- In Define Service Plan Eligibility Criteria, click Go to Flows, then select Check Service Plan Eligibility.
- Select the Is Case Eligible for Service Plan? decision element.
- In Outcome Details (Yes tab), confirm Label Yes, API Name EligibleForServicePlan, Conditions All Conditions Are Met (AND).
- Confirm the Case from Get Case resource has Is Null = False; delete ineligibilityReason; confirm Priority Equals High.
- Click + Add Condition: Resource Case from Get Case → Case Origin, Operator Equals, Value Email.
- Click Save as New Flow, Label
Travel Documentation, Save, then Activate. - Back on the Setup page, select Flow Label Travel Documentation, Case ID Variable caseId, Eligibility Result meetsEligibility, Ineligibility Reason ineligibilityReason, then Save.
7. Turn On Service Assistant and Add the Component
- In Turn On Service Assistant for Cases, move the toggle to On.
- Open the App Launcher and select Service, then the Cases tab and All Open Cases.
- Select case 00001028 (Help with Travel Documentation).
- Click the gear icon and Edit Page.
- From Components, search Service Assistant and add it to the canvas.
- Click Save, then Activate, select Desktop, Next, Save, then Save and Activation → Service Console → Desktop → Save.
8. Test Service Assistant
- Open the App Launcher and select Service Console.
- From the Cases tab, select Help with Travel Documentation.
- Edit the Subject/Description in Details and click Save.
- Wait for the service plan summary state (refresh or click Sync if needed).
- In the Service Assistant component, click Draft Plan and review the plan (may take up to 2 minutes).