I need to automatically redirect the user to an URL after they answer a survey with Watson assistant. What would be the easiest way to do it?
I use this code in IBM function but I got a 400 error:
var http = require("http");
http.createServer(function(req, res) {
res.writeHead(301,{Location: 'http://venomcb.ca'});
res.end();
}).listen(8888);
Thanks for your help.