In my case:
I forced from third party website to have callback page for post data to it to show them to my users. (Some payment data)
In other hand I force for getting that data in my workflow, give them my “webhook address” in my installed n8n.
My Question is that: Are there any way to customize webhook message page?
For example can I use html code to design it or can I redirect my users to another page with this address: “http://mysite.com/callback”
The message of webhook now is: {"message":"Workflow got started."}
@jan re this feature request, the meta redirect workflow here should be fine for my needs in the interim.
However, I’m struggling to get the same flow as you have above, with an additional MailGun node added in. In which position should I place it / what should be the last node in order to return the HTML data?
You can place it anywhere before the “Set” node. As the Webhook-Node is set to return the data of the last node and the last two nodes together (Set & Move Binary Data) make in this example sure that it is HTML. So to keep that behavior it is important that they stay at the end.
If you have any other node, in the end, the workflow returns the output of that node and so probably not anymore what you want.
I’m trying to implement a similar redirect, but I need to send the user to an existing page, rather than raw html? It it possible to initiate a 303 redirect somehow?
Depends. If you know from the start where to redirect to “yes”. In this case is it possible to set the Response Code to 303 and add a Response Header with key Location and value to wherever you want to redirect to on the Webhook-Node.
If you want set the destination dynamically, what I expect, then it is sadly not possible yet. It is however planned in the future to be able to set also Response Code and Response Header dynamically at a later point on the workflow.
Awesome. Thank you! That’s what I’ve done for now. Hopefully in the future we could send response headers after the workflow has completed? For instance to send error codes if a workflow errors out.