question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No definition in code for custom slots

See original GitHub issue

(update: this is related to #114 )

One of the things that my team really likes about the alexa-app kit vs the official alexa-sdk, is that the schema and utterances are packaged right along with the code, so it’s a rather attractive, declarative sort of style.

We just noticed as we were working out good ways to deploy things, that there is a lack of any kind of definition for custom slot data.

This is something that I would be interested in working on, if the maintainers would be interested in it, but I’d also like to discuss what we would think would be the best way to handle doing it would be.

I think what we are thinking about doing, since Amazon is lacking any official way to update the “Interaction Model” page, is writing some code to automatically pull the schema, utterances, and slot definitions from the skill code, and then use curl or node or something to automatically push it to the Interaction Model page. (or at least generate some text files that we can copy/paste from in the meantime)

So, I’m thinking that we could define slots as objects or strings (to keep compatibility), if object of form

slots: {
    startDate: { type: 'AMAZON.DATE', },
    subject: { type: 'SUBJECTS', examples: [ 'discuss code', 'code design', 'implementation meeting', 'one-on-one meeting', 'all-hands meeting', 'meeting with boss', .... ] },
}

and then have slots() output something like:

slotName
(line-separated examples)
(blank line)
slotName2
(line-separated examples)
(blank line)
...

Also considering that we might want (a) function(s) that would return the schema, slots, and utterances as javascript objects, so that we can parse them directly from our build/deployment system.

What do the people with more experience with the app kit suggest?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rickwargocommented, Apr 6, 2017

I have implemented this already - just trying to find the time to create a PR. I may have some time this weekend.

0reactions
dblockcommented, Aug 19, 2017

Closed via https://github.com/alexa-js/alexa-app/pull/275, please try it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and Edit Custom Slot Types | Alexa Skills Kit
Overview of custom slot types​​ A custom slot type defines a list of representative values for the slot. Custom slot types are used...
Read more >
Alexa Custom Slot Type: No value in intent - Stack Overflow
The documentation says. A custom slot type is not the equivalent of an enumeration. Values outside the list may still be returned if...
Read more >
How to Add Custom Slot Types to Intents | Packt Hub
Now we have created an intent for Alexa to handle while using this skill. It is time to define what the custom slot...
Read more >
Using templates and slots - Web Components | MDN
Let's define a web component that uses our template as the content of its ... Note: An unnamed <slot> will be filled with...
Read more >
Signals & Slots | Qt Core 6.4.1
Signals and slots can take any number of arguments of any type. ... the code following the emit keyword will continue immediately, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found