akamaru

0.2.2 • 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 akamaru

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

53.9 kB

Total Files

66

Last publish

Collaborators

  • marcosflorencio