Configure the Course Search Agent to answer questions and support both students and advisors. Create an Agentforce Service agent for users on your Experience Cloud site. Create an Agentforce Employee agent for Standard Users of Education Cloud, such as advisors.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions with Education Cloud and the Agentforce for Education Cloud add-on license |
| User Permissions Needed | |
|---|---|
| To set up Course Search FAQ topics in Agentforce: |
Education Cloud Full Access AND Einstein for Education Cloud Access AND Agentforce Default Admin AND Data Cloud Architect AND Prompt Template Manager |
Configure the Course Search Agent
- Set up Data 360 for Education Cloud.
- Set up Agentforce for Education Cloud.
-
Turn on the Course Search Agent.
- From Setup, find and select Set Up Education Cloud.
- Under Set Up Agentforce for Education Cloud, turn on Course Search Agent.
- Turn on Advanced Academic Operations.
- Create a hybrid search index for the Learning Course object.
- Create a custom data retriever for the Learning Course data model object.
-
Use the data retriever to configure the Get Learning Courses prompt template.
- In Setup, find and select Prompt Builder.
- Under Prompt Templates, select Get Learning Courses.
- Click Save As, and then click Save as a New Version.
- Scroll to the end of the prompt, find **Courses**, and delete the placeholder text for the retriever.
- Click Insert Resource, select Einstein Search, and then select the retriever that you created.
- To view the retriever's template settings, click the retriever inserted in the prompt.
- In Search Text, enter Input:Query.
- Select all of the output fields.
- Enter the number of results.
- Save and activate the prompt template.
Create the Course Search Agent for Experience Cloud Users
-
Create an Agent from an Agentforce Service Agent
template.
As part of the setup process, customize your agent settings and add the Course Search FAQ subagent.
For example, in Settings:
- For Agent Details, enter a description: Recommend relevant courses based on the queries raised by students or users.
- For System, enter agent-level instructions: As an AI assistant for academic advisors, your role is to recommend courses based on provided info. If no relevant match is found, you won't fabricate suggestions or use external knowledge. You'll state there's insufficient info.
- For System, enter a welcome message: Hi, I'm your personal course search agent! I can provide you with information on courses and answer your questions. I may make mistakes, so be sure to check my work. How can I help?
- Remove any unnecessary subagents.
- Add the agent to your Experience Cloud site.
-
The Course Search Agent shows users the JSON output from actions in addition to
course information. Customize your Experience Cloud site to improve the user experience
and control what the agent shows.
-
Add markup to the page
<head>by entering this script.<script type='text/javascript'> window.addEventListener("onEmbeddedMessagingReady", () => { // Embedded Messaging app ready embeddedservice_bootstrap.settings.disableStreamingResponses = true; }); </script> -
In Security & Privacy, select a security level.
For Security Level, select Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts.
-
Add your Experience Cloud site as a trusted site for scripts. See Where to Allow Hosts of Script
Resources.
To locate the URL of your site, from Setup, find and select Digital Experiences, and then click All Sites. Find the URL of your site in the All Sites list view.
- Publish your site.
-
Add markup to the page
- Make your agent available to unauthenticated guest users.
Create the Course Search Agent for Advisors and Admins
-
Assign these permission sets to the advisor user. See Assign Permission Sets to Users.
- Education Cloud Full Access
- Data Cloud User
- Einstein for Education Cloud Access
- Prompt Template User
-
Create an Agent from an Agentforce Employee Agent
template.
As part of the setup process, customize your agent settings and add the Course Search FAQ subagent.
For example, in Settings:
- For Agent Details, enter a description: Recommend relevant courses based on the queries raised by students or users.
- For System, enter agent-level instructions: As an AI assistant for academic advisors, your role is to recommend courses based on provided info. If no relevant match is found, you won't fabricate suggestions or use external knowledge. You'll state there's insufficient info.
- For System, enter a welcome message: Hi, I'm your personal course search agent! I can provide you with information on courses and answer your questions. I may make mistakes, so be sure to check my work. How can I help?
- Remove any unnecessary subagents.
-
Give both admins and advisors access to the Course Search Agent that you created by
using permission sets or profiles. See Manage Employee Agent Access.
Admins can use an Employee agent only with an explicit access grant.