Skip to content
Visual explainer 4h to learn 5 steps

n8n capstone: release, runbook and teardown for the desk

Export the workflows, collect evidence and document a hosted design, release procedure, incident runbook and teardown.

By Invicly Tech, , in n8n, AI Automation and Voice Agents. About 8 minutes to read.

Topic 43 of 43

In short

The last step is to package the work so someone else can run it, trust it and shut it down. You export clean workflows, keep a redacted trace as evidence, write cost assumptions, and finish with an incident runbook and a teardown list.

Think of it like this: It is handing over a house: keys, a manual, a list of what to do if something breaks, and how to switch it all off.

Explained simply

A project is not finished when it works on your laptop. It is finished when someone else can run it, trust it, and shut it down. Release is the work of packaging for that person.

You export your n8n workflows as JSON files and check them for secrets. You save a redacted execution trace as evidence. You write down what a run and a minute of conversation would cost, with the assumptions clearly marked.

Then you write the runbook. It says what to do when reviews pile up, the calendar service is down, or a duplicate slips through. Each step is short and tells the reader what to look at first.

Last comes teardown and rollback. Teardown removes containers, volumes, test credentials and keys. Rollback puts the previous workflow version back if a release goes wrong.

Press Play on a diagram to walk through it one step at a time.

FlowRelease path
  1. 1
    Export workflows

    No credentials inside

  2. 2
    Sanitise and review the JSON
  3. 3
    Import into a clean lab
  4. 4
    Run the 20 cases
  5. 5
    Save evidence and sign off
CompareWhat goes in the release pack
Evidence
  • Fixture results
  • Redacted execution trace
  • Audit sample
Operations
  • Incident runbook
  • Rollback steps
  • Teardown checklist
Planning
  • Cost per run
  • Cost per minute
  • Hosted design notes
MapRunbook topics
Incident runbook
  • Reviews pending
    • Check queue age
    • Notify reviewers
    • Expire old items
  • Calendar down
    • Stop approvals
    • Check health
    • Resume and reconcile
  • Duplicate found
    • Stop new updates
    • Compare by event key
    • Fix and add a test
  • Credential expired
    • Rotate
    • Update mapping
    • Retest

In depth

Export and sanitise workflows

n8n can export workflows as JSON from the editor or with its command line tool, and import them again. The CLI has export and import commands for workflows; check the export and import page in the docs for the exact flags in your version.

Exports reference credentials by name and ID, not by secret. Still read each file before you share it. Look for webhook paths, URLs, email addresses and test data that should not leave your lab.

Import into a clean lab, recreate credentials with placeholder values and map them by name, then run the 20 cases. If they pass, the export is complete.

  • Export each workflow as JSON
  • Search the file for secrets and private URLs
  • Import into a clean lab
  • Recreate credentials by name
  • Rerun the 20 cases

Evidence and a redacted trace

A trace shows which nodes ran, in what order, with what result. Copy the execution view for one happy path and one failure. Then redact it: remove tokens, phone numbers, names and anything that looks like audio data.

Keep the node names, timings, state changes and IDs. Tie them together with session ID, execution ID and event key, so a reader can follow one request from the caller to the audit record.

Put the trace, the matrix results and a sample audit line in a release folder. These are what a reviewer will ask for first.

LayersRelease pack contents
  1. 1
    Sanitised workflow JSON
  2. 2
    Credentials map

    Names only, no secrets

  3. 3
    Matrix results and redacted trace
  4. 4
    Cost assumptions
  5. 5
    Runbook, rollback and teardown

Cost assumptions and a hosted design

Cost has two views. Per run is what one proposal costs: workflow executions, any model calls, storage. Per minute is what a minute of live conversation costs: speech and model usage if you use a provider, and phone minutes if you use telephony.

Write each as a formula with placeholders, for example cost per minute equals speech rate times minutes plus model tokens times price. Mark prices as assumptions and say to check the provider's current pricing page.

For a hosted design, note where n8n would run, how TLS and a reverse proxy are set up, that queue mode with workers helps when volume grows, where the data lives, and who holds the encryption key.

  • Per run: executions, model calls, storage
  • Per minute: speech, model, telephony if used
  • Prices are assumptions, check current pages
  • Hosted: TLS, proxy, queue mode, backups, key custody

