Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kiai

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiai

Kiai Voice Action Framework

  • 3.12.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 29 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc