Example project for using the Jovo Framework ⭐️
Documentation - CLI - Contributing - Twitter
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.