Dialogflow model? en? en-US?

dialogflow

#1

I make a model for alexaSkill.
in “en-US.json”, “en-AU.json”, …

and deploy to dialogflow but don’t working

dialogflow default language : en is empty.
maybe en-US.json <-> en.json …

so I added a en.json model.
added en.json. dialogflow deploy is sussces and filled ‘en’ intent
but alexaSkill is build fail.

What should I do?

✔ Initializing build process
      ✔ Collecting platform configuration from project.js
        Platforms: alexaSkill, googleAction
      ✔ Collecting Jovo Language Model files from /models folder
        Locales: en-AU, en-CA, en-GB, en-IN, en-US, en
      ✔ Validate Model-Files
        ✔ en-AU
        ✔ en-CA
        ✔ en-GB
        ✔ en-IN
        ✔ en-US
        ✔ en

    ❯ Updating Alexa Skill project files (stage: local)
      Path: ./platforms/alexaSkill
      ✔ Updating Skill Manifest
        Path: ./platforms/alexaSkill/skill.json
      ❯ Updating Alexa Interaction Model
        Path: ./platforms/alexaSkill/models
        ✔ en-AU
        ✔ en-CA
        ✔ en-GB
        ✔ en-IN
        ✔ en-US
        ✖ en
         -> Could not retrieve locales mapping for language en

felixui-MacBook-Pro:pium_ai_speaker felix$ jovo build -p googleAction

jovo build: Create and update platform specific files in /platforms folder

Learn more: https://jovo.tech/docs/cli/build

✔ Initializing build process
  ✔ Collecting platform configuration from project.js
    Platforms: googleAction
  ✔ Collecting Jovo Language Model files from /models folder
    Locales: en-AU, en-CA, en-GB, en-IN, en-US, en
  ✔ Validate Model-Files
    ✔ en-AU
    ✔ en-CA
    ✔ en-GB
    ✔ en-IN
    ✔ en-US
    ✔ en

✔ Updating Google Action project files (stage: local)
  Path: ./platforms/googleAction
  ✔ Updating Dialogflow Agent
    Path: ./platforms/googleAction/dialogflow
    ✔ agent.json
    ✔ package.json
  ✔ Updating Language Model
    Path: ./platforms/googleAction/dialogflow/intents, ./platforms/googleAction/dialogflow/entities
    ✔ en-AU
    ✔ en-CA
    ✔ en-GB
    ✔ en-IN
    ✔ en-US
    ✔ en


#2

You can have a single en.json file for Dialogflow and then have the Jovo CLI turn that into separate files that work for Alexa: https://www.jovo.tech/docs/project-js#different-locales


#4

thanks for reply.

how to
en-US.json to deploy alexaSkill
en.json to deploy google action


#5

What I’m seeing here is that you have en.json and all the en-AU.json etc. in the models folder.

My question is: Do you want to get rid of all the locales and just have en-AU, en-US etc. generated from the en? Then I would delete all the other files (+ potentially delete the files in the platforms folder) and run the build process again.