Stepthrough Start free

n8n Pinned and Mock Data: Test Without Real Triggers

Quick answer

Pinned data in n8n is a saved output that a node reuses every time you test, so you don't need a new email, form submission or API call for each run. You can pin a real test run, or click set mock data on a trigger and paste JSON by hand. The free Meeting to Action lesson pastes ChatGPT's action-item list as mock data and gets four items to build with.

Last updated

Take the free module →Module 9 of the free n8n Jump Start course, about 14 minutes. No account needed.

n8nTestingBeginners

What is pinned data?

A node's output, frozen. When a node has pinned data, n8n uses it instead of running the node during manual tests. A pin icon shows on the node. The glossary entry is pinned data.

How do I set mock data on a trigger?

From the Meeting to Action lesson:

  1. Add Trigger manually and double-click the node (When clicking 'Execute workflow').
  2. On the OUTPUT side, click set mock data.
  3. Paste a JSON list. Each object in the list becomes one item and each key becomes a field.
  4. Click Save. The OUTPUT shows 4 items, and the pin shows n8n will reuse them.

The JSON came from ChatGPT: the meeting's action items with the same four keys on every item (Meeting, Owner, Task, Due date), which match the sheet's columns, so the Google Sheets node can use Map Automatically.

How do I pin a real test run?

Run the trigger once with a real sample, then pin its output.

  • The resume screener's form was tested once with a sample application and that test is pinned. Execute previous nodes then runs the sample through Extract from PDF and the Information Extractor so you have fields to map.
  • The invoice approval workflow has a test invoice pinned to the Gmail Trigger and Extract from File, so Execute workflow runs on it without a new email.

When should I use pinned data?

SituationWhy pin
Gmail or form triggersNo need to send a new email or submission each test
Paid API callsEach test doesn't spend credits
AI stepsSame input every time, so you can compare outputs
Long workflowsBuild later nodes without rerunning the early ones

Try it free, step by step

Meeting to Action: Recap, Tracker Rows and a Kickoff Deck (ChatGPT, n8n, Gamma). Turn rough meeting notes into a checked recap in ChatGPT, four action-item rows in a Google Sheet through n8n, and a five-slide kickoff deck in Gamma. You do every step yourself in a practice copy of n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

Start the free lesson

Or read the full step-by-step guide

Does pinned data affect the live workflow?

No. Pinned data is only used in manual executions in the editor. A published workflow started by its real trigger uses real data. Still, unpin before you publish so your own tests reflect what production will see, and so you don't forget a stale sample.

Common mistakes

  • Forgetting it's pinned. You change the trigger and nothing changes, because the pin is still used. Unpin to fetch fresh data.
  • Pinning sensitive data. Pins are saved with the workflow. Use made-up samples, not real customers.
  • Mock data with inconsistent keys. Give every object the same keys, or columns go missing.

Key takeaways

  • Pinned data is a frozen node output reused in manual tests.
  • set mock data on a trigger lets you paste a JSON list; each object becomes an item.
  • Pin a real run of a Gmail or form trigger to test without sending new data.
  • Pins don't affect production, but unpin before publishing and avoid real personal data.

Frequently asked questions

How do I pin data in n8n?

Run the node, then click the pin icon on its OUTPUT. Or, on a trigger, click set mock data, paste JSON and save.

How do I unpin data in n8n?

Open the node and click the pin icon on the OUTPUT again to unpin it.

Does pinned data run in production?

No. Pinned data is only used for manual executions in the editor.

Where can I learn n8n testing?

How to Test an n8n Workflow and the free n8n Jump Start course.

Free lessons in this post

Plain-English definitions, each with an example from a free lesson.

The full AI glossary

All free prompt templates

Keep reading

All blog posts · All free tutorials