Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when overridding a Jovo Model intent for Alexa #289

Open
1 of 4 tasks
jrglg opened this issue Jan 24, 2022 · 4 comments
Open
1 of 4 tasks

Error when overridding a Jovo Model intent for Alexa #289

jrglg opened this issue Jan 24, 2022 · 4 comments
Assignees
Labels
Amazon Alexa Issues/PRs regarding Amazon Alexa functionality. Bug v4 Issues/PRs for v4 of the Jovo CLI

Comments

@jrglg
Copy link

jrglg commented Jan 24, 2022

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Expected Behavior

When a intent of Jovo Model is overridden in the specific platform part of the Jovo Model, boths intents are merged using some strategy.

Current Behavior

For Conversational Actions this is working with some bugs (#250)
For Alexa, an error is thrown when deploying.

Error log

Initializing build process
  ✔ Collecting platform configuration from project.js.
    Platforms: alexa
  ✔ Collecting Jovo language model files from ./models folder.
    Locales: es
Validating Alexa model files
  ✔ es
Building Alexa Skill files[stage: local]
  >> Path: ./build\local\platform.alexa
  ✔ Project files
  ✔ Interaction model
    es (es-ES)

Deploying Alexa Skill [stage: local]
  ✖ Uploading skill package

x Error: --------------------------------------------------------------------------------
›
› Message:
›  Errors occured while importing your skill package
›
› Module:
›  JovoCliCore
›
› Hint:
›  DuplicateIntentName: Intent "SomeIntentName" cannot be defined more than once in the intent schema.
›
›
› If you think this is not on you, you can submit an issue here: https://github.com/jovotech/jovo-cli/issues.

Your Environment

  • Jovo Framework version used:
    "@jovotech/platform-alexa": "^4.1.2",
    "@jovotech/platform-core": "^4.1.2",
    "@jovotech/platform-googleassistant": "^4.1.2",
  • Operating System: Windows 10
@rubenaeg
Copy link
Contributor

Hey @jrglg , could you post relevant portions of your language model?

@rubenaeg rubenaeg self-assigned this Jan 24, 2022
@rubenaeg rubenaeg added Bug v4 Issues/PRs for v4 of the Jovo CLI Amazon Alexa Issues/PRs regarding Amazon Alexa functionality. labels Jan 24, 2022
@jrglg
Copy link
Author

jrglg commented Jan 24, 2022

My model has +5000 lines right now, and it's in spanish, so would be quite complicate to understand it.
Here I have a reduced example to test it. Also, there's a overriden type for Google with Fuzzy Matching, but it's not used for this example (it's for #250)

{
  "version": "4.0",
  "invocation": "test overriding stuff",
  "intents": {
    "SomeIntent": {
      "phrases": [
        "this will be overridden"
      ]
    }
  },
  "alexa": {
    "interactionModel": {
      "languageModel": {
        "intents": [
          {
            "name": "SomeIntent",
            "samples": [
              "overriddensentence for alexa"
            ]
          }
        ]
      }
    }
  }
}

Please also note that it's just an example, and the real porpuse is to overpass some restrictions between platforms when using custom types like AMAZON.SearchQuery and Google's regexp, fuzzy_matching, etc.

@jrglg jrglg changed the title Error when overriding intent Error when overridding a Jovo Model intent for Alexa Jan 25, 2022
@jrglg
Copy link
Author

jrglg commented Apr 1, 2022

This would be interesting

@jrglg
Copy link
Author

jrglg commented Sep 1, 2022

@rubenaeg did you find anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Amazon Alexa Issues/PRs regarding Amazon Alexa functionality. Bug v4 Issues/PRs for v4 of the Jovo CLI
Projects
None yet
Development

No branches or pull requests

2 participants