← All documents · Download PDF
Verified live 2026-07-10. Instance
n8n.nieexpertsspain.com, n8n 2.61.0. 38 workflows: 33 active, 5 inactive (inactive: W16, old prototype agent set NIE_WA_Agent + GetPractice/BookAppointment/Escalate). This is the per-flow reference: what triggers each one, what it does, what it writes to Supabase (01-data-model.md), and how errors route to Discord. Core customer-path flows get a full block; the rest are one-liners. For the customer-facing narrative see00-overview.md; for Tally field details see02-tally-forms.md.
Q0X0hnsv0v8iCLqOorders insert;
status abbandonato; reminder counter.Update 2026-07-04 — smart invite timing. The Fase-1 invite no longer fires at payment. W01 now parks on a Wait node and sends when the buyer FINISHES the funnel:
/grazie fires a beacon (tagged
source=beacon) that resumes the wait instantly → invite
with the FINAL tier/params (order re-read from the DB).orders.funnel_last_seen); on a timer resume W01 checks
GREATEST(updated_at, funnel_last_seen) — buyer still
present → wait another round (5-min cycles, 30-min ceiling); silent ≥90s
→ send now.orders.payer_name is stored at insert (personalized
invite + reminder).BgqU8XFTFAy36xnBguide_shared -> trigger W04] / [others:
Send Phase-2 Email -> Mark phase2_sent]. WA
welcome no longer fires here — it is stamped at
Fase-2 submit +~17min via W03
Stamp Welcome Due -> W07 Welcome Poller
(the Fase-1 Send WA Welcome node is disabled).practices insert;
tokens insert; status
guide_shared/phase2_sent.Q6xqGYjWjN947mIWdocs_pending -> Calc Delays (interstitial 5-20m, docs
total 45-60m) -> Wait Interstitial -> Email Interstitial ->
Wait Docs -> Parse Anagrafici -> Tasa Generate (790/012) [error
-> stub + Discord tasa-790-error, continues] -> Fetch
EX-18 Template -> Doc Fill EX-18 -> Drive subfolder + upload +
share -> Email Documents (LIB) -> status
docs_delivered -> Log -> trigger W04.practices status
docs_pending -> docs_delivered; Drive ids;
Store Anagrafici; Mark PDF Failed / Reset Token on failure.tasa-790-error (direct);
ex-18-errors (via DiscordError) for PDF fail;
drive-errors + W05 ingest for share fail.Update 2026-07-03 — instant guide + instant data. The guide (W04 trigger) and the anagrafici parse/store now run IMMEDIATELY at Fase-2 submit, in parallel with the delay chain; only Tasa/EX-18 generation sits behind the 5-20m interstitial + 45-60m docs waits. Token-reject alerts are enriched (practice resolved even for used tokens).
IMApcnLrq6ly6zIyguide_shared; clears its own idempotency row on DriveShare
failure so it can retry.gDwe8cq2vBO7zQmQerror_email/error_whatsapp; contact update;
attempt reset; token invalidate + re-mint.delivery-errors (email/wa);
drive-errors (drive).dF74sBdgBOMazMuZorders
paid status.WKQMFXs8DnW1KDoYpractice_id? -> Insert Upsell Item -> Switch
[appointment: set priority flag + update order] / [consult: set consult
flag + update order + email Cal.com link] -> Discord upsell
notify.upsell-post-purchase; missing
practice_id -> technical-errors.iwV1RuWFm6lSrjxcpractices
appointment fields.consulenza. The
Notify New Appointment node (->
new-appointments) was disabled 2026-06-12:
W12's Cal.com consultation/group-call pings now go only to
consulenza, so they don't pollute
new-appointments, which is a manual NIE-cita
partner-booking channel (see 04-integrations.md and the
"Channels NOT driven by n8n" note below).qhMEns7SevAkfP8morders.notion_page_id.qnvyUqRFBsNI1XH4cliente-insoddisfatto.ViMUDf0kNTA4vyu2event_id upsert;
called at head of every webhook flow.technical-errors.technical-errors, ex18 ->
ex-18-errors, tasa -> tasa-790-error,
delivery -> delivery-errors, drive ->
drive-errors.chargeback channel.kpi_snapshots).practices ->
appointments view.log_satisfaction_event.nie-wa-request-correction. Lets the WhatsApp agent fix a
customer's email/WhatsApp or retrigger document regeneration straight
from chat: resolves the practice by phone number, confirms the full
name, then either reuses the W05 correzione machine (email/whatsapp) or
re-mints a Fase-2 link for a document redo (customer re-enters, W03
regenerates + emails).Reactivated at go-live:
eod_outcome_check does the ask, then
flips appointment_booked -> awaiting_outcome in the same
execution). W17 keeps only the daily 09:00 sweep:
awaiting_outcome + 3 days silence ->
presumed_obtained (+ W06 revoke + Christian notice),
referral emails (E/C at outcome+7d, Digital at guide+10d), and the
satisfaction-gated review email #09.phase2_sent stuck > 3 days; token filter
aligned to no-expiry decision).Inactive (do not rely on):
escalate_to_christian
is served by W07's nie-wa-escalate webhook (active), and
inbound tools ride W07 nie-wa-in — both live.Two layers:
NIE_LIB_ErrorHandler —
any uncaught node error -> errors table +
#technical-errors.NIE_LIB_DiscordError —
humanizes the error, enriches it with practice data, and routes by
type.Supporting guarantees:
NIE_LIB_Idempotency
(event_id upsert) at the head of every webhook flow. W04
clears its idempotency row on failure to allow retry. W15 uses Notion
find-by-order-id upsert.| Source | Channel |
|---|---|
| W12 | consulenza |
W12 (new-appointments node) |
(disabled 2026-06-12 — new-appointments is a manual
channel, see note below) |
| W09 | upsell-post-purchase |
| W09 missing practice | technical-errors |
| W20 | cliente-insoddisfatto |
| W10 | chargeback |
| W03 Tasa | tasa-790-error |
| W03 PDF | ex-18-errors |
| W03 drive | drive-errors |
| W05 email/wa | delivery-errors |
| W05 drive | drive-errors |
| LIB_DiscordError | typed (see above) |
| LIB_ErrorHandler | technical-errors |
Channels NOT driven by n8n:
stripe-checkouts, affiliation,
affiliation-payout (website side);
manual-review / whatsapp-errors (WA agent);
and new-appointments — a manual
human channel: Christian posts NIE cita
requests (name, surname, city, urgency) and the external booking partner
("CITA PARÁ NIE EXTRANJERÍA") books the in-person extranjería
appointment. This is why W12's new-appointments node is
disabled — its automated Cal.com consultation pings would pollute the
partner's manual queue.