Appearance
Exercise 6 (Optional): Ground the Agent with Unstructured Data
This exercise goes beyond the core Merchant Account Manager build. The agent you built answers from structured CRM data, so no knowledge base is required. This optional exercise shows how you'd add Retrieval Augmented Generation (RAG) if your account managers also needed answers from unstructured documents such as partner playbooks, onboarding guides, or policy PDFs, the kind of question that lives in documents rather than records.
Step 1: Create a Data Library
You create the Data Library in Setup first, then attach it to the agent in the next step.
In Setup, search for Data Libraries and select Data Libraries.
Click New Data Library.
Enter the following values:
Field Value Name Account Manager PlaybookAPI Name Keep default Description Partner management playbooks, SLAs, and onboarding guides for Pronto account managers.Click Save.
For Data type, select Files.
TIP
Data Libraries support multiple source types:
- Files: Ingest documents like PDFs and index them for retrieval (best for playbooks, policies, FAQs).
- Knowledge: Index Salesforce Knowledge articles so retrieval can ground answers in your Knowledge base.
- Web: Crawl and index website pages (for example, a help center) to ground answers in published web content.
Click Upload Files and select the partner-management documents you want to ground on (playbooks, SLAs, onboarding guides). If you completed the RAG chapter, you can reuse the same Pronto support PDFs:
Click Save to confirm the file upload.
Once the files have uploaded, click Done.
TIP
This screen can occasionally throw an error after uploading files. If it does, refresh the page to confirm whether your file upload was successful.
Step 2: Add the Data Library to your agent
Back in Agentforce Builder, in the Explorer, select Data, then Data Library.
Select your created Account Manager Playbook Data Library.
Step 3: Add a knowledge subagent
In Agentforce Builder, click the + sign besides Subagents in the explorer.
Select Create new subagent.
Set the following values:
Field Value Name Partner Playbook Q&ADescription Answer questions about internal support processes and policies (case creation, escalation, refunds and credits, storefront standards) using the Account Manager Playbook data library, and defer to the analytical topics for anything data-driven.Click Create and Open.
Paste the following into the Instructions section:
txtAnswer questions about internal support processes and policies (case creation, escalation rules, refunds and credits, customer verification, and storefront standards) using the Account Manager Playbook data library. Ground every answer in the retrieved documents and cite them when available. Defer to the analytical topics for anything data-driven (account health, reviews, marketing events, cases), and route process and policy questions here rather than to those data topics.Click Save.
Step 4: Add the knowledge action
In the Explorer, select the Partner Playbook Q&A subagent.
Under Actions Available For Reasoning, open the Select action dropdown and choose Add from Asset Library.
Search for and add Answer Questions with Knowledge (or the equivalent RAG action), and point it at the Account Manager Playbook data library.
Click Add to Agent.
Click Save at the top level of the agent.
Step 5: Preview
Click Preview and ask a question that should be answered from the documents:
txtWhich scenarios require immediate escalation?txtWhen should I create a support case?Confirm the response cites content from the uploaded documents rather than hallucinating.
Summary
- Learned when RAG complements structured queries: process and policy questions vs. data questions.
- Created a Data Library and a knowledge subagent, and grounded responses with a search action.
Next (optional), you'll surface unified Data 360 data in the agent.