Preprocessor on flows
Hi guys, in a flow, on can i pass, using an JS expression, the result of a preprocessor that i have on my flow?
i tried results.preprocessor or preprocessor.id for like only getting the id of the result and it says it's not defined on the response of the request.
Thank you
7 Replies
the result of the preprocessor will be passed to the inputs of your flow (result object keys must match flow input names)
you can then use them using flow_input.
Thank you , i understant it now
I am stuck on this. I am not sure I understand.
For context: my preprocessor output is :
{
"id": "bd6b22a3-00fd-4b22-84f2-8c4c4b415df1",
"domain": "https://counselect.com",
"company_name": "Counselect"
}
Now in the Input, I have setup the same variable names but I am not able to get the actual data from the preprocessor.
What am I doing wrong? 😦



the preprocessor is only run when triggered externally (e.g. webhook, http, websocket, etc...)
Ah I see. So it does not run when testing. Should I just leave the input fields blank in the input block?
args in the input block are just for testing therefore it doesn't affect the preprocessor
Ah bummer. Thanks a tonne. I have been breaking my head over this