# How to implement custom node that wait for User Action trigger in another app

**URL:** <https://discourse.nodered.org/t/how-to-implement-custom-node-that-wait-for-user-action-trigger-in-another-app/63418>\
**Category:** General\
**Created:** [3 June 2022 12:03 UTC](https://discourse.nodered.org/t/how-to-implement-custom-node-that-wait-for-user-action-trigger-in-another-app/63418 "2022-06-03T12:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil\_satpathy](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@swapnil\_satpathy](https://discourse.nodered.org/u/swapnil_satpathy)\
**Post date:** [3 June 2022 12:03 UTC](https://discourse.nodered.org/t/how-to-implement-custom-node-that-wait-for-user-action-trigger-in-another-app/63418/1 "2022-06-03T12:03:56Z")

</div>

Hi All,

I am trying to do POC n8n for a workflow process.

Let’s say there is a Web application for shipment creation. Once a shipment is created it has its own life cycle as mentioned below:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/0950f6a305ea8a4bb76cf6ac8117e022608311bd.png)

1. Shipment Request Creation  
In this step, a user fills out a form to create a request in a web application, and from the backend API service, I would like to trigger a workflow that contains **Shipment Request Creation** node. The trigger will have a JSON payload of a shipment request.

2. Shipment update ERP  
Post the output of the previous node to the ERP system.

For this step, I could use the HTTP Request node.

Step 1 and Step 2 will happen immediately once the workflow is triggered.

1. Vehicle Assignment  
In this step, a user fills vehicle details against a specific shipment request in a web application, and from the backend API service, I would like to trigger a workflow that contains **Vehicle Assignment** node. The trigger will have a JSON payload of a shipment request.

**This step should get executed only when user action happens at other web applications and how to create a custom node which should wait for such trigger.**

1. Truck-In  
In this step, a user fills truck details during entry to the factory against a specific shipment request in a web application, and from the backend API service, I would like to trigger a workflow that contains **Truck In** node. The trigger will have a JSON payload of a shipment request.

**This step should get executed only when user action happens at other web applications and how to create a custom node which should wait for such trigger.**

1. Truck Out  
In this step, a user fills truck details during exit from the factory against a specific shipment request in a web application, and from the backend API service, I would like to trigger a workflow that contains **Truck Out** node. The trigger will have a JSON payload of a shipment request.

**This step should get executed only when user action happens at other web applications and how to create a custom node which should wait for such trigger.**

1. Shipment Provision to ERP  
Post the output of the previous node to the ERP system.

For this step, I could use the HTTP Request node and can execute it immediately after the previous node execution.

1. Proof of Delivery  
In this step, a user fills delivery details against a specific shipment request in a web application, and from the backend API service, I would like to trigger a workflow that contains **Proof of Delivery** node. The trigger will have a JSON payload of a shipment request.

**This step should get executed only when user action happens at other web applications and how to create a custom node which should wait for such trigger.**

Vehicle Assignment, Truck-In, Truck Out, Proof of Delivery are needs to be wait nodes in a single workflow and should be able to trigger via HTTP requests from other applications.

Please refer to the attached image for understanding the flow.  
Thanks Swapnil Satpathy

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [3 June 2022 13:07 UTC](https://discourse.nodered.org/t/how-to-implement-custom-node-that-wait-for-user-action-trigger-in-another-app/63418/2 "2022-06-03T13:07:56Z")

</div>

Hi, not really clear what you are asking here? Is it for advice on whether Node-RED can do this? Or how it might do it?

> [@swapnil\_satpathy](#):
>
> I am trying to do POC n8n for a workflow process.

Again, not really clear I'm afraid. `n8n` is a different tool to Node-RED. Are you saying that you are wanting to reproduce an `n8n` flow in Node-RED as a proof of concept?

Incidentally, Node-RED could certainly handle the flows you have outlined. It has several methods of presenting forms to users and can trigger flows off the back of the user form submissions.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 August 2022 13:08 UTC](https://discourse.nodered.org/t/how-to-implement-custom-node-that-wait-for-user-action-trigger-in-another-app/63418/3 "2022-08-02T13:08:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
