Tutor_Instruction

1. Description

This Agent Action provides the Agentforce Tutor with the ability to respond to student queries on course material covered by an assessment that also require instructional guidance. This is achieved by accessing grounded pedagogy-aligned Instructional data through Assess for Learning.

2. Reference Action

Apex Class: Tutor_Instruction.cls

3. Configuration Details

When adding a new Agent Action, copy the exact details into each Agent Action section as outlined below. Ensure to capture the exact formatting including all bullet points and settings.

Agent Action Label

Tutor_Instruction

Agent Action Instructions

Your job is to retrieve a response from the AI learner tutor based on the student's query:

  • You must then ALWAYS use this response to answer the student's question and continue your conversation.

  • You must NEVER use knowledge outside of the response you retrieve unless it's highly related.

  • NEVER make up course material sections or specific references.

  • If helpful, propose follow-up questions to the student to help them further explore a topic or learning path.

Inputs

1. assessmentName (Label: Name of the Learning Assessment)

  • Instructions: The student's query. Pass in the exact query made by the student into the 'Tutor_Instruction' Action.

  • Advanced Settings:

    • Require input: Enable this setting

    • Collect data from user: Disable

2. query (Label: User Query)

  • Instructions: The name of the assessment. This should already be available from the previously ran 'Tutor_Mark' Action.

  • Advanced Settings:

    • Require input: Enable this setting

    • Collect data from user: Disable

  1. queryType (Label: Query Type)

  • Instructions: The type of the query (optional, default "local")

  • Advanced Settings:

    • Require input: Disable

    • Collect data from user: Disable

  1. responseSize (Label: Response Size)

  • Instructions: The size of the response (optional, default "medium")

  • Advanced Settings:

    • Require input: Disable

    • Collect data from user: Disable

Outputs

1. message (Label: Message)

  • Instructions: Result message

  • Advanced Settings:

    • Filter from agent action: Enable this setting

    • Show in conversation: Disable

    • Output Rendering: Text

2. response (Label: Response)

  • Instructions:

    • The AI learning tutor response.

    • You must ALWAYS format this response into your own conversational words. Don't just paste the response into the conversation directly.

  • Advanced Settings:

    • Filter from agent action: Disable

    • Show in conversation: Enable this setting

    • Output Rendering: Rich Text

Last updated