获取代理响应DialogFlow

所以我做了一个对话框的基本代理和一个简单的网页,让用户插入一个问题。 我也做了一个非常简单的节点服务器,用户可以提出问题。 现在,我想以编程方式将此问题提交给我的代理,并根据问题获得代理响应。 我该怎么做呢?

这是网页

<!DOCTYPE html> <html> <body> <form action="http://127.0.0.1:80/question" method='get'> Question: <br> <input type="text" name="questionValue"> <br> <input type="submit" value="send"> </form> </body> </html> 

这是服务器

 var express = require('express'); var app = express(); //handle get req on /question app.get('/question', function (req, res) { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); //process var q = req.query.questionValue; //write response res.write(q); //send response res.end(); }); //listen in a specific port app.listen((process.env.PORT || 80)); //check status console.log('Server running at http://localhost:80/');