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 Payload drop-down list, select the payload you want the inject node to send.
- If you want to inject the payload once after deploying the flow, enable the inject once check box and specify a delay time in the text box.
- In the Repeat drop-down list, 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.