# Manage HR offboarding and archival with Odoo: n8n workflow

> Started by another system calling it, and works across Gmail, Google Calendar and Slack. 39 steps, 5 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/manage-hr-offboarding-and-archival-with-odoo (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# Manage HR offboarding and archival with Odoo

Started by another system calling it, and works across Gmail, Google Calendar and Slack. 39 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmanage-hr-offboarding-and-archival-with-odoo)

**39 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 7 Logic 19 Service 13

The steps in the order they run, from what starts it.

- 1 **Offboarding Webhook** Webhook *Starts it*
- 2 **Daily Archive Check** Schedule trigger *Starts it*
- 3 **Validate Offboarding Input** Set *Logic*
- 4 **Odoo - Find Employees Past Last Day** Odoo *Service*
- 5 **Input Valid?** If *Logic*
- 6 **Odoo - Archive Employee (Set Inactive)** Odoo *Service*
- 7 **Archive Warnings (Non-Blocking)** No Op *Logic*
- 8 **Has Employee Email?** If *Logic*
- 9 **Respond 400 Invalid Input** Respond To Webhook *Starts it*
- 10 **Archive Complete** No Op *Logic*
- 11 **Odoo - Find Employee by Email** Odoo *Service*
- 12 **Odoo - Find Employee by Name** Odoo *Service*
- 13 **Employee Lookup Result** No Op *Logic*
- 14 **Respond 502 Employee Lookup Failed** Respond To Webhook *Starts it*
- 15 **Employee Found?** If *Logic*
- 16 **Extract Manager Reference** Set *Logic*
- 17 **Respond 404 Employee Not Found** Respond To Webhook *Starts it*
- 18 **Has Manager (parent_id)?** If *Logic*
- 19 **Odoo - Get Manager Record** Odoo *Service*
- 20 **Manager Lookup Fallback** Set *Logic*
- 21 **Resolve Manager Email** Set *Logic*
- 22 **Manager Info Ready** No Op *Logic*
- 23 **Odoo - Find Departure Reason** Odoo *Service*
- 24 **Reason Found?** If *Logic*
- 25 **Respond 502 Update Failed** Respond To Webhook *Starts it*
- 26 **Reason Ready** No Op *Logic*
- 27 **Odoo - Create Departure Reason** Odoo *Service*
- 28 **Odoo - Update Employee (Departure)** Odoo *Service*
- 29 **Employee Updated** No Op *Logic*
- 30 **Continue Offboarding (Async)** No Op *Logic*
- 31 **Respond 200 OK** Respond To Webhook *Starts it*
- 32 **Google Calendar - Schedule Exit Interview** Google Calendar *Service*
- 33 **Gmail - Send Departure Confirmation** Gmail *Service*
- 34 **Slack - Notify IT Security Channel** Slack *Service*
- 35 **Slack - Notify Team Channel** Slack *Service*
- 36 **Prepare Checklist Items** Set *Logic*
- 37 **Delivery Warnings (Non-Blocking)** No Op *Logic*
- 38 **Split Out Checklist Items** Split Out *Logic*
- 39 **Odoo - Create Offboarding Task** Odoo *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 39, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Calendar, Slack
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 39 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 39 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmanage-hr-offboarding-and-archival-with-odoo)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**Integrate Google Workspace with OpenAI** 39 steps · Gmail, Google Calendar](https://millionrounds.com/workflow/integrate-google-workspace-with-openai)
- [**Automated marketing campaign email system with HubSpot** 39 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automated-marketing-campaign-email-system-with-hubspot)
- [**AI daily brief with OpenAI and Gmail** 38 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-daily-brief-with-openai-and-gmail)
- [**Priya AI Virtual Assisstant Version 2 with Gemini and OpenAI** 40 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/priya-ai-virtual-assisstant-version-2-with-gemini-and-openai)
- [**AI-Powered WhatsApp Chatbot: Complete Booking Assistant** 37 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-complete-booking-assistant)
- [**Automate agile refinement prep with Gmail and OpenAI** 42 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-agile-refinement-prep-with-gmail-and-openai)
