
|
Important: Performing any of the actions listed below requires the Intelligent Agents > Manage Agents permission. Contact your administrator if this permission is not assigned to your role. |
Add a link to the Intelligent Agents tool to the navbar
You can add a link to the Intelligent Agents tool to your course’s navbar.
To add the link to the navbar
- From the Admin Tools menu, select Navigation and Themes.
- Click the link for the navbar, in which you want to add a link to the Intelligent Agents tool.
- On the Edit Navbar page, in the Links area, click Add Links.
- In the Add Links dialog box, select the Intelligent Agents check box.
- Click Add, and then Save and Close.
Create a new agent
Create an agent that will perform an action such as sending an email based upon the criteria you set.
To create a new agent
- Navigate to
Course Admin > Intelligent Agents.
- Click New Agent.

- Enter an Agent Name.
- (Optional) Add a Description of the agent.
- (Optional) Select a Category. To create a new category, click Add Category, add a Name, and then click Save.
- Navigate to Status and select Agent is enabled to have the agent enabled upon creation.

Schedule the criteria check frequency of your intelligent agent
Once you have set the general descriptions and status of your new intelligent agent, you can choose how often the agent will run and evaluate the criteria you define.

|
Note: Intelligent Agents can be scheduled to run before the course start date. Scheduled intelligent agents stop running and are automatically disabled if the course is inactive, past its end date, or deleted. You can still set up a practice run or a manual run of an intelligent agent at any time in a course with a passed end date. |
To set the frequency of your intelligent agent
- From the New Agent page, click to expand Scheduling.
- Select a Frequency and enter in the criteria based on that frequency.

Define the target roles for your intelligent agent
You must also set the criteria your intelligent agent will review when it runs. This includes which user roles the agent will focus on.
To define the role your intelligent agent will focus on
- From the New Agent page, expand Criteria.
- Under Role in Classlist do one of the following:
- To have the agent to be applicable to all roles in the Classlist, select All users visible in the Classlist.
- To have the agent be applicable to select roles, select Users with specific roles and select the desired roles.

Define the activity that prompts your intelligent agent to take action
You must choose which activity type will cause your intelligent agent to run or take action.
To define the activity that prompts action
- From the New Agent page, expand Criteria.
- Under Take Action on Activity, select one or more of the following options:
- Login Activity runs the agent if the user either has or has not logged into the platform during the last specified number of days.
- Course Activity runs the agent if the user either has or has not accessed the course in the last specified number of days.
 | Note: Neither option can be selected if the agent's Frequency is set to Hourly or One-Time Run. |

Attach release conditions to your intelligent agent
You can also select and attach release conditions to your intelligent agent. These will prompt your agent to take action once the specific release conditions are met.

|
Note: For more information about creating release conditions, refer to Set release conditions. |
To attach release conditions to your agent
- From the New Agent page, expand Criteria.
- Click Release Conditions.
- To create a new release condition, click Create and do the following:
- Select a Condition Type.
- Select your Condition Details based on that type.
- Click Create.

- To select an existing release condition, click Browse and do the following:
- Under View Conditions for, select a tool to filter your conditions.
- Select the desired condition and click Attach. Multiple conditions can be selected.

Enroll and unenroll users with an intelligent agent
You can define what actions you want your intelligent agent to take and how often, once your defined criteria has been met. Actions can include enrolling changing a user's role, enrolling a user into a course, or unenrolling a user in a course.

|
Important: You must have the Intelligent Agents > User Agent Enrollment Actions and Intelligent Agents > Perform Unenroll role permissions to access the Change User Enrollments option. If you do not see this option, contact your Administrator for assistance.
|
To set type of actions
- From the New Agent page, expand the Actions section.
- Under Repetition, select one of the following:
- Under Change User Enrollments, optionally select Change user enrollments when the criteria are satisfied.
- Under Enrollment Action, select one of the following:
- Select Change current role and select a New Role.
- Select Unenroll from current course.
- Select Enroll user in a course and click Select an Org Unit to choose a course offering. Click Update.

Send an email with your intelligent agent
You can also choose to have your agent send an email to a specified address when the action is taken.
To have your agent send an email when criteria is satisfied
- From the New Agent page, expand Actions.
- Under Send an Email, select the Send an email when the criteria are satisfied check box and enter your email details and applicable attachments.

