insonl
← journal

Turn Leave Requests Sent by Chat Into HR System Entries

date
3 December 2026
by
Insonl
read
7 min read

In a fictional workplace, an employee writes on Thursday 3 December, “Can I take next Friday afternoon off? Monday too, if that’s okay.” The message gives HR a starting point. The employee could mean the next day or the Friday of the following week. Monday might be a full day or another afternoon. The message also leaves the type of leave open.

An assistant can turn that chat message into a leave request by extracting what the employee said, asking about missing details and showing the resulting dates and type for confirmation. Only then should the integration create a pending request in the HR system. The employee confirms what they want to request. A designated person checks entitlement and approves or declines the request using the organisation’s policy and the HR record.

Extract the request against your HR system’s fields

Start with a private chat intake that can tie the signed-in sender to an active employee record. Use a verified account mapping and the employee’s company where relevant. If one account maps to several records, or a manager forwards someone else’s message, send the case to HR to resolve the identity. A name in a chat message is weak evidence for choosing the employee whose leave balance could be affected.

Ask the assistant to capture the requested start and end dates, the requested period for each date, and the employee’s wording for the type of leave. Keep the source message reference and capture the short phrases that support each extracted field. Preserve separate periods when a message requests non-consecutive dates. A Friday afternoon and the following Monday can require separate entries, depending on how the HR system represents the employee’s schedule and the requested periods.

Use the HR system’s configured types as the options for the employee to select. Odoo 19, as a third-party example, documents a time-off request with start and end dates and a selected type. On the main Time Off dashboard, the request form shows an Employee field that defaults to the signed-in employee. Depending on its configuration, the form can ask for morning or afternoon, or for start and end times. Check the equivalent fields in your system, including what it accepts for each leave type. Keep any duration derived from shifts, holidays or work calendars in the HR system’s validation path. Odoo 19, Request time off

Resolve relative dates using the original message timestamp and the employee’s work time zone. When more than one reading is plausible, show the calendar choices. Keep full-day leave as local calendar dates through the integration and translate to the target API’s representation at the boundary. Use an unambiguous internal format such as YYYY-MM-DD, the full-date component defined in RFC 3339. Show the weekday, month name and year when you ask the employee to confirm. RFC 3339, section 5.6

Ask the employee to confirm the exact entries

In the fictional example, the assistant asks which Friday the employee means and whether the following Monday is a full day. The employee specifies Friday 11 December and Monday 14 December 2026, then chooses annual leave from the configured list. For an HR system that accepts those periods as separate requests under the selected type, the private confirmation can read:

Date Period Requested type
Friday 11 December 2026 Afternoon Annual leave
Monday 14 December 2026 Full day Annual leave

Label the action Confirm and submit for approval. Record which authenticated employee selected it, when they did so and the version they saw. If the employee changes a date or type before submission, validate the changed fields and ask them to confirm the new version. An old confirmation should expire when its details change. Silence and a reaction elsewhere in the thread leave the request waiting for confirmation.

Use the same private intake when an employee needs to correct a draft. Keep the confirmation limited to fields HR needs. If the employee volunteers medical details or an attachment, direct them to the organisation’s restricted HR channel for supporting documentation. Pass a reference only when the reviewer needs it and has access. Copying the whole chat into the HR description can disclose personal details to people who were only meant to see the request.

Create a pending request and hand it to the approver

Give the write service a narrow job. After it checks the employee’s confirmation against the current version, it submits the confirmed fields and an external reference through the supported HR interface. Revalidate the employee record, the leave type and the required fields at submission. If a category was retired or an employee record changed, return the case for correction. Route overlaps or balance exceptions to the person responsible for applying the policy. The assistant can report the validation result without switching the request to another category.

Check the status the HR system actually creates. Odoo 19, for example, lets administrators configure approval by time-off type. Its request documentation says a type with no approval requirement is approved automatically. Use an approval-required path for this workflow and test the resulting status with a sandbox account. If the available interface would approve the request on creation, keep the confirmed details in a restricted HR intake queue for a person to handle. Odoo 19, Time off types

The designated manager or HR officer reviews the pending request using the employee’s current balance, work schedule and applicable policy. Have the HR system record the approver and outcome. Report “Submitted for approval” to the employee only after the system acknowledges the record. If the employee changes or withdraws the request after submission, follow the HR system’s amendment or cancellation flow and keep the original decision history.

Give each intended entry a stable submission reference. If the request in the fictional example produces two HR records and the second write times out, reconcile the second reference before retrying. Keep the first record’s ID and status so a retry cannot recreate it. If the HR system has no reliable way to look up an uncertain write, have an operator reconcile it before sending again. How to Prevent ERP Double Posting When a Request Retries

Test the handoff with cases that need clarification

Before enabling HR writes, replay redacted requests or run the intake in shadow mode. Have HR staff label the exact fields they would enter and the questions they would ask. Include numeric dates with two readings, shifts that cross midnight, missing leave types, messages sent on behalf of someone else, and replies that correct an earlier request. Check whether the employee could see and resolve each ambiguity from the confirmation alone. Run an AI Workflow in Shadow Mode Before It Can Take Action

Use a test tenant to check the submission itself. Try an edit after confirmation, a webhook delivered twice, an overlap with an existing request and a connection drop after the HR system saves the record. Verify the exact employee, dates, period and type in the resulting entry. Check that the request reached the authorised approver in the expected status. In a pilot, track how often employees correct proposed fields, how many cases need HR intervention and how many confirmed requests can be reconciled to their HR records. Review the cases people abandon as well as those they submit. Repeated clarification on the same field is a reason to make the intake more structured.

Sources

Audit one leave intake channel

Bring a few redacted requests, the configured leave types and the current approval path to Insonl’s free AI workflow audit. We can map where staff clarify requests today and identify what the HR system would need to accept a confirmed request for review. Insonl charges for optional follow-on work. Request a free AI workflow audit