Write a skill

A skill consists of three files:

  • your-skill.js: a Javascript object that characterizes the skill
  • your-skill.converse: the conversational scenario
  • your-skill.spec.js: the unit test of the scenario

Folder structure

Generally, the structure is as follows:

! [NewBot Struture] (/ images / code / directories.png)

In the bot/skills folder, each skill is in a different folder. At the root of the bot folder, we have the main skill. This is the parent scenario

Javascript object

Export an object by specifying the conversational scenario concerned:

import code from './your-skill.converse'

export default {