をSDK、私のAPIには私はaction.jsonファイルに次のアクションを持っている
{
"description": "Recommend movies",
"initialTrigger": {
"intent": "GIVE_RECOMMENDATION",
"queryPatterns": [
{"queryPattern": "What should I watch?"},
{"queryPattern": "Give me a recommendation"},
{"queryPattern": "Tell me a good ($String:genre)? movie"}
]
},
"httpExecution": {
"url":"my webhook URL here"
}
}
、私が持っている:
app.post('/', function(req, res){
let assistant = new ActionsSdkAssistant({request: req, response: res});
console.log('Current intent: ' + assistant.getIntent());
}
私がシミュレートしたとき私の行動は、 "私は何を見なければならない?"と言って、現在の意図は常に 'assistant.intent.action.TEXT'です。何故、GIVE_RECOMMENDATIONは決してそうでないのですか?