n8n, AI Automation and Voice Agents
Build an appointment desk for a fictional business step by step: n8n workflows that take form and webhook booking requests, model-assisted intent extraction with validation and human review, idempotent writes to a mock calendar, and an inbound voice agent that checks availability and proposes a booking while n8n handles review in the background. Modules 1–3 are beginner n8n work, modules 4–8 add intermediate AI automation, approvals and voice design, and modules 9–13 cover advanced realtime sessions, reliability, evaluation, operations and the capstone. You only need basic browser and spreadsheet skills to start; JSON, HTTP and credentials are introduced before the API labs, and Git, GitHub & GitHub Actions covers version control. Everything runs locally with Docker Compose, synthetic transcripts, a deterministic model stub and a mock calendar, so hosted speech, telephony and model providers are optional.
What you will be able to do
- Build, debug and export n8n workflows with branches, batches, webhooks and schedules
- Integrate APIs with scoped credentials and validate AI outputs before they drive a branch
- Route model proposals through human review and apply each approved action exactly once
- Design an inbound voice conversation with read-back confirmation, disclosure and human handoff
- Connect live voice turns to n8n through a fast tool adapter and a structured event contract
- Operate the system with retries, replay, tracing, evaluations and measured cost and latency
Roadmap
Bar length shows each module's share of study time.
- 18h 30m3 topics
First workflow and execution view
Beginner. Run a pinned n8n lab, follow JSON items through nodes and build a first deterministic appointment flow. Prerequisites: basic browser and spreadsheet skills.
Show topicsNot startedStart a pinned n8n release locally, sign in to the editor, load synthetic data and tear the lab down cleanly.
- Pick and pin one n8n release
- Run n8n with Docker and a data volume
- Open the editor and create the owner account
- Load synthetic appointment data
- Store placeholder credentials safely
- Tear down containers and volumes
Follow items through a workflow and fix a broken field mapping using expressions and the execution data.
- Read the item list structure
- Map fields between nodes
- Write expressions that reference earlier nodes
- Understand per-item scope
- Use execution data to find a mapping mistake
Process sample appointment requests with manual and schedule triggers, a filter and an HTTP call to a local fixture.
- Start from a manual trigger
- Add a schedule trigger with a time zone
- Filter out incomplete requests
- Call a local fixture with HTTP Request
- Pin data to repeat a test run
- 27h 30m3 topics
Shape items and reuse workflow logic
Beginner. Branch and merge records, process many items in bounded batches, and export workflows as shareable fixtures.
Show topicsNot startedRoute supported and unsupported requests, test an empty branch and merge records on an explicit key.
- Branch with If and Switch
- Send unsupported requests to their own path
- Test what happens on an empty branch
- Merge records by a matching key
- Check merged output for gaps
Process many items in batches with pagination and bounded waits, and prove every expected item was handled.
- Know when n8n loops for you
- Use Loop Over Items for batches
- Paginate an HTTP API
- Add waits to respect rate limits
- Count input and output items
Export a workflow, remove sensitive values, re-import it into a clean lab and reconnect its credentials.
- Export workflow JSON
- Check version compatibility
- Remove secrets and real data
- Ship sample inputs with the export
- Reconnect credentials after import
- Keep exports in Git
- 38h3 topics
Receive and send events
Beginner. HTTP and credentials basics, then authenticated webhooks, connectors versus generic HTTP, and schedules with persisted cursors.
Show topicsNot startedReceive booking requests on an authenticated production webhook, validate them and acknowledge only after durable acceptance.
- Compare test and production URLs
- Authenticate the caller
- Validate fields and payload size
- Store the request before acknowledging
- Return a clear response code
Choose between a service connector and a generic HTTP request, use scoped credentials and rotate them without breaking the workflow.
- Compare connector and HTTP Request nodes
- Create credentials with least privilege
- Test API error responses
- Rotate a credential safely
- Keep secrets out of node parameters
Poll a source on a schedule with a persisted cursor and explicit time zone, and verify catch-up after downtime.
- Compare polling with webhooks
- Persist a cursor or processed key
- Set the workflow time zone
- Skip already processed events
- Test catch-up after downtime
- 49h3 topics
Add models to useful workflows
Intermediate. Classify and summarise requests, validate model output before branching, and compare a direct call with a narrow agent.
Show topicsNot startedRoute synthetic requests by a structured category and summary, and compare rules, a model node and a deterministic stub.
- Write routing rules first
- Use the Text Classifier node
- Extract a short summary
- Swap in a deterministic stub for tests
- Compare accuracy on a small set
Check model output against a schema and allowed values, and send refusals, invalid fields and ambiguous requests to review.
- Define a JSON Schema for the output
- Use a structured output parser
- Check allowed values and ranges
- Route refusals and ambiguity to review
- Inspect the failed execution
Build a narrow n8n agent with one read-only lookup, set time and tool budgets, and compare its latency and cost with a direct call.
- Know when an agent is needed
- Give the agent one read-only tool
- Limit iterations and time
- Record latency and token cost
- Compare with a single model call
- 511h 30m4 topics
Repeatable business recipes
Intermediate. Intake triage, document extraction, cited digests and a measured case for what to automate.
Show topicsNot startedClassify and route a synthetic intake set and measure uncertain cases, review time and success rate.
- Build a labelled synthetic intake set
- Route by category and confidence
- Send uncertain cases to a person
- Measure review time and accuracy
Extract fields from synthetic invoices or forms, reconcile totals and route draft records to a mock review queue.
- Define the fields to extract
- Run the Information Extractor
- Reconcile line items with totals
- Record missing inputs
- Queue drafts for review
Produce a scheduled digest with citations from approved documents, with duplicate suppression, preview and destination approval.
- Limit sources to approved documents
- Cite every summarised item
- Suppress duplicates between runs
- Preview before sending
- Approve the destination
Estimate run cost, review burden, exception rate and manual time saved from a controlled pilot and use them to set automation scope.
- Measure the manual baseline
- Estimate per-run model cost
- Count exceptions and reviews
- Run a controlled pilot
- Decide the automation scope
Module resources:Invicly: Generative AI, Agentic AI and RAG ↗ - 68h 30m3 topics
Safely write to a downstream system
Intermediate. Model proposal states, review drafts with n8n waits or authenticated callbacks, and write each approved booking exactly once.
Show topicsNot startedModel a booking proposal through proposed, approved, rejected, expired, applied and failed states bound to an exact version.
- Define the six proposal states
- Allow only valid transitions
- Bind approval to a proposal version
- Expire stale proposals
- Recheck permission before applying
Pause a workflow for review of a draft booking and handle rejection, late approval, duplicate callbacks and edited drafts correctly.
- Pause with the Wait node
- Resume through an authenticated callback
- Handle rejection and edits
- Ignore late or duplicate callbacks
- Record who decided and when
Apply each approved proposal as exactly one mock booking, even when an acknowledgement is lost and the action is retried.
- Use stable event and action keys
- Persist the action outcome
- Use an idempotency key on writes
- Reconcile a lost acknowledgement
- Verify one booking per proposal
- 710h 30m4 topics
Speech, turns and conversation design
Intermediate. Choose a voice architecture, design an inbound appointment conversation, and handle speech, turns and typed slot values.
Show topicsNot startedCompare a speech-to-text, reasoning and text-to-speech pipeline with realtime speech-to-speech and trace where audio, transcripts, tools and call state live.
- Describe the chained pipeline
- Describe realtime speech-to-speech
- Compare latency, control and cost
- Place audio, transcript and call state
- Decide where tool calls run
Write an inbound appointment script with short turns, time-zone questions, read-back confirmation, assistant disclosure and human handoff.
- Disclose that the caller is talking to an assistant
- Keep responses short
- Ask about time zones clearly
- Read back before confirming
- Offer a person at any point
Explain transcription, synthesis, streaming and turn detection, and run a transcript-first or push-to-talk exercise that handles silence and interruptions.
- Transcribe and synthesise speech
- Stream audio in both directions
- Detect the end of a turn
- Handle silence and interruptions
- Run a push-to-talk exercise
Turn spoken names, dates, durations and time zones into typed values and confirm them when speech is ambiguous.
- Define typed slot values
- Normalise dates to RFC 3339
- Resolve time zones explicitly
- Confirm ambiguous values
- Offer a text fallback
Module resources:OpenAI: voice agents ↗ - 88h3 topics
Connect live turns to workflow actions
Intermediate. A fast tool adapter for availability, a structured event contract to n8n, and handoff and fallback when something is down.
Show topicsNot startedBuild availability and booking-proposal tools that check caller identity, validate arguments, time out quickly and fail safely.
- Define tool schemas
- Check session or caller identity
- Validate arguments at the service
- Set short timeouts
- Return safe failure responses
Send n8n a structured event with session ID, event ID, verified actor, consent state and requested slot, separate from the quick availability reply.
- Define the event schema
- Include session and event IDs
- Carry the verified actor and consent
- Reply fast, review asynchronously
- Confirm back to the caller later
Hand a call to a person with an approved context summary and give a polite fallback when the calendar, workflow or voice link fails.
- Decide when to hand off
- Pass an approved context summary
- Fall back when the calendar is down
- Fall back when n8n is unreachable
- Recover from a dropped connection
Module resources:Invicly: FastAPI with Python for AI Backends ↗ - 912h4 topics
Deploy an inbound session
Advanced. Browser sessions with short-lived credentials, optional SIP inbound calls, privacy controls and a measured latency budget.
Show topicsNot startedRun an optional browser voice session with scoped short-lived credentials and handle microphone state, interrupted turns and disconnects.
- Mint short-lived client credentials on the server
- Request microphone access
- Stream audio over WebRTC
- Handle interrupted turns
- Recover from disconnects
Diagram inbound call routing, test with a simulator or test number and synthetic callers, and verify signed provider events.
- Diagram the inbound call path
- Use a simulator or test number
- Verify signed provider webhooks
- Separate call state from booking state
Define what transcripts and audio are collected, who can read them, how long they are kept and how consent and deletion work.
- Decide what to collect
- Restrict access to transcripts
- Set retention and deletion
- Ask for recording consent
- Use synthetic speech in fixtures
Measure time to first audio, turn latency, tool delays and dropout recovery, and set a latency budget across gateway, model and tool.
- Measure time to first audio
- Measure turn and tool latency
- Test overlapping speech
- Test dropout recovery
- Split the latency budget
- 109h 30m3 topics
Handle partial failure and scale
Advanced. Error workflows with bounded retries and replay, concurrency under quotas, and hosting choices with backups and rollback.
Show topicsNot startedClassify workflow errors, apply bounded retries, route failures to review and replay a failed event without side effects.
- Classify transient and permanent errors
- Set retries on nodes
- Attach an error workflow
- Route failures to review
- Replay a failed execution safely
Model a burst of executions against API quotas and worker limits and keep concurrent approvals consistent.
- Set production concurrency limits
- Respect downstream API quotas
- Watch queue depth and age
- Lock or version concurrent approvals
Compare managed and self-hosted n8n and plan TLS, queue mode, persistent data, encryption keys, backups and rollback.
- Compare n8n Cloud and self-hosting
- Terminate TLS behind a proxy
- Enable queue mode with workers
- Protect the encryption key
- Back up and roll back a release
- 119h3 topics
Test conversations and business outcomes
Advanced. Versioned voice fixtures, business outcome scores and a replay matrix for prompt, model and workflow changes.
Show topicsNot startedBuild a versioned set of transcript and synthetic audio cases covering silence, interruption, ambiguous times, accents, denial and handoff.
- Write transcript-first cases
- Generate synthetic audio
- Cover silence and interruption
- Cover ambiguous times and accents
- Version the fixture set
Score intent, slot read-back, task completion, wrong or duplicate bookings, escalation and latency, separately for text and live audio.
- Define outcome metrics
- Score slot read-back accuracy
- Count wrong and duplicate bookings
- Track escalation and latency
- Report text and audio results apart
Replay workflow fixtures across prompt, model and workflow changes and check errors, retries, approval state and rollback thresholds.
- Replay fixtures on each change
- Check webhook error handling
- Check retry recovery
- Check approval states
- Set rollback thresholds
Module resources:n8n: why test AI workflows ↗ - 128h 30m3 topics
Observe workflow and call state
Advanced. Correlate calls with executions and actions, recover from incidents without extra bookings, and run a costed pilot.
Show topicsNot startedLink each session ID, n8n execution ID, proposal and action, and measure queue age, review time, retries and cost without raw audio.
- Carry one correlation ID end to end
- Record execution and proposal IDs
- Measure queue age and review time
- Track retries and cost
- Keep raw audio out of telemetry
Investigate failed turns, expired requests and incomplete writes from redacted evidence, then replay and reconcile without an extra booking.
- Collect redacted evidence
- Find the failed step
- Replay a failed workflow
- Reconcile the calendar state
- Write up the incident
Calculate per-run and per-minute costs, run a small inbound pilot and define ownership, retention, maintenance and rollback.
- Calculate per-run and per-minute cost
- Run a small inbound pilot
- Assign operational owners
- Set retention and maintenance
- Write a rollback checklist
Module resources:Google SRE: monitoring distributed systems ↗ - 1325h4 topics
Build an approval-driven appointment desk
Advanced. Design, build, verify and release a local appointment desk with a voice front end, n8n review and a mock calendar.
Show topicsNot startedSpecify workflows, call states, schemas, allowed tools, approved actors, disclosure, review policy and success criteria for the desk.
- Diagram the live conversation
- Diagram the background workflow
- Write event and tool schemas
- Define actors and review policy
- Set success criteria
Connect simulated speech or transcripts, a mock availability lookup, an n8n proposal workflow, review and a mock calendar update.
- Run a transcript or simulated speech mode
- Wire the availability tool
- Build the proposal workflow
- Add authenticated review
- Apply idempotent calendar updates
- Write an audit record
Run a 20-case matrix covering duplicates, rejection, interruption, ambiguous dates, denied permissions, timeouts and cancelled sessions with zero unintended bookings.
- Replay duplicate events
- Reject and expire proposals
- Interrupt and cancel sessions
- Force timeouts and denied permissions
- Confirm zero duplicate bookings
Export the workflows, collect evidence and document a hosted design, release procedure, incident runbook and teardown.
- Export sanitised workflows
- Collect a redacted execution trace
- Document cost assumptions
- Write the incident runbook
- Tear down and roll back