npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

voice-insights-sdk

v1.2.2

Published

VoiceInsights provides all Alexa developers powerful insights and tools to understand voice patterns, re-engage at-risk users, and build more compelling voice experiences.

Downloads

7

Readme

About

VoiceInsights provides all Alexa developers powerful insights and tools to understand voice patterns, re-engage at-risk users, and build more compelling voice experiences.

Get started at http://www.voicelabs.co

Getting started

Before you get started, you'll need an application token. Feel free to head over to http://insights.voicelabs.co/getstarted to create your analytics account and get your application token.

Typical integrations take less than 10 minutes, from account creation to seeing events in your analytics dashboard.

The Voice Insights SDK is dead simple and compatible with all popular Node.js Alexa frameworks:

  • The original Alexa Skills Kit: https://github.com/amzn/alexa-skills-kit-js
  • The new Alexa Skills Kit: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs
  • The alexa-app framework: https://www.npmjs.com/package/alexa-app

End User Docs

For detailed usage information and framework-specific API docs, head out here: http://insights.voicelabs.co/getstarted

Create your free analytics account and go to the docs section for more details: http://insights.voicelabs.co/analytics#/settings/docs

Getting help

If you need help installing or using the library, please contact VoiceLabs Support at [email protected] first. VoiceLabs' customer success team is well-versed in everything related to the SDK, and will reply within 24 hours.

If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!

Quick Example

The below is an example using the original Alexa Skills Kit.

Initializing

Within your Alexa src/ folder, issue the following command:

npm install voice-insights-sdk --save

Note that if uploading to Lambda, it will automatically look for your node dependencies inside the node_modules folder created by installing this SDK.

Once you've installed the module, you can initialize VoiceInsights and start tracking events:

var APP_ID = 'amzn1.echo-sdk-ams.app.********-****-****-****-************';
...

var VoiceInsights = require('voice-insights-sdk'),
    VI_APP_TOKEN = '<your_app_token>';

In your Alexa app's entry point, you will need to initialize VoiceInsights before tracking events:

  VoiceInsights.initialize(session, VI_APP_TOKEN);
Tracking usage

Note that several of the parameters passed in are optional, but highly recommended to get the most out of your skill's analytics:

VoiceInsights.track(intentName, intentMetadata, speechText, callback)

@param  {String} intentName -- this is the name of the event, usually the intent name
@param  {Object} intentMetadata -- an object usually containing at least the intent slots (optional)
@param  {String} speechText -- the speech text Alexa will speak to the user (optional)
@param  {Function} callback -- required callback returns (error, response)
@return {Object} VoiceInsights

You can track events by simply adding this single line when handling intent requests (or other types of requests):

"HelloWorldIntent": function (intent, session, response) {

  ...

  VoiceInsights.track(intent.name, intent.slots, speechOutput.speech,(error, response) => {
    response.ask(speechOutput, repromptOutput);
  });

}