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

Convert developer console template-weatherbot to ask/npx ACDL #504

Open
jduncalf opened this issue Feb 18, 2024 · 1 comment
Open

Convert developer console template-weatherbot to ask/npx ACDL #504

jduncalf opened this issue Feb 18, 2024 · 1 comment
Labels

Comments

@jduncalf
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request 
[ ] Other... Please describe: 

Expected Behavior

I've created a developer console based Node.js weatherbot custom Alexa skill. It deploys and tests fine.

I'm currently tasked with investigating conditional dialog branching and understand that I require ACDL. I'm following these instructions to convert my custom skil:

https://developer.amazon.com/en-US/docs/alexa/conversations/acdl-tutorial-convert-skill.html

I'd greatly appreciate some guidance with this issue please.

Regards,

Current Behavior

At the point where I execute (npx acc decompile). The command fails because of a missing ./skills-package/conversations directory. I therefore manually create this directory (Is this expected?).

I then execute (npx acc decompile) again. However, the generated (skill.acdl) file does not contain any of the weatherbot dialog. Additionally when I execute (npx acc compile), I receive the following:

Skill package directory: C:\Development\QWest\Alexa\Conversations\acdl\console\ConditionalPathTest\skill-package
skill-package\conversations\skill.acdl(37,4): Type 'com.amazon.alexa.schema.Thing' is not assignable to 'com.amazon.alexa.ask.conversations.Response<com.amazon.alexa.schema.Thing>'.
skill-package\conversations\skill.acdl(38,4): Type 'com.amazon.alexa.schema.Thing' is not assignable to 'com.amazon.alexa.ask.conversations.Response<com.amazon.alexa.schema.Thing>'.
skill-package\conversations\skill.acdl(39,4): Type 'com.amazon.alexa.schema.Thing' is not assignable to 'com.amazon.alexa.ask.conversations.Response<com.amazon.alexa.schema.Thing>'.
skill-package\conversations\skill.acdl(40,4): Type 'com.amazon.alexa.schema.Thing' is not assignable to 'com.amazon.alexa.ask.conversations.Response<com.amazon.alexa.schema.Thing>'.
skill-package\conversations\skill.acdl(41,4): Type 'com.amazon.alexa.schema.Thing' is not assignable to 'com.amazon.alexa.ask.conversations.Response<com.amazon.alexa.schema.Thing>'.
FAILURE

Here is the generated skill.acdl file:

namespace skill

import com.amazon.alexa.ask.conversations.SkillLevelResponses
import com.amazon.alexa.ask.conversations.skill
import com.amazon.alexa.ask.conversations.variations
import skill.AlexaConversationsBye
import skill.AlexaConversationsOutOfDomain
import skill.AlexaConversationsProvideHelp
import skill.AlexaConversationsRequestMore
import skill.AlexaConversationsWelcome

AlexaConversationsWelcome = variations(

)

AlexaConversationsOutOfDomain = variations(

)

AlexaConversationsBye = variations(

)

AlexaConversationsRequestMore = variations(

)

AlexaConversationsProvideHelp = variations(

)

mySkill = skill(
[

],
SkillLevelResponses {
welcome = AlexaConversationsWelcome,
out_of_domain = AlexaConversationsOutOfDomain,
bye = AlexaConversationsBye,
reqmore = AlexaConversationsRequestMore,
provide_help = AlexaConversationsProvideHelp
},
nothing,
nothing,
nothing,
nothing,
nothing,
nothing
)

CLI Snapshot
If applicable, add screenshots to help explain your problem.

Steps to Reproduce (for bugs)

Possible Solution

Your Environment and Context

  • ask-cli version: 2.30.7
  • Operating System and version:Windows 10
  • Node.js version used for development:20.11.0
  • NPM version used for development:10.2.4
@spkai spkai added the Bug label Feb 20, 2024
@jduncalf
Copy link
Author

Hi, is there any progress on this issue please? My organisation are very keen for me to research/prototype a solution with ACDL.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants