Skip to content

Jovo example project integrating dynamic entities in Alexa Skills with hooks

License

Notifications You must be signed in to change notification settings

FlorianHollandt/jovo-example-dynamicEntities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jovo Framework

Example project for using the Jovo Framework ⭐️

Documentation - CLI - Contributing - Twitter


Example: Dynamic entities

This example project (based on the 'HelloWorld' template) implements dynamic entities by using hooks, as proposed by Alexa Champion Mark Tucker in the Jovo Community Forum.

To make it work, clone this repo, cd into the folder, and then in the terminal do:

$ npm install
$ jovo build
$ jovo deploy -t info
$ jovo deploy -t model

Now to test it, say

Alexa, open Dynamic Entities!

Alexa will welcome you and ask you for your name, while in the background updating your language model with the dynamic entities from ./src/hooks/dynamicEntitiesHook.js (using a Dialog.UpdateDynamicEntities directive with the REPLACE behavior). If you respond with

Peter Parker

your utterance will be reolved with the dynamic slot value Peter Parker, which the Skill then uses to greet you.

Congrats, if you made it to this point, you successfully used dynamic entity resolution!

For hygiene and best practice reasons, the dynamic entities are cleared when the Skill session ends (via the same hook), using the CLEAR behavior of the Dialog.UpdateDynamicEntities directive.

About

Jovo example project integrating dynamic entities in Alexa Skills with hooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published