Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Demo Workflow - How to use workflowStaticData()

n8n template #2538
This workflow demonstrates how to use the workflowStaticData() function to set any type of variable that will persist within workflow executions. https://docs.n8n.io/code/cookbook/builtin/get-workflow-static-data/ This can be useful for example when working with access tokens that expire after a certain time period. Using staticData we can keep a record of that access token and the expiry time and build our workflow logic around it. Important Static Data only persists across production executions, i.e. triggered by Webhooks or Schedule Triggers (not manual executions!) For this the workflow will have to be activated. Setup configure HTTP Request node to fetch access token from your API (opti

How to set it up

  1. Open template #2538 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. No app accounts to connect: every node is built into n8n.
  3. Click Execute workflow and step through each node's output to confirm the data looks right.
  4. Toggle the workflow to Active so its trigger runs on its own.

Hand off to your agent

Prompt

Help me set up the n8n workflow "Demo Workflow - How to use workflowStaticData()" (https://n8n.io/workflows/2538). It uses: HTTP Request, Code. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.

Paste into Claude Code and it will do the rest.

Apps and nodes

Questions

Yes. Ria published it free on n8n.io as a verified creator, and it has 7,297 views. It runs on n8n Cloud or a self-hosted n8n instance.

None. All 2 nodes are built into n8n.

Similar workflows

NameViews
  1. Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
  2. ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
  3. Fully Automated AI Video Generation & Multi-Platform Publishing191K
  4. Scrape business emails from Google Maps without the use of any third party APIs150K
  5. Build Your First AI Data Analyst Chatbot134K
  6. AI-Powered Short-Form Video Generator with OpenAI, Flux, Kling, and ElevenLabs93K
  7. Create a Branded AI-Powered Website Chatbot88K
  8. Clone Viral TikToks with AI Avatars & Auto-Post to 9 Platforms using Perplexity & Blotato84K