Socket
Socket
Sign inDemoInstall

botpress-api.ai

Package Overview
Dependencies
13
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    botpress-api.ai

Official API.AI Botpress module


Version published
Weekly downloads
0
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

ENVDefaultDescription
BOTPRESS_HTTP_TIMEOUT5000The timeout to API.AI requests
APIAI_TOKENnullOverride the API token

License

botpress-api.ai is licensed under AGPL-3.0

Keywords

FAQs

Last updated on 02 Dec 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc