fedealconada / botpress-api.ai

Official API.AI Botpress module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

botpress-api.ai

The easiest way to create an API.AI bot with Botpress

Getting started

botpress install api.ai

The API.AI module should now be available in your bot UI

Features

This module has two modes: Default (amend incoming events) and Fulfillment (respond automatically).

Default Mode

This mode will inject understanding metadata inside incoming messages through the API.AI middleware.

Events will have an nlp property populated with the extracted metadata from API.AI.

Tip: Use this mode if you want to handle the conversation flow yourself and only want to extract entities from incoming text. This is great for programmers.

bp.hear({'nlp.action': 'smalltalk.person'}, (event, next) => {
  bp.messenger.sendText(event.user.id, 'My name is James')
})

Fulfillment Mode

This mode will check if there's an available response in the fulfillment property of the API.AI response and respond automatically. No code required.

Note: Works only with single-response text. We do not support Cards and quick responses.

Tip: This is great for non-programmers or if all your conversation logic is hosted on API.AI.

Community

Pull requests are welcomed! We believe that it takes all of us to create something big and impactful.

There's a Slack community where you are welcome to join us, ask any question and even help others.

Get an invite and join us now! 👉https://slack.botpress.io

License

botpress-api.ai is licensed under AGPL-3.0

About

Official API.AI Botpress module

License:GNU General Public License v3.0


Languages

Language:JavaScript 94.1%Language:CSS 5.9%