Hello, I have a situation where I want certain intents in my language model to only be present on Google Actions. I was referencing this doc for how to add platform-specific elements to the model.
I also needed this to be a global intent so my googleAssistant
object looks somewhat like this:
{
"googleAssistant": {
"custom": {
"global": {
"NextIntent": {
"handler": {
"webhookHandler": "Jovo"
}
}
},
"intents": {
"NextIntent": {
"trainingPhrases": ["next", "skip"]
}
}
}
}
}
This almost accomplished what I needed, except when deploying, the training phrases didn’t actually show up in the console. I was getting validation errors such as Trigger phrase is missing for custom intent 'NextIntent'. Locale: 'en-US'.
When looking through the platforms
directory, after a jovo build
, NextIntent.yaml
is generated and present in platforms/googleAction/custom/intents
, but not to the locale subdirectories such as platforms/googleAction/custom/intents/en-GB
.
Copying the .yaml file for the intent to the respective directories seems to have resolved this issue. I could make a script to copy these files after a jovo build
, but just wanted to check if there is anything I am doing incorrectly with the language model that causes this to happen.
Thanks!