Skip to content

monarch0111/botpress-api.ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ENV Variables

ENV Default Description
BOTPRESS_HTTP_TIMEOUT 5000 The timeout to API.AI requests
APIAI_TOKEN null Override the API token

License

botpress-api.ai is licensed under AGPL-3.0

About

Official API.AI Botpress module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.3%
  • CSS 5.7%