Automation library · Scheduling

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

39 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 7Logic 19Service 13

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

  1. 1Offboarding WebhookWebhookStarts it
  2. 2Daily Archive CheckSchedule triggerStarts it
  3. 3Validate Offboarding InputSetLogic
  4. 4Odoo - Find Employees Past Last DayOdooService
  5. 5Input Valid?IfLogic
  6. 6Odoo - Archive Employee (Set Inactive)OdooService
  7. 7Archive Warnings (Non-Blocking)No OpLogic
  8. 8Has Employee Email?IfLogic
  9. 9Respond 400 Invalid InputRespond To WebhookStarts it
  10. 10Archive CompleteNo OpLogic
  11. 11Odoo - Find Employee by EmailOdooService
  12. 12Odoo - Find Employee by NameOdooService
  13. 13Employee Lookup ResultNo OpLogic
  14. 14Respond 502 Employee Lookup FailedRespond To WebhookStarts it
  15. 15Employee Found?IfLogic
  16. 16Extract Manager ReferenceSetLogic
  17. 17Respond 404 Employee Not FoundRespond To WebhookStarts it
  18. 18Has Manager (parent_id)?IfLogic
  19. 19Odoo - Get Manager RecordOdooService
  20. 20Manager Lookup FallbackSetLogic
  21. 21Resolve Manager EmailSetLogic
  22. 22Manager Info ReadyNo OpLogic
  23. 23Odoo - Find Departure ReasonOdooService
  24. 24Reason Found?IfLogic
  25. 25Respond 502 Update FailedRespond To WebhookStarts it
  26. 26Reason ReadyNo OpLogic
  27. 27Odoo - Create Departure ReasonOdooService
  28. 28Odoo - Update Employee (Departure)OdooService
  29. 29Employee UpdatedNo OpLogic
  30. 30Continue Offboarding (Async)No OpLogic
  31. 31Respond 200 OKRespond To WebhookStarts it
  32. 32Google Calendar - Schedule Exit InterviewGoogle CalendarService
  33. 33Gmail - Send Departure ConfirmationGmailService
  34. 34Slack - Notify IT Security ChannelSlackService
  35. 35Slack - Notify Team ChannelSlackService
  36. 36Prepare Checklist ItemsSetLogic
  37. 37Delivery Warnings (Non-Blocking)No OpLogic
  38. 38Split Out Checklist ItemsSplit OutLogic
  39. 39Odoo - Create Offboarding TaskOdooService

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.