# n8n Pinned and Mock Data: Test Without Real Triggers

> Test n8n workflows without new emails or forms: set mock data on a manual trigger, pin a real test run, use Execute previous nodes, unpin to publish.

Source: https://learn.ynteractive.com/content/blog/n8n-pinned-mock-data · Updated 2026-10-20 · Free from Stepthrough (https://learn.ynteractive.com)

Quick answer

[Pinned data](https://learn.ynteractive.com/content/glossary/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](https://learn.ynteractive.com/content/glossary/api) call for each run. You can pin a real test run, or click **set mock data** on a trigger and paste [JSON](https://learn.ynteractive.com/content/glossary/json) by hand. The free [Meeting to Action](https://learn.ynteractive.com/content/meeting-notes-to-action-items-sheet-and-deck-chatgpt-n8n-gamma) lesson pastes ChatGPT's action-item list as mock data and gets four items to build with.

Last updated October 20, 2026

[Take the free module →](https://learn.ynteractive.com/courses/n8n-jump-start/9)Module 9 of the free [n8n Jump Start](https://learn.ynteractive.com/courses/n8n-jump-start) course, about 14 minutes. No account needed.

By [Robert Breen](https://learn.ynteractive.com/content/about) · Published October 20, 2026 · Updated October 20, 2026 · 3 min read

n8n · Testing · Beginners

## 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](https://learn.ynteractive.com/content/glossary/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](https://learn.ynteractive.com/content/ai-resume-screener-n8n-fairness)'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](https://learn.ynteractive.com/content/invoice-inbox-to-google-sheets-approval-n8n) 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?

| Situation | Why pin |
| --- | --- |
| Gmail or form triggers | No need to send a new email or submission each test |
| Paid API calls | Each test doesn't spend credits |
| AI steps | Same input every time, so you can compare outputs |
| Long workflows | Build 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](https://learn.ynteractive.com/modules/n8n-meeting-to-action)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/meeting-notes-to-action-items-sheet-and-deck-chatgpt-n8n-gamma)

## 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](https://learn.ynteractive.com/content/blog/how-to-test-an-n8n-workflow) and the free [n8n Jump Start](https://learn.ynteractive.com/courses/n8n-jump-start) course.

## Free lessons in this post

- [Meeting to Action: Recap, Tracker Rows and a Kickoff Deck (ChatGPT, n8n, Gamma)](https://learn.ynteractive.com/content/meeting-notes-to-action-items-sheet-and-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.
- [An AI Resume Screener, with a Fairness Step (Recruiting & HR)](https://learn.ynteractive.com/content/ai-resume-screener-n8n-fairness): Have n8n read each applicant’s PDF resume, score it against the job’s must-haves with the evidence quoted, and rank it in Google Sheets, while a person makes every…
- [Invoices from Your Inbox to Google Sheets, with Approval](https://learn.ynteractive.com/content/invoice-inbox-to-google-sheets-approval-n8n): Build an n8n workflow that reads each vendor invoice PDF from Gmail with AI, logs the vendor, invoice number and total in Google Sheets, and emails the owner an Approve…

## Watch it in a free lesson: An AI Resume Screener, with a Fairness Step (Recruiting & HR)

### An AI Resume Screener, with a Fairness Step: video walkthrough

Full walkthrough · 3:36 · with captions

Have n8n read each applicant’s PDF resume, score it against the job’s must-haves with the evidence quoted, and rank it in Google Sheets, while a person makes every hiring call. The whole lesson narrated step by step, recorded in Stepthrough’s simulated practice environment.

[Watch it with chapters and the full transcript](https://learn.ynteractive.com/content/ai-resume-screener-n8n-fairness#watch)

From the free lesson [An AI Resume Screener, with a Fairness Step (Recruiting & HR)](https://learn.ynteractive.com/content/ai-resume-screener-n8n-fairness)

## Related terms

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

[Pinned data](https://learn.ynteractive.com/content/glossary/pinned-data) · [API](https://learn.ynteractive.com/content/glossary/api) · [JSON](https://learn.ynteractive.com/content/glossary/json) · [AI data entry](https://learn.ynteractive.com/content/glossary/ai-data-entry) · [AP aging report](https://learn.ynteractive.com/content/glossary/ap-aging-report) · [Applicant tracking system](https://learn.ynteractive.com/content/glossary/applicant-tracking-system) · [Approval threshold](https://learn.ynteractive.com/content/glossary/approval-threshold) · [ETL (extract, transform, load)](https://learn.ynteractive.com/content/glossary/etl)

[The full AI glossary](https://learn.ynteractive.com/content/glossary)

## Related prompts

- [Invoice approval request email prompt](https://learn.ynteractive.com/content/prompts/invoice-approval-request-email-prompt): A copy-ready prompt that writes a clear approval request for a large invoice, so the owner can say yes or no in one reply with…

[All free prompt templates](https://learn.ynteractive.com/content/prompts)

## Keep reading

- [n8n Information Extractor Examples: 3 Schemas That Work](https://learn.ynteractive.com/content/blog/n8n-information-extractor-examples): n8n Information Extractor examples for leads, invoices and resumes: the Text prompt, JSON example schemas, the model and mapping the output.
- [n8n Extract from File: Read PDF Text (and Fix 'No Binary')](https://learn.ynteractive.com/content/blog/n8n-extract-from-file-pdf): Read PDF text in n8n with Extract from File, set Input Binary Field correctly and fix "expects a binary file 'data', but none was found".
- [How Do Purchase Orders Work? The PO Process Step by Step](https://learn.ynteractive.com/content/blog/how-do-purchase-orders-work): How purchase orders work, from the internal request to the vendor's invoice and payment: the seven steps, what a PO includes and where AI helps.

[All blog posts](https://learn.ynteractive.com/content/blog) · [All free tutorials](https://learn.ynteractive.com/content)
