rikudo

0.1.0 • Public • Published

chatbot framework

Bot Definition example

const botDefinition: BotDefinition = {
  allIntents: [
    {
      name: 'CAKE',
      training: ['cake', 'I want a cake']
    }
  ],
  language: 'en',
  states: [
    {
      name: 'START',
      startTexts: ['watch you want to?', 'hi, how i can help you'],
      actions: [{
        onIntent: 'CAKE',
        responses: ['nice, I have cakes']
      }],
      unknownIntentAction: {
        responses: [`i didn't understand`]
      }
    }
  ],
  resolvers: {
    getSession,
    saveSession
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i rikudo

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

82.4 kB

Total Files

66

Last publish

Collaborators

  • marcosflorencio