Currently, the Webhook Response block only supports returning JSON responses (to the best of my knowledge). It would be valuable to have a variation or configuration option that allows returning file downloads directly from a webhook workflow.
Requested Functionality:
-
Ability to set custom
Content-Typeheaders (e.g.,application/octet-stream,text/csv,application/pdf) -
Ability to set
Content-Dispositionheader withattachment; filename="example.csv"to trigger browser downloads -
Support for returning raw bytes or streamed content instead of a JSON object
Use Case:
This would enable workflows that generate reports, exports, or other files to return them directly to the caller as a downloadable file—without requiring a separate file storage step or signed URL workaround. For example, a webhook that generates a CSV export could return it immediately as a file download rather than JSON containing the data or a link to a hosted file.
Suggested Implementation:
A "File Response" mode or separate "Webhook File Response" block that exposes configurable fields for:
-
Response body (bytes/content)
-
Content-Type
-
Filename (for Content-Disposition)
P.S. I certainly wouldn't mind having the ability to access the response headers directly (RE: Workflows - allow setting headers in response), as long as the response body could be formatted as something other than JSON.