Triggering a flow using an inject node
You can trigger a flow once, at regular intervals, specific times or manually.
- Open Node-RED.
- Add an inject node from the input category to the workspace.
- Double-click the inject node to open the Edit node dialogue.
- In the drop-down list Payload, select the payload you want the inject node to send.
- If you want to inject the payload once after deploying the flow, enable the check box inject once and specify a delay time in the text box.
- In the drop-down list Repeat, select the desired injection interval.
- Click Done to apply your changes.
- Add more nodes to the workspace and connect them to a flow with the inject node being the first node.
- Once you deploy the flow, the inject node injects messages with the selected payload at the selected interval into the flow.