How can I make a workflow which returns its inputs from the starting webhook, and the output of the respond to webhook node?
I am calling N8N workflows from another page I have using the webhook node and to add the workflow activation, I need the input and output parameters of the workflow itself.
I could go in to every workflow and get the information manually, but is there a better way for it?
Example workflow
In this case I would like to get the body element of the webhook input and the output elements so something like this:
"input":{
"data": {
"input1": string,
"input2": int
}
},
"output":{
"myoutput1": string,
"myoutput2": boolean
}
It doesn’t really matter what format it has, I just need the input and output variables collected in one place.
Is there a way to make this automatic for all workflows?
Thanks in advance.
Information on my n8n setup
- n8n version: 1.88.0
- Running n8n via: Docker
- Operating system: Windows 11