All Projects → dtesler → Node Api.ai

dtesler / Node Api.ai

Licence: mit
[DEPRECATED] Ultimate Node.JS SDK for api.ai

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Api.ai

Cortex4py
Python API Client for Cortex
Stars: ✭ 22 (+83.33%)
Mutual labels:  api-client
Chingudevelopersnetwork
The Zoo
Stars: ✭ 26 (+116.67%)
Mutual labels:  api-client
Spago
Self-contained Machine Learning and Natural Language Processing library in Go
Stars: ✭ 854 (+7016.67%)
Mutual labels:  natural-language-processing
Plex.py
Python interface for the Plex Media Server API
Stars: ✭ 22 (+83.33%)
Mutual labels:  api-client
Ciff
Cornell Instruction Following Framework
Stars: ✭ 23 (+91.67%)
Mutual labels:  natural-language-processing
Facepy
Facepy makes it really easy to use Facebook's Graph API with Python
Stars: ✭ 845 (+6941.67%)
Mutual labels:  api-client
Nlp With Ruby
Curated List: Practical Natural Language Processing done in Ruby
Stars: ✭ 907 (+7458.33%)
Mutual labels:  natural-language-processing
Genius Php
PHP library for Genius API (http://genius.com/developers)
Stars: ✭ 10 (-16.67%)
Mutual labels:  api-client
Drl4nlp.scratchpad
Notes on Deep Reinforcement Learning for Natural Language Processing papers
Stars: ✭ 26 (+116.67%)
Mutual labels:  natural-language-processing
Knowledge Graphs
A collection of research on knowledge graphs
Stars: ✭ 845 (+6941.67%)
Mutual labels:  natural-language-processing
Automatic Client
Client wrapper for the Automatic Link
Stars: ✭ 22 (+83.33%)
Mutual labels:  api-client
Spacy Transformers
🛸 Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy
Stars: ✭ 919 (+7558.33%)
Mutual labels:  natural-language-processing
Abclinuxuapi
API for http://abclinuxu.cz.
Stars: ✭ 8 (-33.33%)
Mutual labels:  api-client
Groovehq
Ruby gem for GrooveHQ api
Stars: ✭ 22 (+83.33%)
Mutual labels:  api-client
Visma.net
This is an open source API client for Visma.net Integrations
Stars: ✭ 10 (-16.67%)
Mutual labels:  api-client
Algoliasearch Client Javascript
⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
Stars: ✭ 907 (+7458.33%)
Mutual labels:  api-client
Puree
Metadata extraction from the Pure Research Information System.
Stars: ✭ 8 (-33.33%)
Mutual labels:  api-client
Language
Shared repository for open-sourced projects from the Google AI Language team.
Stars: ✭ 860 (+7066.67%)
Mutual labels:  natural-language-processing
Pke
Python Keyphrase Extraction module
Stars: ✭ 855 (+7025%)
Mutual labels:  natural-language-processing
Syntree2vec
An algorithm to augment syntactic hierarchy into word embeddings
Stars: ✭ 9 (-25%)
Mutual labels:  natural-language-processing

api.ai (node.js)

This plugin allows the integration of agents from the api.ai natural language processing service with your Node.js application.

Installation

  npm install --save api.ai

Usage

Initializing the module

Your client access token can be obtained in your Dashboard.

const apiai = require("api.ai");

const nlp = new apiai({
  token: "<your client access token>",
  session: "<unique session id>"
});

Handling responses

This module supports both callbacks and promises to deliver your data.

Callbacks:
nlp.text("Hello World!", function (error, response) {
  if (error) {
    // Handle Error
  }
  else {
    // Do what you wish with response
  }
});

Promises:
nlp.text("Hello World!")
.then(function (response) {
  // Do what you wish with response
})
.error(function (error) {
  // Handle error
});

Making requests

This module supports making 3 different types of requests to api.ai:

  • Text requests
  • Voice requests
  • User entities requests
Text requests

These are the simplest of the above. Simply send text to api.ai to be processed:

nlp.text("Hello World", callback);
Voice requests

To send a voice request, you may either provide a buffer or the path of an audio file:

nlp.voice("hello_world.wav", callback);

You may also specify additional options, for instance - language:

nlp.voice("hello_world.wav", {
  language: "en"
}, callback);
User Entity requests
nlp.userEntities(user_entities, callback);

This module was created by David Tesler, using the original Node.JS SDK for api.ai

Awesomeness supplied by api.ai.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].