您位於此處:
為申請者和贈款者支援工作人員建立文件庫
將 PDF 檔案上載至 Agentforce 資料庫,以便「申請者」和「贈款者支援工作人員」從您的贈款文件中提取回答。
必要版本
| 提供版本:Lightning Experience |
| 提供版本:Nonprofit Cloud for Grantmaking 和公共部門解決方案。檢視版本可用性。 |
| 需要的使用者權限 | |
|---|---|
| 若要建立 Agentforce 資料庫: | 「管理資料庫」系統權限 |
| 在「工作人員產生器」中修改工作人員: | 「管理機器人」系統權限 |
建立文件庫之前,請先完成 設定申請者和贈款者支援工作人員。
-
建立 Agentforce 資料庫。
如果您的組織支援多個贈款計畫,請針對每個計畫重複此工作。請參閱範例以取得設定工作人員的詳細資料。
- 進入「設定」,在「快速尋找」方塊中輸入 Agentforce 資料庫,然後選取「Agentforce 資料庫」。
- 按一下「新增資料」。您可以上載本機檔案或使用自訂 retriever。
- 選取資料空間並命名資料庫。
-
上載您的 PDF 檔案,然後按一下「儲存」。
重要 為獲得最佳結果,請上載具有清楚結構化內容的 PDF。避免複雜且格式密集的政府文件,例如「資金機會通知」(NOFO),因為其長度和格式化而使工作人員難以精確處理。直接處理常見贈款尋求者問題的常見問題樣式文件是理想的選擇。
-
等待資料庫達到「準備就緒」狀態。
上載檔案後,Salesforce 會自動將檔案編製索引,並建立基本的 Data Cloud 組態。此流程需要約 15–20 分鐘。若要檢查進度,請移至 App Launcher | Data Cloud | 搜尋索引,然後等候搜尋索引建立,資料庫顯示為「就緒」。
重要 在文件庫顯示「就緒」狀態之前,請勿將文件庫與工作人員連線。在完成索引之前使用文件庫會產生不完整或遺漏的結果。 -
標記文件庫的資料模型物件以供外部使用者存取。
當 Salesforce 索引文件庫時,它會在 Data Cloud 中建立三個資料模型物件 (DMO)。您必須標記這些 DMO,才能讓外部「社群」使用者存取查閱器。Salesforce 的預設「所有資料存取」規則集原則會自動涵蓋內部平台使用者,且不需要此步驟。
- 進入 App Launcher,開啟 Data Cloud,然後按一下「資料模型」。
-
找到為文件庫建立的三個 DMO。其名稱遵循這些模式,其中 LibraryName 是您文件庫 API 名稱的前 15 個字元。
ADL_LibraryNameADL_LibraryName chunkADL_LibraryName index
- 針對每個 DMO,按一下「物件標籤」開啟其詳細資料頁面,然後按一下「管理標記」,然後按一下「附加標記」。
-
在搜尋方塊中,搜尋並新增下列標記。
ExternalData.Visibility.PortalExternalData.Visibility.Public
- 選取「將這些標記新增至 [文件庫名稱]」,然後按一下「儲存」。
- 在「DMO 詳細資料」頁面上,按一下「完成」。
- 針對每個剩餘的 DMO 重複子步驟 (c) 到 (f)。
-
取得文件庫取得者的 API 名稱。
- 進入「設定」,在「快速尋找」方塊中輸入 Agentforce 資料庫,然後選取「Agentforce 資料庫」。
- 選取您的資料庫。
- 在「狀態」區段中,按一下「Retriever」連結。
-
在「取得者詳細資料」下,複製「API 名稱」。
retriever API 名稱遵循模式
File_ADL_LibraryName_UniqueID,例如File_ADL_GrantDocuments_1Cx_l2D32f7b02d。
-
請更新工作人員以使用文件庫 retriever。
- 進入 App Launcher,在搜尋方塊中輸入 工作人員,然後選取「Agentforce Studio」,並開啟「申請者和贈款者支援工作人員」。
- 如果工作人員已啟用,請按一下「停用」。
- 從畫布檢視切換至指令檔檢視。
-
在「Grantseeker 協助」子代理程式 (1) 中,找到「AnswersQuestionsFromDocument」(2) 動作,並更新其指示以參照您在上一個步驟中複製的 retriever API 名稱 (3)。
- 按一下「儲存」,然後從「指令檔」檢視切換至「畫布」檢視。
- 在「探索器」窗格的「資料」下,選取「資料庫」。
- 搜尋並選取您的資料庫。
- 按一下「儲存」,然後按一下「認可版本」。
-
測試文件庫。
- 在「工作人員產生器」中,按一下「預覽」。
- 詢問可從您上載文件中回答的問題,並確認工作人員傳回相關回應。
範例 範例:設定多個贈款計畫的工作人員指令檔
如果您的組織支援多個贈款計畫,請更新「指令檔」檢視中的「贈款尋求者協助」子代理程式指示,以根據使用者的問題將工作人員導向正確的取得者。下列範例顯示針對兩個贈款計畫設定的指示。以您自己的識別碼取代查閱者識別碼並授與名稱。
subagent GrantseekerAssistance:
label: "Grantseeker Assistance"
description: "Answer grantseeker questions about grant programs, eligibility, application procedures, deadlines, and funding guidelines using document search and knowledge base."
reasoning:
instructions: ->
| Your organization supports TWO grant programs. Use only the retriever for the grant the user is asking about:
- Digital Equity Competitive Grant: File_Digital_Equity_Competitive_Grant_1Cx_ZZ3deff5335
- Public Wireless Supply Chain Innovation Fund Grant: File_Public_Wireless_Supply_Chain_Innova_1Cx_ZZ393667fb8
1. Identify which grant the user is asking about before taking any action.
- If the grant was named earlier in the conversation, continue using it for follow-up questions unless the user clearly switches.
- If the grant hasn't been identified, ask the user which grant their question is about. Do not call any action until a grant is identified.
- Recognize common shorthand (for example, "digital equity" for the Digital Equity Competitive Grant; "public wireless," "supply chain," or "wireless innovation" for the Public Wireless Supply Chain Innovation Fund Grant). When in doubt, ask.
- If the user names an unsupported grant, do not search. Tell them the two supported programs and direct them to the grants administrator for any other program.
- If the user asks a question that compares or spans both grants, decline politely and direct them to the grants administrator.
2. Use the Answer Questions from Document action to search the identified grant's document retriever. Do not include the grant name in the search query — the retriever is already scoped to that grant.
3. If the document search doesn't provide a sufficient answer, use the Answer Questions with Knowledge action to search Salesforce Knowledge articles.
4. If neither action provides relevant information, clearly state that you couldn't find an answer and direct the user to contact the grants administrator or support team for further assistance.
- Always provide clear, accurate, and concise answers based only on information retrieved from documents or knowledge articles.
- Never fabricate facts, instructions, dates, requirements, or data values that aren't explicitly stated in your provided resources.
- Never use content from one grant's retriever in an answer about the other grant.
- When relevant, mention eligibility conditions, required documents, and next steps.
- Confirm with the user whether the answer resolved their question.若要授與工作人員除了文件之外的 Knowledge 文章存取權,請參閱 為申請者和贈款者支援工作人員建立 Knowledge 文章庫。否則,請繼續 啟用「贈款尋求者工作人員」。
此文章是否解決您的問題?
請讓我們知道,以便我們改進!
