HR
Beginner's guide to workflows: building a new starter onboarding flow
A step-by-step introduction to building a real workflow—using new starter onboarding to cover triggers, authoring agent steps, assigning skills, reaching out to stakeholders, and pausing for replies.
- workflows
- getting-started
- onboarding
Workflows let you automate the sequence of steps that your team runs the same way every time. Instead of an HR admin manually chasing a manager, booking a meeting, logging into Trelica, and creating documents—the workflow does it, pausing only when a human decision is actually needed.
This guide builds a complete new starter onboarding workflow from scratch. The same ideas apply to any repeatable process.
Why use a workflow at all?
Chat is great for one-off questions. Workflows are for repeatable, multi-step processes where:
- Several different people need to be contacted in sequence.
- You need to wait for replies before taking the next action.
- Actions span multiple systems (HRIS, calendar, provisioning tools, documents).
- You want an audit trail of what happened and when.
Without a workflow, onboarding typically means tabs open across five systems and an HR admin keeping everything in their head. With a workflow, the same outcome happens consistently—and you can see exactly where each run is at any time.
The example we'll build
When a new starter record is created, the workflow should:
- Contact the hiring manager to ask for first-day logistics and confirm the probation review date.
- Contact the IT lead to ask about equipment and system access requirements.
- Send a calendar invite for the 3-month probation review.
- Call a webhook to provision the new starter's accounts in Trelica.
- Generate the new starter welcome document and attach it to the ticket.
Step 1: Choose the right trigger
The workflow should fire as soon as a new starter record exists—not when someone remembers to kick it off manually.
The right trigger here is a webhook: your HRIS sends a request to Harriet when the new starter record is created, including the employee's name, email, start date, manager, and department.
If your HRIS does not support webhooks, a ticket trigger works well too—HR creates a ticket in a New Starters inbox and the workflow fires automatically on arrival.
To set this up: ask IT to register the Harriet webhook URL in your HRIS and confirm which fields are sent in the payload. Those fields (name, email, manager email, start date) become variables you can reference throughout the workflow.
Step 2: Author the agent step
Most of the work in this workflow is done by a configurable agent step—you describe what you want in plain language and the agent works out how to do it using the skills you give it.
When you add the step, you fill in four fields:
Goal
"Complete all onboarding tasks for {employee_name} who starts on {start_date}, reporting to {manager_email}."
How
"Work through the tasks in order. Contact the hiring manager first, then IT. Book the probation review only once the manager has confirmed the date. Do not provision Trelica or generate the document until you have the IT requirements back. Always attach outputs to the ticket."
When to stop
"Stop when all five tasks are complete: manager contacted and replied, IT contacted and replied, calendar invite sent, Trelica webhook called, welcome document generated and attached."
On error
"Post an internal note on the ticket listing which steps succeeded and which failed, and assign to the HR ops team."
Keep each instruction specific. The more precisely you describe the expected order and conditions, the more reliably the agent follows it.
Step 3: Assign the right skills
Skills are the toolsets the agent can use. Assign only what this step needs—unused skills are extra surface area with no benefit.
For this workflow, you need:
- Agentic data gathering — to contact the hiring manager and IT lead and wait for their replies.
- Calendar — to create the probation review invite.
- Webhook — to call the Trelica provisioning endpoint.
- Document generation — to produce the welcome pack.
- Ticket management — to post updates and attach the document to the ticket.
Your IT admin assigns these skills to the workflow step in the workflow builder. If a skill you need is not available, IT may need to enable it or configure an MCP integration first.
Step 4: Reach out to stakeholders for information
The agent needs information from the hiring manager and IT lead before it can complete the later steps. It gathers this using the Agentic data gathering skill, which lets Harriet contact people via Slack DM or email and wait for their reply.
What happens:
- The agent looks up the hiring manager's Slack channel or email.
- It sends a message asking for the first-day logistics and confirming the probation review date. For example:
"Hi Alex, {employee_name} is joining on {start_date} reporting to you. Could you confirm: (1) the time and location for their first day, and (2) which date works best for their 3-month probation review?"
- The workflow pauses while it waits for Alex's reply.
- When Alex replies, the agent reads the answer and moves on—asking a follow-up only if the reply is incomplete.
- The same process repeats for the IT lead.
The contacted people receive a normal Slack DM or email. They reply as they normally would. Harriet handles the conversation, asks follow-ups if needed, and returns a clean summary to the next step.
Security note: the data-gathering agent cannot access your HR systems or knowledge base—it can only send messages and receive replies. This means Harriet cannot accidentally share sensitive employee data with the contacts it messages.
Step 5: Pause until something happens
There are two kinds of pause in this workflow:
Outreach pause (waiting for a person to reply)
The workflow stops while waiting for the hiring manager or IT lead to respond. There is no timeout by default—if someone does not reply, the workflow stays paused. Set up a sub-agent timeout so the workflow fails gracefully and posts an alert to the ticket if no reply arrives within (for example) 48 hours.
Approval pause (before an irreversible action)
The Trelica webhook call provisions real accounts. If you want a human check before that happens, configure the webhook tool to require confirmation—the workflow will pause and show an Approve button on the ticket before calling the endpoint. Tick this option in the skill's tool settings in Company settings → Integrations.
After each pause, the agent resumes with full context of everything that happened before—previous replies, prior steps completed, the original webhook payload. You do not need to repeat information.
Step 6: Putting it together
Here is what the finished workflow looks like end-to-end:
Trigger: HRIS webhook fires when new starter record is created.
- Agent contacts hiring manager via Slack → pauses → resumes when manager replies with first-day info and probation date.
- Agent contacts IT lead via email → pauses → resumes when IT replies with equipment and access requirements.
- Agent creates calendar invite for probation review using confirmed date and attendees.
- Agent calls Trelica webhook to provision accounts → pauses for approval if confirmation is required → continues after approval.
- Agent generates welcome document using the employee's details and onboarding information.
- Agent attaches the document to the ticket and posts a summary: all tasks complete.
Total hands-on time for HR: zero—unless the workflow pauses for an approval or someone does not reply.
Guardrails
- Test in a pilot inbox first. Create a test new starter record and run the workflow end-to-end before enabling on real starters. Pay close attention to the pause/resume paths.
- Write an on-error path. If the HRIS webhook sends unexpected fields, or a skill is unavailable, the agent should post a clear internal note rather than silently stopping.
- Set sub-agent timeouts. Any step that waits for a person should have a timeout so stuck runs are surfaced to your team, not ignored.
- Keep instructions specific. "Do the onboarding" is too vague. "Contact the hiring manager first, then IT, then book the calendar invite only after both have replied" gives the agent a clear path to follow.
- Review skill assignments regularly. If the Trelica integration changes or the IT lead's contact details move to a different system, update the workflow instructions and skill config accordingly.
Use Harriet in your organisation for searchable help, AI assistance, and your company knowledge base.
Log in to Harriet