An IA 'cookbook', or maybe some 'recipes', to start with?...

Omar.A.118
Omar.A.118 Messages 48 image
11 Dec modifié dans Social Groups

Trying something out. Ideally, we'll get some nice IA 'recipes', but just to start something (to kick off the conversation)…

'Recipes' range from simple to complex, and (in case you prefer), I'm also including pseudocode format -

A. Inactivity Alert (No Login in 7 Days)


Pseudocode:if user.last_login > 7 days ago
THEN send_email(user)D2L UI Step-by-Step:

  1. Go to your course, then Course Admin > Intelligent Agents.
  2. Click New Agent.
  3. Name: “Inactive for 7 Days”
  4. Description: “Notifies students who haven’t logged in for 7 days.”
  5. Agent is Enabled: Yes
  6. Criteria > Role in Classlist: Select “Student” (or as appropriate)
  7. Criteria > Take Action When: User has not logged in to the course for at least 7 days.
    • Click Create and Attach under Release Conditions.
    • Choose Classlist > No login activity for n days.
    • Set n = 7.
  8. Actions > Send an Email:
    • To: {InitiatingUser}
    • Subject: “We Miss You in {OrgUnitName}!”
    • Body: “Hi {FirstName}, we noticed you haven’t logged in for a week. Please check in to stay on track!”
  9. Scheduling: Set to run daily.
  10. Save and enable.

B. Assignment Reminder (Assignment Not Submitted)


Pseudocode:IF NOT user.has_submitted('Assignment 1')
THEN send_email(user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “Assignment 1 Not Submitted”
  3. Description: “Reminds students who haven’t submitted Assignment 1.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
  • Create and Attach Release Condition:
  • Assignments > No submission to folder
  • Select “Assignment 1”
  1. Actions > Send an Email:
  • To: {InitiatingUser}
  • Subject: “Assignment 1 is Due Soon!”
  • Body: “Hi {FirstName}, don’t forget to submit Assignment 1 before the deadline.”
  1. Scheduling: Daily (until due date)
  2. Save and enable.

C. Low Quiz Score Alert


Pseudocode:IF user.quiz_score('Quiz 2') < 70%
THEN send_email(user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “Low Score on Quiz 2”
  3. Description: “Notifies students who scored below 70% on Quiz 2.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
  • Create and Attach Release Condition:
  • Quizzes > Score on a quiz
  • Select “Quiz 2”, set “<” and “70”
  1. Actions > Send an Email:
  • To: {InitiatingUser}
  • Subject: “Let’s Improve Your Quiz 2 Score!”
  • Body: “Hi {FirstName}, your score on Quiz 2 was below 70%. Please review the material or reach out for help.”
  1. Scheduling: Daily
  2. Save and enable.

D. Welcome New Enrollees


Pseudocode:IF user.enrollment_date == today
THEN send_email(user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “Welcome New Students”
  3. Description: “Welcomes students who enrolled in the last day.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
  • Create and Attach Release Condition:
  • Classlist > Date of enrollment in course
  • Set “within last 1 day”
  1. Actions > Send an Email:
  • To: {InitiatingUser}
  • Subject: “Welcome to {OrgUnitName}!”
  • Body: “Hi {FirstName}, welcome to the course! Let us know if you have any questions.”
  1. Scheduling: Daily
  2. Save and enable.

E. At-Risk Student Alert (Advanced: Multiple Conditions)


Pseudocode:IF user.last_login > 7 days ago AND user.assignments_submitted == 0
THEN send_email(instructor, user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “At-Risk Student Alert”
  3. Description: “Alerts instructor if a student hasn’t logged in for 7 days AND hasn’t submitted any assignments.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
  • Create and Attach BOTH Release Conditions:
  • Classlist > No login activity for n days (n = 7)
  • Assignments > No submission to any assignment folder
  • Set “All conditions must be met.”
  1. Actions > Send an Email:
  • To: Instructor’s email or {Instructors}
  • Subject: “At-Risk Student: {FirstName} {LastName}”
  • Body: “{FirstName} {LastName} has not logged in for 7 days and has not submitted any assignments.”
  1. Scheduling: Daily
  2. Save and enable.

F. Celebrate Those High Achievers


Pseudocode:IF ALL user.quiz_scores > 90%
THEN send_email(user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “High Achiever Recognition”
  3. Description: “Congratulates students who scored above 90% on all quizzes.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
  7. Create and Attach Release Conditions for each quiz:
    • Quizzes > Score on a quiz (for each quiz, set “>” and “90”)
    • Set “All conditions must be met.”
  8. Actions > Send an Email:
    • To: {InitiatingUser}
    • Subject: “Congratulations on Your Achievement!”
    • Body: “Hi {FirstName}, you scored above 90% on all quizzes. Keep up the great work!”
  9. Scheduling: Weekly
  10. Save and enable.

G. Advanced Example: Personalized Feedback Based on Multiple Criteria


Pseudocode:IF user.last_login > 10 days ago AND user.quiz_score('Quiz 1') < 60%
THEN send_email(user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “Personalized Feedback for At-Risk Students”
  3. Description: “Sends feedback to students who haven’t logged in for 10 days and scored below 60% on Quiz 1.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
    • Classlist > No login activity for n days (n = 10)
    • Quizzes > Score on a quiz (Quiz 1, “<” 60)
    • Set “All conditions must be met.”
  7. Actions > Send an Email:
    • To: {InitiatingUser}
    • Subject: “Let’s Get Back on Track!”
    • Body: “Hi {FirstName}, we noticed you haven’t logged in recently and your Quiz 1 score was below 60%. Please reach out if you need help.”
  8. Scheduling: Daily
  9. Save and enable.

H. Advanced Example: Notify Instructor When Student Misses Multiple Assignments


Pseudocode:IF user.missed_assignments >= 2
THEN send_email(instructor, user)D2L UI Step-by-Step:

  1. Course Admin > Intelligent Agents > New Agent.
  2. Name: “Missed Multiple Assignments Alert”
  3. Description: “Notifies instructor if a student has missed 2 or more assignments.”
  4. Agent is Enabled: Yes
  5. Criteria > Role in Classlist: Student
  6. Criteria > Take Action When:
    • Attach multiple Assignments > No submission to folder conditions (one for each assignment).
    • Set “Any condition must be met.”
    • Note: D2L does not natively count missed assignments, so you may need to run separate agents for each threshold or use Data Hub for more advanced logic.
  7. Actions > Send an Email:
    • To: {Instructors}
    • Subject: “Student Missed Multiple Assignments”
    • Body: “{FirstName} {LastName} has missed multiple assignments. Please review their progress.”
  8. Scheduling: Weekly
  9. Save and enable.

And some tips for more Advanced Logic…

  • Use “All conditions must be met” for AND logic; “Any condition must be met” for OR logic.
  • For more complex scenarios (e.g., counting missed assignments), consider supplementing with Data Hub exports or custom scripts.

    P.S. - Data Hub's really more in Admins' wheelhouse, but if you're an instructor, you can chat with your Admin Team to see what can be arranged
Mots clés: