Create Workday pre-hires from Ashby hires and notify HR
When a candidate is hired in Ashby, their Workday pre-hire is created with name, email, job and start date, and People Ops gets a Slack message saying it's ready or what went wrong.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · Recruiting
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr - 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 create-workday-pre-hires-from-ashby-hires-and-notify-hr - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-workday-pre-hires-from-ashby-hires-and-notify-hr
zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr/
- 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/ashby.tsThe
ashbyaccount it uses - connections/slack.tsThe
slackaccount it uses - connections/workday.tsThe
workdayaccount it uses - triggers/candidate-hired.tsWhat starts it:
ashbycandidate_hired - 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: a candidate is marked hired in Ashby (
ashby,candidate_hired, no settings). - Missing data: if the hire has no email or only one name, Slack alerts the HR channel to add them by hand and the run stops.
- Workday creates a pre-hire with first name, last name, email and country. The comment on the pre-hire records the job title, start date, hiring manager and Ashby application ID.
- Slack posts to the HR channel: the pre-hire is ready for the Hire Employee step, or creating it failed and why. It posts as the Zapier bot, with mentions and link previews turned off.
The Zap creates the pre-hire only. Hiring them into a position (Workday's Hire Employee business process) stays with People Ops, because it needs a position, start date and compensation decided in Workday.
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_HR_CHANNEL_ID |
The Slack channel where People Ops tracks new hires, by its ID (C…) |
REPLACE_DEFAULT_COUNTRY |
The country for the pre-hire's legal name, as a value from Workday's Country field |
Also review the defaults with them:
HIRING_MANAGER_ROLE(workflow.ts): the Ashby hiring team role treated as the hiring manager. Defaults to"Hiring Manager". Does their Ashby use that role name?
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-workday-pre-hires-from-ashby-hires-and-notify-hr, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-workday-pre-hires-from-ashby-hires-and-notify-hr, 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 Create Workday pre-hires from Ashby hires and notify HR (zapier.sh/create-workday-pre-hires-from-ashby-hires-and-notify-hr): 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
ashby(can see hires) to the user's Ashby connection,workday(can create pre-hires) to their Workday connection, andslack(the workspace with the HR channel) to their Slack connection. Every app in this zap needs a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/candidate-hired.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, and fix any key in
workflow.tsthat doesn't match.
Test it
This creates a real Workday record, so test in a Workday sandbox tenant if the user has one, and confirm with them before running. Run this sample once as a draft test:
{
"application": {
"id": "test-application-1",
"candidate": {
"name": "Test Prehire",
"primaryEmailAddress": { "value": "test.prehire@example.com" }
},
"job": { "title": "Test Role" },
"hiringTeam": [
{ "firstName": "Hannah", "lastName": "Manager", "role": "Hiring Manager" }
]
},
"offer": { "latestVersion": { "startDate": "2026-01-05" } }
}
Check that a pre-hire for Test Prehire exists in Workday with the comment filled in, and that one message landed in the HR channel. If run-status tools aren't available, check Workday and Slack directly. Ask the user to remove the test pre-hire and delete the test message; the agent doesn't delete test data. Then publish, and tell the user to confirm the trigger is active before relying on it.
Notes
- Ashby sends a full name, and the Zap splits it at the last space: everything before is the first name. Check names with several parts in Workday.
- Every pre-hire gets
DEFAULT_COUNTRY. For hires in several countries, map Ashby's job location to Workday countries inworkflow.ts. - A rehire who already exists in Workday gets a new pre-hire. Workday's duplicate check usually flags it in the Hire Employee step.
- To customize: add Workday's Hire Employee action once their positions and compensation can come from Ashby offer fields, or DM the hiring manager instead of posting to a channel.
- Never commit a real channel ID or email address.