I've got the following action in my action.json file,
{
"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"
}
}
On my API, I've got:
app.post('/', function(req, res){
let assistant = new ActionsSdkAssistant({request: req, response: res});
console.log('Current intent: ' + assistant.getIntent());
}
When I simulate my action, and say "What should I watch?", the current intent is ALWAYS 'assistant.intent.action.TEXT'. Why is it never 'GIVE_RECOMMENDATION', like its supposed to be?