Capture names, dates and time zones as typed voice slots
Turn spoken names, dates, durations and time zones into typed values and confirm them when speech is ambiguous.
By Invicly Tech, , in n8n, AI Automation and Voice Agents. About 6 minutes to read.
In short
A slot is one piece of information the agent needs, such as a name, a date, a duration or a time zone. Speech is ambiguous, so convert what was heard into a typed value, validate it, and confirm anything unclear. Dates go in RFC 3339 form and time zones use IANA names.
Explained simply
A slot is one thing the agent needs to know, like a name, a date or a time zone. A slot has a type. A date is a date, not a sentence.
People say dates in many ways: next Tuesday, the fourteenth, tomorrow afternoon. The agent should turn what it heard into one standard form. For date and time, the standard is RFC 3339, which looks like 2026-12-08T15:00:00+00:00.
Time zones need care. A zone like Europe/London changes its offset with daylight saving. A plain offset like +01:00 does not. Always ask, then store the named zone.
Speech is ambiguous, so confirm anything doubtful. If the value cannot be settled by voice, such as a spelled email, offer a text fallback.
Press Play on a diagram to walk through it one step at a time.
- 1Heard
Next Tuesday at three, London.
- 2Parse
Candidate date, time and zone.
- 3Normalise
2026-12-08T15:00:00Z style, with offset.
- 4Validate
In the future, inside opening hours.
- 5Confirm
Read it back if anything is ambiguous.
- 1Value heard
- 2Valid type?
If not, ask again.
- 3Ambiguous or costly?
Names, dates and times: yes.
- 4Read back
Wait for a clear yes.
- 5Store typed value
In depth
Typed slots
Decide the type of each slot before you write any dialogue. A name is a string you confirm. A start is an RFC 3339 date-time. A duration is a whole number of minutes. A time zone is an IANA name from a known list. A typed slot can be validated: reject a date in the past or a duration of zero. Anything failing validation turns into a short clarifying question.
- name: string, confirmed
- start: RFC 3339 date-time
- duration_minutes: integer
- time_zone: IANA name
Dates and zones
Resolve relative phrases such as next Tuesday against the current date in the caller's zone, not the server zone. Then write the result in RFC 3339 with an offset. The offset is correct for that date, but you should keep the IANA name too, because rules can change. When the caller says Eastern, map it to America/New_York and read it back as Eastern time.
- Raw speech
- next Tuesday at three
- Context
- today: 2026-12-02
- zone: Europe/London
- Typed value
- 2026-12-08T15:00:00+00:00
When to confirm
Confirm when the cost of an error is high or the heard value could have two meanings. Names, dates and times always qualify. For a name, ask the caller to spell it, then read the spelling back. For ambiguity, offer the two choices: Do you mean the fourteenth or the fourth? Do not confirm every low-risk slot, or the call becomes tiresome.
Text fallback
Some values are hard by voice: long emails, unusual names, postcodes. Offer to send a text message or a link where the caller can type the value. Tell them what to expect. Treat the typed value as the source of truth, and keep the voice call's summary consistent with it.
Learn it in 5 short steps
About 30m each. Track them with a timer in your plan.
- 1Define typed slot values~30m
- 2Normalise dates to RFC 3339~30m
- 3Resolve time zones explicitly~30m
- 4Confirm ambiguous values~30m
- 5Offer a text fallback~30m
Key points
- Define each slot with a type: string, date-time, duration in minutes, IANA time zone name.
- Store date-times in RFC 3339, for example 2026-12-08T15:00:00+00:00, never as free text.
- Resolve the time zone explicitly. An offset like +01:00 is not a zone, because daylight saving changes it.
- Confirm when the value is ambiguous, such as two plausible spellings or two possible dates.
- Offer a text fallback, for example a link or SMS, for names and emails.
Key terms
Tap a card to flip it. 0/5 known
Examples
{
"caller_name": "Priya Raman",
"name_confirmed": true,
"start": "2026-12-08T15:00:00+00:00",
"time_zone": "Europe/London",
"duration_minutes": 30
}A typed slot set, ready to validate.
Slot schema in Python
A small typed model that rejects bad values before they reach the calendar.
from datetime import datetime
from zoneinfo import ZoneInfo
from pydantic import BaseModel, field_validator
class Slots(BaseModel):
start: datetime
time_zone: str
duration_minutes: int
@field_validator("time_zone")
@classmethod
def known_zone(cls, v):
ZoneInfo(v) # raises if unknown
return vResolving next Tuesday
Today is Wednesday 2 December 2026 in London. The caller says next Tuesday at three. The agent picks Tuesday 8 December, writes 2026-12-08T15:00:00+00:00 with zone Europe/London, and reads back: Tuesday 8 December at 3 pm, London time.
Quick reference
- Every slot has a type, not free text.
- Date-times use RFC 3339, for example 2026-12-08T15:00:00+00:00.
- Time zones use IANA names such as Europe/London.
- An offset alone does not carry daylight saving rules.
- Confirm names, dates and times by reading them back.
- Offer a text fallback for emails and spelled values.
Common mistakes
- Guessing the zone from the phone number and never asking.
- Treating next Friday as one fixed date without a read-back.
- Spelling unusual names from sound alone with no way to correct them.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Write a typed slot list for an appointment: names and types.
- Exercise 2medium
Convert: Friday at 9:30 in the morning, caller in New York, today is Thursday 16 April 2026. Give the RFC 3339 value.
- Exercise 3hard
Write validation rules for start and a clarifying question for each failure.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- What is RFC 3339?
- It is a strict text format for dates and times, such as 2026-12-08T15:00:00Z. It is a profile of ISO 8601 meant for software.
- Why not just store the offset?
- Offsets change when daylight saving starts or ends. A named zone like Europe/London keeps the rules.
- Do I confirm every slot?
- No. Confirm the ones that are ambiguous or costly if wrong, such as names, dates and times.