How to remember variables between executions?

Hi N8N Community,

I have a simple workflow with a webhook trigger and a http request that responds back to the bot framework. The http request needs a Bearer token to respond to the request. I can request a token with a separate http request which is valid for 24 hours. The problem is I get many request throughout the day and I don’t want to request a new token for every execution. Is there a way to store the token in a variable which I can then use across executions? How does N8N handle this scenario or how would you design the workflow to accommodate for this?

Any help is greatly appreciated.

Information on my n8n setup

  • n8n version: 1.86.1
  • Running n8n via: Docker

Hi, Yes you could do that in many ways but I guess the idea is to not store it in a way that requires any API calls and/or fancy setups. I guess the easiest way to do it would just be to use an sqlite db. its just a file-based db which you can access via normal sql statements.

reg,
J.