Route after-hours calls to voicemail
Two ways to send after-hours callers to voicemail. Both rely on a business-hours schedule (schedule_id: sch_01j0jvpe0wzc6g05bktfew0xyx below) and a voicemail box (id: vm_01jg8asp59ps9rtt7azhrhvcre).
Attach the schedule directly to the DID and set the closed override to voicemail. No flow required.
{ "e164": "12025550123", "dest_kind": "flow", "dest_id": "flow_01jzqwjn803wtnhc445bvjenzc", "schedule_id": "sch_01j0jvpe0wzc6g05bktfew0xyx", "closed_dest_kind": "voicemail", "closed_dest_id": "vm_01jg8asp59ps9rtt7azhrhvcre", "holiday_dest_kind": "voicemail", "holiday_dest_id": "vm_01jg8asp59ps9rtt7azhrhvcre"}- In hours → the normal flow (
dest_id: flow_01jzqwjn803wtnhc445bvjenzc). - Closed or holiday → voicemail box
vm_01jg8asp59ps9rtt7azhrhvcre.
Put a timeCondition at the top of the flow and branch after-hours to a voicemail node.
{ "id": "flow_01jzqwjn803wtnhc445bvjenzc", "name": "Support", "version": 1, "start": "hours", "nodes": [ { "id": "hours", "type": "timeCondition", "data": { "kind": "timeCondition", "scheduleId": "sch_01j0jvpe0wzc6g05bktfew0xyx" } }, { "id": "menu", "type": "menu", "data": { "kind": "menu", "promptText": "Press 1 for support", "maxDigits": 1, "timeoutSec": 5 } }, { "id": "vm", "type": "voicemail", "data": { "kind": "voicemail", "mailboxId": "vm_01jg8asp59ps9rtt7azhrhvcre" } } ], "edges": [ { "id": "e1", "source": "hours", "target": "menu", "sourceHandle": "in_hours" }, { "id": "e2", "source": "hours", "target": "vm", "sourceHandle": "out_of_hours" } ]}The holiday outcome falls back to the out_of_hours edge, so holidays go to voicemail too. Draw a separate holiday edge only if you want different holiday handling.
- Pick an approach above. Use the number-level override for “this line is closed”; use the flow for richer after-hours logic.
- Confirm the schedule has your weekly hours and any holidays (see Configure business hours).
- Test by temporarily narrowing the schedule (or adding today as an
is_closeddate) and calling in; you should land straight in voicemail.
Also consider
Section titled “Also consider”For a queue that’s open but has nobody logged in, that’s not an after-hours case: wire the queue’s no_agents exit to voicemail instead.