Runbook, rollback and teardown

A runbook entry has a symptom, a first check, a fix and an owner. Examples: reviews pending too long, calendar service down, duplicate found, credential expired.

For rollback, keep the previous exported workflows. To roll back, import the old files, restore the previous credentials mapping and rerun the 20 cases.

Teardown is the last step of the lab. Stop and remove containers and volumes, delete test credentials, revoke any provider keys, and clear local files that contain trace data. Tick each item on a checklist.

  • Runbook: symptom, check, fix, owner
  • Rollback: reimport old exports, rerun cases
  • Teardown: containers, volumes, keys, files
  • Tick a checklist

Learn it in 5 short steps

About 50m each. Track them with a timer in your plan.

  1. 1
    Export sanitised workflows~50m
  2. 2
    Collect a redacted execution trace~50m
  3. 3
    Document cost assumptions~50m
  4. 4
    Write the incident runbook~50m
  5. 5
    Tear down and roll back~50m

Key points

  • An exported workflow can contain IDs and names. Read it before sharing and keep secrets out.
  • Credentials are mapped by name on import, then recreated in the new instance.
  • A redacted trace shows node order and results without audio, personal data or tokens.
  • Cost is stated as per-run and per-minute assumptions, clearly marked as estimates.
  • Teardown removes containers, volumes, test credentials and any provider keys.

Key terms

Tap a card to flip it. 0/5 known

Examples

Export and import with the n8n CLI

Run these inside the n8n container of the lab. They write and read plain JSON files. Check the docs page on export and import for the current flags in your version. After import, reconfigure credentials in the editor.

bash
docker compose exec n8n n8n export:workflow --all --pretty --output=/home/node/out/
docker compose cp n8n:/home/node/out ./release/workflows
grep -rniE "token|secret|password|@" ./release/workflows || echo clean
# in a clean lab:
docker compose exec n8n n8n import:workflow --separate --input=/home/node/in/

Cost formulas with placeholders

These are formulas, not prices. Fill them with the current numbers from your provider's pricing pages and your own volumes. Example: with 100 proposals a day, multiply cost per run by 100, then add hosting.

text
cost_per_run = (model_tokens * <token-price>) + <exec-cost> + <storage-cost>
cost_per_minute = (<speech-price-per-min>) + (tokens_per_min * <token-price>)
daily = runs * cost_per_run + minutes * cost_per_minute + <hosting-per-day>
All prices: ASSUMPTION, check official pricing before use.

Quick reference

  • Export workflows as JSON, then search the files for secrets before sharing.
  • Credentials are recreated by name in the target instance.
  • A redacted trace keeps node order, IDs and timings, and drops tokens and personal data.
  • Write cost as formulas with placeholder prices, marked as assumptions.
  • Hosted design: TLS, proxy, persistent data, backups, protected encryption key.
  • Queue mode with workers helps when execution volume grows.
  • Teardown: remove containers, volumes, test credentials and keys.

Common mistakes

  • Committing an export or env file that holds a real key. Scan it first.
  • Quoting a cost as a fact. It depends on your provider, prices and call length.
  • Forgetting teardown, so a test key or container keeps running.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What should you do before sharing an exported workflow?

Question 2

2What does a redacted trace keep?

Question 3

3How should you present cost numbers?

Question 4

4How do you roll back a bad release?

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

    Export your workflows and list the files. Search them for the words token and password.

  2. Exercise 2medium

    Redact one execution trace and add session, execution and event IDs so a reader can follow it.

  3. Exercise 3hard

    Write the teardown and rollback checklists and run teardown on a clean lab.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Do exported workflows include my API keys?
They reference credentials by name and ID rather than holding the secret values. Still read the file before sharing it.
Do I need a hosted setup for the capstone?
No. You document a hosted design on paper. Running it for real is optional and may cost money.
What is queue mode?
An n8n setup where a main instance hands executions to workers, which helps when volume grows. Check the docs for requirements.

Go deeper

ShareXLinkedInWhatsApp