Dialogflow问题,在步骤
下执行启用了Webhook请求对话框流及其请求
以下是图片:
Intent Webhook:
已启用Fullfillment:
Ngrok:
烧瓶方法:
@app.route("/webhook",methods=['POST'])
def main():
Req = request.get_json(silent=True, force=True)
print(Req.get('queryResult'))
Resp='test'
return make_response(jsonify({'fulfillmentText': Resp}))