Mailhook and Deputy: Sick-Leave Email to Leave Record Template

When an employee emails in sick, this Spojit template parses the message and logs the absence as a Deputy leave entry automatically.

What It Builds

A Mailhook trigger gives your workflow its own inbox address. Any sick-day email sent to it starts a run. A Connector node in Agent mode reads the message to pull out the employee name and the dates they will be off, then a Deputy Connector node creates the matching leave record so the absence is captured without manual entry.

The Prompt

Paste this into Miraxa and it builds the workflow, connecting the tools for you:

Build a workflow with a Mailhook trigger so employees can email a sick-leave address. Read each incoming email to extract the employee's name, the leave start date, and the leave end date, then create a matching leave record in Deputy for that employee. If the dates are unclear, default the leave to the day the email arrived.

Connectors Used

  • Mailhook - the trigger; a sick-day email to the workflow address starts each run.
  • Deputy - creates the leave record for the matched employee.

Customize It

Change the prompt to set a default leave type (such as sick or unpaid), to match employees by email address instead of name, or to notify a manager. You can also tell Miraxa to handle multi-day ranges, half-days, or a specific timezone for the dates.

Tips

  • Make sure your Deputy connection has permission to create leave records before running.
  • Agent mode reads free-text emails well; switch the Deputy step to Direct mode once you know the exact tool for predictable, no-AI-cost writes.
  • Share the Mailhook address with staff or set up a forwarding rule from your shared sick-leave inbox.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.