n8n "simple" state machine is storing your nodes/workflow state globally or workflow level
A state machine refers to a programming concept where an application or workflow is divided into a series of states or steps, and the program progresses from one state to the next based on certain conditions or triggers.
- Go to Settings > Community Nodes.
- Select Install.
- Enter
n8n-nodes-statemachine
in Enter npm package name. - Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source.
- Select Install.
After installing the node, you can use it like any other node. n8n displays the node in search results in the Nodes panel.
To get started install the package in your n8n root directory:
npm install n8n-nodes-statemachine
For Docker-based deployments, add the following line before the font installation command in your n8n Dockerfile:
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-statemachine
- This node has one external depedency is you need a redis service. You can find a free redis service here
- My suggestion is 1 trigger 1 state machine
- Always use error handler node in your workflow
If you have any error, please open an issue on Github