I have an action defined like this in my actions.json
:
{
"description": "foo description",
"name": "FooAction",
"fulfillment": {
"conversationName": "my-app"
},
"intent": {
"name": "FooIntent",
"trigger": {
"queryPatterns": [
"foo",
]
}
}
}
When triggering adding actions.intent.MAIN
my server response looks like this:
{
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Welcome to My App! What would you like to do?",
"displayText": "Welcome to My App! What would you like to do?"
}
}
],
"suggestions": []
}
},
"possibleIntents": [
{
"intent": "FooIntent"
}
]
}
],
"conversationToken": "123"
}
The question:
Why do I only get back the actions.intent.TEXT
intent, when a user says "Talk to My App" then responds "foo"?
However, when a user says "Ask My App to foo" (without triggering actions.intent.MAIN
) I get the FooIntent
.
What am I doing wrong? Thanks!