- To send the agent email to specific recipients, click What special email addresses can I use?, then copy the appropriate replacement string and paste it into the To, Cc, or Bcc fields as needed. Special email addresses include, for example, users, auditors, and parents or guardians.

- Click Save and Close.
Replace strings available for intelligent agent emails
The following table lists the replace strings that can be used in an email sent using an intelligent agent. It also specifies which replace strings are translated in the email body content, based on your organization or course offering locale settings.

|
Important: If your organization is set to a default system locale, but the course that your intelligent agent is sent from is set to Override locale preferences to a different language, the replacement string text will use the course offering locale settings. Also, not all replace strings are localized or translated based on your locale settings. For more information about setting your default locale, refer to Set a default locale.
|
| Replace String |
Description |
For Use In |
Translated using organization or course offering locale settings?
|
| {InitiatingUser} |
The user who performs the action that meets the agent’s criteria |
Email address field |
No |
| {InitiatingUserAuditors} |
The auditors for the user who performs the action that meets the agent’s criteria |
Email address field |
No |
| {InitiatingUserParents} |
The parents of the user who performs the actions necessary to satisfy the agent's criteria. |
Email address field |
No |
| {OrgName} |
The name of the organization |
Email body |
No |
| {OrgUnitCode} |
The code for the Org Unit |
Email body |
No |
| {OrgUnitName} |
The name of the Org Unit |
Email body |
No |
| {OrgUnitStartDate} |
The start date specified for the Org Unit |
Email body |
Yes |
| {OrgUnitEndDate} |
The end date specified for the Org Unit |
Email body |
Yes |
| {OrgUnitId} |
The org unit ID required to make quicklinks works |
Email subject line and email body |
No |
| {InitiatingUserFirstName} |
The first name of the initiating user |
Email body |
No |
| {InitiatingUserLastName} |
The last name of the initiating user |
Email body |
No |
| {InitiatingUserUserName} |
The username of the initiating user |
Email body |
No |
| {InitiatingUserOrgDefinedId} |
The Org Defined ID of the initiating user |
Email body |
No |
| {LastCourseAccessDate} |
The date the initiating user last accessed the course |
Email subject line and email body |
Yes |
| {LastLoginDate} |
The date the initiating user last logged in |
Email subject line and email body |
Yes |
| {LoginPath} |
The address of the login path for the site |
Email body |
No |
Edit an agent
You can make changes to existing agents.
To edit an agent
- Navigate to Course Admin > Intelligent Agents.
- Select a filter option from View. The options are:
- All Agents
- By Category (which sorts the agents by their assigned category)
- Enabled (only those agents that have been enabled)
- Disabled (only those agents who are not currently enabled).

- From the context menu of the agent you want to edit, click Edit Agent.

- To edit multiple agents at once, select two or more agents and click Bulk Edit.
 | Note: You can only change certain attributes (title, category, active or inactive state) using Bulk Edit. |

- Make your changes.
- Click Save and Close.
Restore an agent
You can restore deleted agents. All restored agents maintain existing properties and history.
To restore a deleted agent
- Navigate to Course Admin > Intelligent Agents.
- Click More Actions and select Restore.
- Click Restore to restore a deleted agent.
Reorder agent categories
You can reorder the list of categories used by Intelligent agents.
To reorder the list of agent categories
- Navigate to Course Admin > Intelligent Agents.
- Click Edit Categories.

- Click the Sort Order of the category. Enter the number value, and then press Enter or click away from the field.
- Click Close.
Enable or disable your intelligent agent
You can enable and disable agents individually or in bulk easily on the Agent List page. Disabled agents display an Agent is not enabled icon (represented by a red circle with a line through it) beside their name.
To enable or disable your agent
- Navigate to Course Admin > Intelligent Agents.
- Do one of the following:
- To enable an agent, select the agent you want to enable and click Enable.
- To disable an agent, select the agent you want to disable and click Disable.

Update Intelligent Agents settings
You can adjust the settings in the Intelligent Agent tool to set custom values for the name that emails come from and the reply-to address that responses are delivered to.
To update Intelligent Agent settings
- Navigate to Course Admin > Intelligent Agents.
- Click Settings.
- Select one of the following:
- Select Use the system defaults.
- Select set custom values for this course and fill in the available fields.
- Click Save.