Triggering a flow using an inject node

You can trigger a flow once, at regular intervals, specific times or manually.

  1. Open Node-RED.
  2. Add an inject node from the input category to the workspace.
  3. Double-click the inject node to open the Edit node dialogue.
  4. In the Payload drop-down list, select the payload you want the inject node to send.
  5. 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.
  6. In the Repeat drop-down list, select the desired injection interval.
  7. Click Done to apply your changes.
  8. Add more nodes to the workspace and connect them to a flow with the inject node being the first node.
  1. Once you deploy the flow, the inject node injects messages with the selected payload at the selected interval into the flow.