How do I set fallbackIntentSensitivity in project.js


#1

Here is a sample from an Alexa language model:

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "my name",
            "modelConfiguration": {
                "fallbackIntentSensitivity": {
                    "level": "LOW"
                }
            },
            "intents": [
                {
                    "name": "AMAZON.HelpIntent",
                    "samples": [
                        "what can i do",
                        ...
                    ]
                },

I want to be able to set the fallbackIntentSensitivity in project.js:

  stages: {
    local: {
      endpoint: '${JOVO_WEBHOOK_URL}',
      alexaSkill: {
        skillId: process.env.LOCAL_SKILL_ID,
        askProfile: process.env.LOCAL_ASK_PROFILE,
        languageModel: {
          en: {
            invocation: process.env.LOCAL_INVOCATION_NAME,
            modelConfiguration: {
              fallbackIntentSensitivity: {
                level: 'HIGH',
              },
            },
          },
        },

When I build the model, the modelConfiguration section is not there. I think I need to do this in project.js (as opposed to in /models/en.json in an section: alexa\interactionModel\languageModel\modelConfiguration) because the section in project.js overrides the same section in en.json. Correct?


#2

It wasn’t supported until now. Thank you bringing this up.

Update the Jovo CLI: npm install jovo-cli -g and add the modelConfiguration property into your model file.

Here’s an example:

 "alexa": {
    "interactionModel": {
      "languageModel": {
        "modelConfiguration": {
          "fallbackIntentSensitivity": {
              "level": "LOW"
          }
        },
        "intents": [
          
        ]
      }
    }
  },