Is this possible? Webhook to receive data in middle of flow

Describe the problem/error/question

I have not set this up because I don’t know if it is even possible.

I am using AI image/video generators through HTTP requests. Some of them offer a webhook to signal when the task is done.

Is there any way to have a webhook sitting in the middle of your flow, that will pick up data from the initial part of the flow.

e.g.

Edit Fields ==> HTTP request ==> Wait for Webhook ==> use response and Variables set in Edit Fields to carry on.

I did try a little test, but I can’t have the test webhook listening AND be able to trigger the other part manually.

Would I need to perhaps store data elsewhere in-between. e.g. AirTable or Sheets or something?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Maybe you can create a separate workflow that starts with the webhook and pass on the required data to the webhook so you can use it in the workflow?

The problem is I need data from two places - the earlier workflow, and the AI image creator.

I don’t know of any other n8n built-in way to achieve this. The next best solution might be to store the output in a database or something and fetch it from there as needed.

But, I could be wrong.

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