# Have workflows wait for webhook response for better ux and sequential runs

**URL:** <https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810>\
**Category:** Feature Requests\
**Tags:** feature-request\
**Created:** [June 7, 2024, 10:21am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810 "2024-06-07T10:21:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenzo\_Boers](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lorenzo_boers/32/814_2.png) [@Lorenzo\_Boers](https://community.noloco.io/u/Lorenzo_Boers)\
**Post date:** [June 7, 2024, 10:21am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810/1 "2024-06-07T10:21:35Z")

</div>

We occasionally execute complex workflows in [Make.com](http://Make.com) triggered by a button press in Noloco. Currently, when a scenario in [Make.com](http://Make.com) takes a long time to complete, Noloco only shows a success notification when the webhook is sent, without immediately displaying the result of the scenario. This can be confusing for the user, as they don’t see the outcome of their action right away.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/1X/0c69ca8fc10fdb0bbb03737e813c5804f8763205.png)

We would like to request that the webhook step in Noloco has the ability to wait for a response before proceeding. This enhancement would allow the user to see a loading animation indicating that the workflow is in progress. The success notification should only appear once the changes made by the [Make.com](http://Make.com) scenario are visible in Noloco. Additionally, this would enable the running of multiple [Make.com](http://Make.com) scenarios sequentially within a single workflow.

Example use Case:  
Consider a scenario where a user generates and sends a PDF from an order in Noloco by pressing a button. The workflow would proceed as follows:

- The user presses the button to generate the PDF.
- A workflow starts, triggering a [Make.com](http://Make.com) scenario to generate the PDF and add it to the database.
- The [Make.com](http://Make.com) scenario responds with a 200 status code once the PDF is generated and stored.
- The workflow then continues to the next step, which involves sending the PDF to the customer.  
(Throughout this process, the Noloco user sees a loading animation, indicating that the operation is ongoing.)
- Once the PDF is sent and the [Make.com](http://Make.com) scenario responds, the workflow completes.
- The user receives a success notification and can immediately see the generated PDF in Noloco.

Benefits:

- Enhanced user experience by providing clear feedback during long-running operations.
- Improved workflow management by allowing sequential execution of multiple [Make.com](http://Make.com) scenarios (and other operations outside noloco).
- Reduced confusion and increased satisfaction as users can see the immediate results of their actions.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [June 7, 2024, 11:55am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810/2 "2024-06-07T11:55:42Z")

</div>

Hey @Lorenzo_Boers - workflows run asynchronously, so this won’t be possible.

They are placed on a queue and ran as soon as possible.

If you want to improve the user experience, we typically suggest creating a loading state, so the user knowns the workflow isn’t done yet.

This could be updating a status field to ‘Loading’ and then in your workflow put it back to ‘Complete’

Then using visibility rules to show/hide a notice

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Boers](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lorenzo_boers/32/814_2.png) [@Lorenzo\_Boers](https://community.noloco.io/u/Lorenzo_Boers)\
**Post date:** [June 10, 2024, 8:50am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810/3 "2024-06-10T08:50:24Z")

</div>

I understand. So, if I have this right, I would need to create an additional “status” field in the database with states such as “loading” and “ready” for a specific operation. Then, I can use dynamic visibility to show a loading notice in the record where the user expects to see the data.

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [June 10, 2024, 9:01am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810/4 "2024-06-10T09:01:11Z")

</div>

Exactly!

If you want to see a great example of this, @sonorus does this very nicely in this video

[![](https://europe1.discourse-cdn.com/flex005/uploads/noloco/original/1X/ff98e64e213da381f1de7d726057e132535fa4de.jpeg "Automating document extraction with AI and No-Code App with Noloco") ](https://www.youtube.com/watch?v=x1avMyZ-EAg&t=879)

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Boers](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lorenzo_boers/32/814_2.png) [@Lorenzo\_Boers](https://community.noloco.io/u/Lorenzo_Boers)\
**Post date:** [June 10, 2024, 9:09am UTC](https://community.noloco.io/t/have-workflows-wait-for-webhook-response-for-better-ux-and-sequential-runs/810/5 "2024-06-10T09:09:01Z")

</div>

Perfect @darragh. I already have several yes/no fields in my database that trigger different automations and reset after the operation runs successfully. So, I can link a loading notice directly to that! This approach also gives us more flexibility in how we display the notice or other elements. Thanks!
