Skip to content
Visual explainer 2h 30m to learn 5 steps

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.

Topic 23 of 43

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.

FlowFrom speech to a typed slot
  1. 1
    Heard

    Next Tuesday at three, London.

  2. 2
    Parse

    Candidate date, time and zone.

  3. 3
    Normalise

    2026-12-08T15:00:00Z style, with offset.

  4. 4
    Validate

    In the future, inside opening hours.

  5. 5
    Confirm

    Read it back if anything is ambiguous.

FlowDeciding whether to confirm
  1. 1
    Value heard
  2. 2
    Valid type?

    If not, ask again.

  3. 3
    Ambiguous or costly?

    Names, dates and times: yes.

  4. 4
    Read back

    Wait for a clear yes.

  5. 5
    Store 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.

MapA normalised start time
Slot: start
  • 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.

  1. 1
    Define typed slot values~30m
  2. 2
    Normalise dates to RFC 3339~30m
  3. 3
    Resolve time zones explicitly~30m
  4. 4
    Confirm ambiguous values~30m
  5. 5
    Offer 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

json
{
  "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.

python
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 v

Resolving 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.

Question 1

1Which is an IANA time zone name?

Question 2

2Why store an RFC 3339 date-time instead of the heard words?

Question 3

3What should you resolve next Tuesday against?

Question 4

4A caller says an unusual surname that is easily misspelled. What is the best step?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Write a typed slot list for an appointment: names and types.

  2. 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.

  3. 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.

Go deeper

ShareXLinkedInWhatsApp