Documentation

image
image
image
image
image
image

# 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

In the bot/skills folder, each skill is in a different folder. At the root of the file bot, 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 {
    code
}
image