n8n capstone: design the voice appointment desk
Specify workflows, call states, schemas, allowed tools, approved actors, disclosure, review policy and success criteria for the desk.
By Invicly Tech, , in n8n, AI Automation and Voice Agents. About 9 minutes to read.
In short
Before you build anything, write down how the appointment desk behaves. You draw two separate diagrams: the live conversation, which must feel fast, and the background workflow, which must be careful. Then you fix the schemas, the people who may approve, and the numbers that say the desk works.
Think of it like this: A restaurant has a waiter who talks to guests quickly and a kitchen that cooks carefully; the order slip between them is your event schema.
Explained simply
Think of the appointment desk as two jobs that happen at different speeds. The first job is the conversation. A caller says what they want, the assistant looks up free times and reads a few back. This must feel quick, like talking to a person.
The second job is the booking. It is slower and more careful. The assistant does not write to the calendar. It sends a proposal, which is a request that says: this caller would like this slot. A person then reviews it.
Design means writing down the rules before you build. Which states can a request be in? Who may approve it? What does the assistant say at the start so the caller knows it is automated? What happens if nobody reviews it?
You also decide how you will know the desk works. Pick numbers you can test, for example: zero duplicate bookings, zero bookings without approval, and every failure visible in an audit record. A design that cannot be tested is only a wish.
Press Play on a diagram to walk through it one step at a time.
- Caller to Voice adapter: Speech or typed transcript1Speech or typed transcript
- Voice adapter to Availability tool: Read-only lookup: date range, service2Read-only lookup: date range, service
- Availability tool to Voice adapter: Three free slots3Three free slots
- Voice adapter to Caller: Reads slots back, asks to confirm4Reads slots back, asks to confirm
- Caller to Voice adapter: Picks one slot5Picks one slot
- Voice adapter to Caller: Says: request sent, you will get a message6Says: request sent, you will get a message
- 1Proposal event
Signed, has an event key
- 2Validate and deduplicate
- 3Wait for review
Approved actor only
- 4Idempotent calendar update
- 5Audit record
- Diagrams
- Live conversation
- Background workflow
- Contracts
- Event schema
- Tool schema
- Rules
- Actors
- Review policy
- Disclosure
- Proof
- Success criteria
- Test matrix
In depth
Why the conversation and the workflow are separate
Speech needs answers in about a second or two. A review by a person can take minutes or hours. If you put both in one chain, the caller waits in silence or the review gets rushed.
So the voice side keeps only fast, safe actions: read the transcript, call a read-only availability tool, speak the result. Everything slow or risky moves to n8n through an event. The voice adapter owns authentication, schema checks and the lookup. n8n owns the proposal, the review and the calendar update.
This split also limits damage. If the voice side is tricked by a strange sentence, the worst it can do is send a proposal that a reviewer will see and can reject.
- Voice side: fast, read-only, schema checked
- n8n side: slow, reviewed, idempotent
- Event between them: signed and keyed
- Reviewer is the safety gate
States, not yes or no
A booking is not a single yes or no. A proposal moves through states. It starts as pending. It can become confirmed, rejected, expired or failed. Each state means something different to the caller and to the calendar.
Only confirmed has a calendar entry. Failed means something broke, such as a timeout, and the team needs to look. Expired means no reviewer answered in time. Writing these out stops later arguments such as: is a pending request a booking? It is not.
Give each state an owner and a next step, so nothing sits pending forever.
- pending: waiting for review
- confirmed: calendar entry exists
- rejected: reviewer said no
- expired: no answer in time
- failed: error, needs a look
- 1Offered
Slots read back
- 2Pending
Proposal sent
- 3Reviewed
Approve or reject
- 4Settled
Confirmed, rejected or expired
- Back to step 1
Schemas and allowed tools
A schema is a written shape for a message. The proposal event has fields such as eventKey, sessionId, slotId and state. If a message does not match, it is refused at the door.
The same goes for tools. The assistant may call one tool, availability lookup, and it may only read. It gets no calendar write tool. Writing the allowed list in the design makes review easy: anything not on the list is a bug.
Keep schemas small. Fewer fields mean fewer mistakes and less personal data moving around. Use a reference to the caller, not their phone number.
- Event schema: eventKey, sessionId, slotId, state
- Tool schema: date range in, slots out
- No write tool for the assistant
- Reference IDs instead of personal data
Actors, review policy and success criteria
List the actors: the caller, the voice adapter, n8n, the reviewer and the mock calendar. For each, write what they may do. Only an approved reviewer can resume a proposal. The review needs a login or a signed, single-use link.
Write the policy: how long a proposal waits, what happens at expiry, and who is told. Add a disclosure line the assistant says first, such as a short statement that it is an automated assistant.
Finish with success criteria. Examples: all 20 fixture cases pass, zero duplicate or unapproved bookings, every run has one audit record, median lookup under two seconds on the local lab.
Learn it in 5 short steps
About 1h each. Track them with a timer in your plan.
- 1Diagram the live conversation~1h
- 2Diagram the background workflow~1h
- 3Write event and tool schemas~1h
- 4Define actors and review policy~1h
- 5Set success criteria~1h
Key points
- The caller never waits for a booking. The voice side only reads slots and sends a proposal.
- Pending, rejected, expired and failed are separate states. Only confirmed means a calendar entry exists.
- Every event and tool call has a written schema, so bad input is refused before it reaches n8n.
- The review policy names who may approve and what happens if nobody answers in time.
- Success criteria are numbers you can test, such as zero duplicate bookings across 20 cases.
Key terms
Tap a card to flip it. 0/5 known
Examples
{
"eventKey": "evt_2026-12-04_s1_0007",
"sessionId": "sess_demo_01",
"slotId": "slot_2026-12-09T10:00",
"service": "consultation",
"callerRef": "caller_demo_01",
"state": "pending",
"createdAt": "2026-12-04T09:15:00Z"
}One proposal event, with synthetic data.
Write the event schema
A simple JSON Schema for the proposal. The adapter checks every event against it before sending. Additional fields are refused so nothing unexpected slips through.
{
"type": "object",
"required": ["eventKey", "sessionId", "slotId", "state"],
"additionalProperties": false,
"properties": {
"eventKey": { "type": "string" },
"sessionId": { "type": "string" },
"slotId": { "type": "string" },
"state": { "enum": ["pending"] }
}
}Walk one call through the design
Caller says: I need a consultation next Tuesday. The adapter reads the transcript and calls availability for that week, which returns three slots. It reads them back. The caller picks ten o'clock. The adapter sends a pending proposal and says a reviewer will confirm. In n8n the event is validated, checked against known event keys, and the execution waits. A reviewer approves. The calendar update runs once, the state becomes confirmed, and an audit record is written. If the reviewer had said no, the state would be rejected and the calendar untouched.
Quick reference
- Two diagrams: fast live conversation, careful background workflow.
- The voice side reads and proposes. It never writes to the calendar.
- States: pending, confirmed, rejected, expired, failed.
- Only confirmed means a calendar entry exists.
- Schemas refuse unknown fields before n8n sees them.
- Say the disclosure line at the start of every session.
- Write success criteria as numbers you can test.
Common mistakes
- Drawing one diagram for everything. The live part and the review part have different speed rules.
- Giving the voice tool write access to the calendar. It should only read and propose.
- Leaving out what happens when no reviewer answers.
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
List the five proposal states and say which one means a calendar entry exists.
- Exercise 2medium
Write the tool schema for the availability lookup: inputs and outputs, read-only.
- Exercise 3hard
Write a one-page review policy: who approves, time limit, expiry action, and what is logged.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Why not let the assistant book directly?
- A model can mishear or be misled. A reviewer and an idempotent update catch mistakes before they reach the calendar.
- Do I need a real phone line for the capstone?
- No. Transcript mode and a mock calendar are enough. Real voice or telephony is optional and may cost money.
- What is an event key?
- A stable ID for one proposal. If the same event arrives twice, the key shows it is a repeat.