GithubHelp home page GithubHelp logo

kiai's Introduction

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

kiai's People

Contributors

psimkmm avatar dependabot[bot] avatar evertmonk avatar giuseppesalvo avatar

Stargazers

Paul avatar

Watchers

Nuey San Waldman avatar Mient-jan Stelling avatar James Cloos avatar Utopia avatar Arjan van Wijk avatar Peter van der Noord avatar Tom Atterton avatar Lars van Braam avatar Richard avatar Andre | MediaMonks avatar  avatar Robert avatar Thi.js avatar Tim Struthoff avatar Elmar avatar  avatar Robert Slootjes avatar Jesse Linthorst avatar Hendrik-Jan de Harder avatar  avatar

kiai's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.