本文是《Quick Start: Prompt Builder — 创建 AI 驱动的 Case 摘要模板》的练习操作步骤。阅读原文请见:Quick Start: Prompt Builder — 创建 AI 驱动的 Case 摘要模板。
1. Sign Up for a Trial Org
- Click Create Playground (org is auto-attached to your Trailhead account).
- Note the expiration date and complete the badge before then.
2. Enable Agentforce Studio
- In the Challenge section, click Launch to open your org.
- Click the gear icon and select Setup.
- In Quick Find, search for and select Salesforce Go.
- In Search features, enter and select Agentforce Studio.
- Click Get Started, Turn On, then Confirm.
- Wait until the button changes to On, then refresh your browser.
3. Create a Field Generation Prompt Template
- Open the App Launcher and select Agentforce Studio.
- Click Prompt Templates to open Prompt Builder.
- Click New Prompt Template.
- Set: Type Field Generation, Name
Quick Summary, API NameQuick_Summary, DescriptionA short summary of case details, Object Case, Object Field Quick Summary. - Click Next.
4. Add the Prompt and Merge Fields
- Paste the following into the Prompt | Insert Resource field:
Summarize the concatenation of the contents of the comment bodies of COMMENTS along with the text from SUBJECT, the case priority which is PRIORITY, and the case type which is TYPE. Keep the response to a single short paragraph.
- In the Models list, select OpenAI GPT 4 Omni Mini.
- Replace the placeholders with merge fields:
PRIORITY→ Case > PriorityCOMMENTS→ Case > CaseCommentsSUBJECT→ Case > SubjectTYPE→ Case > Case Type
- Click Save.
5. Preview and Activate
- Click Preview, then Inputs.
- In the Related Record box, select case 00001002.
- Click Preview, then Activate.
6. Enable Dynamic Forms for Cases
- Close the Setup tab to return to the Sales app.
- Open the App Launcher and select Cases.
- Select All Open Cases and click case 00001002.
- Click the gear icon and Edit Page.
- In the Details section, click inside the Details component.
- In the properties pane, click Upgrade Now (Dynamic Forms), then Next.
- Select the Case Layout page layout and click Finish.
- Click the Quick Summary field and select Quick Summary as the Prompt Template.
- Click Save, then Activate, then Assign as Org Default → Next.
- Select Desktop and phone, then Next → Save.
- Click the back arrow to leave Lightning App Builder.
7. Use the Quick Summary Field
- On Case 00001002, in the Details pane, click the Quick Summary field's edit button.
- Click the sparkles icon to open the Einstein overlay.
- Review the suggested summary and click Use.
- Click X to close the overlay, then Save.