DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • The Promise of Platform Engineering
  • Building Your Own Ledger: A Solo Developer's Answer to Time and Money Chaos
  • Five Nonprofit & Charity APIs That Make Due Diligence Way Less Painful for Developers
  • Unraveling Lombok's Code Design Pitfalls: Exploring Encapsulation Issues

Trending

  • Dear Micromanager: Your Distrust Has a Job; It’s Just Not the One You’re Doing
  • From AI Chaos to Control: Building Enterprise-Grade LLM Gateways With MuleSoft Anypoint
  • Key Takeaways From Integrating a RAG Application With LangSmith
  • From Indicators to Insights: Automating IOC Enrichment Using Python and Threat Feeds
  1. DZone
  2. Data Engineering
  3. Databases
  4. How to Create Alexa Custom Slot Types

How to Create Alexa Custom Slot Types

Int his article, see a tutorial that explains how to create Alexa custom slot types.

By 
Xavier Portilla Edo user avatar
Xavier Portilla Edo
DZone Core CORE ·
Updated Mar. 20, 20 · Tutorial
Likes (6)
Comment
Save
Tweet
Share
18.4K Views

Join the DZone community and get the full member experience.

Join For Free

The usability of the skill directly depends on how well the sample utterances and custom slot values represent real-world language use.

As Alexa best practices say:

"Building a representative set of custom values and sample utterances is an important process and one that requires iteration. During development and testing, try using many different phrases to invoke each intent. If you can observe other users during testing, note the phrases that they speak to invoke each intent. Continually update the custom values and sample utterances file to ensure that it includes instances of your users’ most common phrasings."

Custom Slot Types

First of all, what you need is to login to Amazon Alexa Console. Once you have completed this step, you must access any of your skills. If you don’t have a skill created yet, it’s time to create it.

Now let’s create your own custom slot type.

In the Build section on the left, there is an option called “Slot types,” as you can see in the image below. Click there to view the options that Alexa developer console offers to us.

 Build section

Clicking the “Add” button, you will find a new section with two options:

  • Create custom value type: This is the option we need in order to create a full new slot, which will be ready to use in our skill
  • Use an existing slot type from Alexa’s built-in library: Here, you have all the slots that Amazon has made for you like months, days of the week, movies, etc.

 Creating a slot

We are going to focus on the first option. Now you have to set the name of your new custom slot type and then click on “Create custom slot type button”:

You have two ways to add custom values to this list:

  • With a bulk edit: This option is very useful for a large set of values. It allows us to enter values with a comma-separated or .csv style. One slot value per line (formatted as VALUE, ID, SYNONYM1, SYNONYM2, …).

     Bulk edit

  • Entering one by one your values: To enter a value manually is as easy as filling in the field you have in that screen and then clicking enter. After entering this new value, you can set up the ID and the synonyms (which is the most important part of the custom value!)

     Creating a slot

Here you have an example with all pokemons properly set in the Alexa Developer Console:

 List of Pokemons

I have created some custom values for you if you want to reuse it. You can find them in this post.

That’s all, folks! I hope it will be useful! If you have any doubts or questions do not hesitate to contact me or put a comment below!

Amazon Alexa Console (video game CLI) Intent (military) dev Phrase (software) Build (game engine) IT Synonym (database)

Opinions expressed by DZone contributors are their own.

Related

  • The Promise of Platform Engineering
  • Building Your Own Ledger: A Solo Developer's Answer to Time and Money Chaos
  • Five Nonprofit & Charity APIs That Make Due Diligence Way Less Painful for Developers
  • Unraveling Lombok's Code Design Pitfalls: Exploring Encapsulation Issues

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook