Use the functions of a child competency
Let's use the skill of the previous chapter. We add a custom function.
skills/my-skill/my-skill.js
But we can use it in the parent scenario.
main.js
In main.converse
, we will then have:
As we can see, we use the mySkill
object to access functions.
Read directly a function of the conversational script
Without going through the functions
property, we can directly read a function from the conversational script of the child skill. Using the code above, we add these instructions to the script:
skills/my-skill/my-skill.converse
main.converse
Last updated