---
schema_version: "1"
id: 1678b25912fc81e6fdf8f7e385b21ce4f05265beb5c9bc6e77b7b56da22466f3
title: Set Up the Course Search Agent
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sfdo/264-0-0/ec_setup_course_search_topics.md
canonical_url: https://help.salesforce.com/s/articleView?id=sfdo.ec_setup_course_search_topics.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ab65d97bdd4ba9fc874a60c587a19a065822c67293cfc8d973d6e8307696a06a
description: 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.
products:
  - Education
release: "264"
---
# Set Up the Course Search Agent

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Education Cloud and the Agentforce for Education Cloud add-on license</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d110044e71">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d110044e71 ">To set up Course Search FAQ topics in Agentforce:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d110044e71 ">
              <p>Education Cloud Full Access</p>
              <p>AND</p>
              <p>Einstein for Education Cloud Access</p>
              <p>AND</p>
              <p>Agentforce Default Admin</p>
              <p>AND</p>
              <p>Data Cloud Architect</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Prompt Template Manager</p>
            </td>

          </tr>
        </tbody>
      </table>

## Configure the Course Search Agent

1. [Set up Data 360 for Education Cloud](https://help.salesforce.com/s/articleView?id=sfdo.ec_set_up_data_cloud_for_education_cloud.htm&release=264.0.0&type=5 "Get your Education Cloud org ready to use Data 360.").
2. [Set up Agentforce for Education Cloud](https://help.salesforce.com/s/articleView?id=sfdo.ec_set_up_agentforce_for_education_cloud.htm&release=264.0.0&type=5 "Enable Agentforce in Education Cloud to create AI-powered virtual agents to help students, parents, and staff get the information they need, when they need it. Einstein Generative AI for Education Cloud powers the virtual agents that can answer questions about admissions, enrollment, financial aid, and other relevant areas.").
3. Turn on the Course Search Agent.
    1. From Setup, find and select **Set Up Education Cloud**.
    2. Under Set Up Agentforce for Education Cloud, turn on **Course Search Agent**.
4. [Turn on Advanced Academic Operations](https://help.salesforce.com/s/articleView?id=sfdo.ec_advanced_academic_operations.htm&release=264.0.0&type=5 "Use Advanced Academic Operations to extend Education Cloud with student information system (SIS) capabilities that streamline and automate academic processes.").
5. [Create a hybrid search index for the Learning Course object](https://help.salesforce.com/s/articleView?id=data.c360_a_search_index_easy_setup_search_index.htm&type=5&language=en_US).
6. [Create a custom data retriever](https://help.salesforce.com/s/articleView?id=data.c360_a_ai_retriever_create.htm&type=5&language=en_US) for the Learning Course data model object.
7. Use the data retriever to configure the Get Learning Courses prompt template.
    1. In Setup, find and select **Prompt Builder**.
    2. Under Prompt Templates, select **Get Learning Courses**.
    3. Click **Save As**, and then click **Save as a New Version**.
    4. Scroll to the end of the prompt, find \*\*Courses\*\*, and delete the placeholder text for the retriever.
    5. Click **Insert Resource**, select **Einstein Search**, and then select the retriever that you created.
    6. To view the retriever's template settings, click the retriever inserted in the prompt.
    7. In Search Text, enter Input:Query.
    8. Select all of the output fields.
    9. Enter the number of results.
    10. Save and activate the prompt template.

## Create the Course Search Agent for Experience Cloud Users

1. [Create an Agent from an Agentforce Service Agent template](https://help.salesforce.com/s/articleView?id=ai.service_agent_setup.htm&type=5&language=en_US).
    
    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?
2. [Remove any unnecessary subagents](https://help.salesforce.com/s/articleView?id=ai.agent_topics_remove.htm&type=5&language=en_US).
3. Add the agent to your Experience Cloud site.
    
    See [Connect a Service Agent to Messaging](https://help.salesforce.com/s/articleView?id=ai.service_agent_messaging.htm&language=en_US&type=5).
4. 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.
    1. [Add markup to the page `<head>`](https://help.salesforce.com/s/articleView?id=experience.community_builder_page_head.htm&type=5&language=en_US) by entering this script.
        
        ```
        
        <script type='text/javascript'>
           window.addEventListener("onEmbeddedMessagingReady", () => {
                // Embedded Messaging app ready
                embeddedservice_bootstrap.settings.disableStreamingResponses = true;
            });
        </script>
        ```
    2. In Security & Privacy, [select a security level](https://help.salesforce.com/s/articleView?id=experience.networks_security_csp_scriptlevel.htm&type=5&language=en_US).
        
        For Security Level, select **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts**.
    3. Add your Experience Cloud site as a trusted site for scripts. See [Where to Allow Hosts of Script Resources](https://help.salesforce.com/s/articleView?id=experience.networks_security_csp_allow.htm&type=5&language=en_US).
        
        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.
    4. Publish your site.
5. Make your agent available to unauthenticated guest users.
    
    See [Set Up the Experience Site for Self-Service Scheduling Guest Users](https://help.salesforce.com/s/articleView?id=service.mfs_appointment_assistant_sss_user_profile.htm&type=5&language=en_US).

## Create the Course Search Agent for Advisors and Admins

1. Assign these permission sets to the advisor user. See [Assign Permission Sets to Users](https://help.salesforce.com/s/articleView?id=platform.perm_sets_manage_assignments.htm&type=5&language=en_US).
    
    - Education Cloud Full Access
    - Data Cloud User
    - Einstein for Education Cloud Access
    - Prompt Template User
2. [Create an Agent from an Agentforce Employee Agent template](https://help.salesforce.com/s/articleView?id=ai.agent_employee_agent_setup.htm&type=5&language=en_US).
    
    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?
3. [Remove any unnecessary subagents](https://help.salesforce.com/s/articleView?id=ai.agent_topics_remove.htm&type=5&language=en_US).
4. 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](https://help.salesforce.com/s/articleView?id=ai.agent_manage_aea_access.htm&language=en_US&type=5).
    
    Admins can use an Employee agent only with an explicit access grant.