What is your goal?
OpenAI Vision analyses the picture, uses Sheets and finds the correct url (this works perfectly), and then the user should be redirected to that url after the picture form.
What is the problem & what have you tried?
Redirect doesnt work. The website is on Wordpress+Elementor. I used Webhook Action After Submit. I chatted with 3 different chatbots trying to resolve this. I think first there was a problem with timing because error was popping up before Make even finished the scenario. No luck. I’m a newbie…
Error messages or input/output bundles
Either “Webhook error” (I think this was a timing issue), or it just says Submitted, or nothing happens at all.
Screenshots (scenario flow, module settings, errors)
Hello @Peter_Smakic,
Please show us your Webhook Response module configuration.
Crucial element is proper setting of HTTP code and headers.
HTTP Code
Use 303 or 302.
Headers
Use Location header:
Key:
Location
Value:
redirect URL (for example: https://make.com)
Other possible issues:
You are using a lot of OpenAI modules in your scenario, which can take a lot of time to process. Most browsers have a limited timeout. If the waiting time exceeds the timeout- it won’t work.
There is a solution to this problem: for example use a database with user caching and some JS, but as you can assume- it is much more complex as it will require few scenarios connected and custom code.
Suggestions
If my solution won’t work, please simplify your scenario and test out a basic config- even just Custom Webhook and Webhook Response only; to find out where your additional problems are:
-
If this simple configuration won’t work either, copy the webhook address and trigger it in a new browser tab.
If it works- the problem is with your triggering service.
-
If the simple solution works but you can’t make it work with GPT modules- there is a timeout problem.
Webhook response module config:
Have a nice day,
Michal
1 Like
Welcome to the Make community!
Usually, this isn’t an issue with your module configuration.
The JavaScript on your website/plugin needs to be updated to handle the redirect URL returned from your webhook, and redirect the user on the client-side.
This is because a JavaScript script on your page called your scenario’s webhook asynchronously — that means your redirect header isn’t handled by the web browser as a form “POST” submission, but the script itself “intercepted” the form and sent it as a standalone request to your webhook. Thus, the script also needs to read the response from your webhook, and tell the client’s browser to do the redirect.
If you need further assistance, please provide the following:
- link to the page on your website
- a full list of Wordpress plugins you are using
— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!
1 Like