4.1.0 • Published 3 years ago

kiai v4.1.0

Weekly downloads
65
License
MIT
Repository
github
Last release
3 years ago

Kiai VoiceAction Framework

A framework for quickly and easily setting up and deploying Actions on Google projects.

Features include:

  • An easy-to-use API for defining flows
  • Running on and deploying to Express, Firebase or Google Cloud Functions
  • Multi-language support
  • Integrated support for voice-over and dialog variants
  • SFX, images, permissions, link outs, redirects, device capabilities
  • Tracking to Google Analytics and/or Amplitude

Planned features:

  • Support for Alexa skills
  • Deployment to Lambda
  • Login, events
  • Integrated DB support
  • Integrated notifications

Getting started

For a skeleton project including full boilerplate and example code, look here: Kiai Skeleton

$ npm add kiai

Create an ./index.js with the following code:

const Kiai = require('kiai').default;

const flows = {
  main: require('./flows/main'),
};

const app = new Kiai({ flows });

app.addPlatform(Kiai.PLATFORMS.DIALOGFLOW);

app.setFramework(Kiai.FRAMEWORKS.EXPRESS);
  • Add ngrok to your project.
  • Create a Dialogflow project.
  • In your Dialogflow project, create an intent called main_welcome and add the WELCOME event to it.
  • Run $ ngrok http 3000 to create a publicly accessible tunnel to your local machine on the default port of 3000, and paste the https URL it outputs in the Fullfilment section of your Dialogflow project, adding the /dialogflow endpoint.
  • Create a ./flows/main.js file and put in the following:
module.exports = {
  welcome(conv) {
    conv.say('Hello world!').end();
  },
};
  • Run index.js
  • In Dialogflow, click the link on the right to test your Action in the Actions on Google simulator.

Documentation:

Getting Started

4.1.0

3 years ago

4.0.0

3 years ago

3.18.1

3 years ago

3.18.0

3 years ago

3.18.2

3 years ago

3.17.0

3 years ago

3.16.2

3 years ago

3.16.1

3 years ago

3.16.0

3 years ago

3.15.1

3 years ago

3.15.0

3 years ago

3.14.2

3 years ago

3.14.1

3 years ago

3.14.0

3 years ago

3.13.5

3 years ago

3.13.4

3 years ago

3.13.3

3 years ago

3.13.2

3 years ago

3.13.1

3 years ago

3.13.0

3 years ago

3.12.1

4 years ago

3.12.0

4 years ago

3.11.10

4 years ago

3.11.9

4 years ago

3.11.8

4 years ago

3.10.0

4 years ago

3.9.0

4 years ago

3.8.0

4 years ago

3.7.2

4 years ago

3.7.1

4 years ago

3.7.0

4 years ago

3.6.1

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.2

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.0

5 years ago

3.2.3

5 years ago

3.2.1

5 years ago

3.2.2

5 years ago

3.2.0

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.4

5 years ago

2.5.3

5 years ago

2.5.2

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.10.0

5 years ago

1.9.1

5 years ago

1.8.0

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.5

6 years ago

0.1.2

6 years ago

0.1.3

6 years ago