Assign TalentLMS compliance training on HiBob department change
When someone moves to a new department in HiBob, they're enrolled in that department's required TalentLMS compliance courses, skipping any they already have.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/assign-talentlms-compliance-training-on-hibob-department-change/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · Learning development
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/assign-talentlms-compliance-training-on-hibob-department-change
Set it up with the CLI
- Add it. Copies the folder into
zaps/assign-talentlms-compliance-training-on-hibob-department-change/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/assign-talentlms-compliance-training-on-hibob-department-change - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy assign-talentlms-compliance-training-on-hibob-department-change - Check it. Its recent runs, with status and errors.
npx zap-pack logs assign-talentlms-compliance-training-on-hibob-department-change
zaps/assign-talentlms-compliance-training-on-hibob-department-change/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/hibob.tsThe
hibobaccount it uses - connections/talentlms.tsThe
talentlmsaccount it uses - triggers/employee-updated.tsWhat starts it:
hibobemployee_updated - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: an employee is updated in HiBob (
hibob,employee_updated, no settings). - Department: the run looks up the employee's current department in
COMPLIANCE_COURSES_BY_DEPARTMENT. A department that isn't listed, or a record with no email, ends the run without changes. - TalentLMS finds the user by email. If they have no TalentLMS account, the run stops.
- TalentLMS enrolls them in each of the department's courses they aren't already in. One failed enrollment doesn't stop the others; if all of them fail, the run fails so it shows up in Zap history.
HiBob fires this trigger on any profile edit, so most runs end at step 2 or enroll nothing new. That's expected.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_DEPARTMENT_NAME |
A HiBob department with its own compliance training, spelled exactly as in HiBob |
REPLACE_COMPLIANCE_COURSE_ID |
The TalentLMS courses that department requires, by ID |
Repeat the department entry in config.ts for every department that has required training.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/assign-talentlms-compliance-training-on-hibob-department-change, replace each REPLACE_… value as this file says, then run npx zap-pack deploy assign-talentlms-compliance-training-on-hibob-department-change, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. Either way, name the workflow Assign TalentLMS compliance training on HiBob department change (zapier.sh/assign-talentlms-compliance-training-on-hibob-department-change): zap-pack takes that name from this file's title, so leave the title as it is, and with Zapier MCP give the workflow that name when you create it. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
hibob(can see employee updates) to the user's HiBob connection andtalentlms(an admin who can enroll users) to their TalentLMS connection. Every app in this zap needs a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/employee-updated.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run. Fix
InputSchemaif HiBob sends email or department under other keys, and check that TalentLMS Find User returns the user'scourses; if it doesn't, already-enrolled courses get a harmless failed enrollment instead of being skipped.
Test it
Run this sample once as a draft test, with email set to a TalentLMS test user and work.department set to a department in config.ts that points at a test course:
{
"id": "3332883884017713238",
"email": "test.mover@example.com",
"work": { "department": "Finance" }
}
Check that the test user is now enrolled in the department's courses, then run the same sample again and check that nothing new is enrolled. If run-status tools aren't available, check TalentLMS directly. Ask the user to remove the test enrollments; the agent doesn't delete test data. Then publish, and tell the user to confirm the trigger is active before relying on it.
Notes
- The Zap adds training for the new department. It doesn't remove courses from the old one, since completed compliance records usually need to stay.
- Department names must match HiBob exactly, including capitalization.
- To customize: post a Slack DM to the employee or their manager when new courses are assigned, or add a due date reminder.
- Never commit a real email address.