/bbot-php

conversational bot engine created by Botanic team

Primary LanguagePHP

BBot bot engine

Introduction

BBot is a conversational bot engine created by Botanic/SEED team that uses .Bot specification to define a conversational bot and .Flow standard to determine the flow of the conversation.

Part of the SEED token project. This is a sneak preview - there is more to come. See the Wiki for more information.

Version

This PHP engine is a proof of concept of Flow 1.0 and Flow 2.0. The current repository works with .Flow 1.0. A newer version will be released soon.

Features

  • Runs .Bot/.Flow v1.0 with plugin support for Text, Buttons, Media cards, Forms, Send email, Variable storing and comparisson operators, custom API calls.
  • Template engine support for text output compatible with Twig. Added weather report function.
  • Intent match plugins support for regular expressions, ChatScript patterns and Microsoft's Cognitive Service Luis.
  • Loads .Bot and .Flow from URIs file and http.

Included

  • RESTful web server implementation channel.
  • Web bot frontend for testing purposes.

Development setup

Requeriments:

  • Composer.
  • PHP 7.0 or higher.
  • MongoDB server.
  • ChatScript server (optional).

Steps to install:

git clone https://github.com/botanicinc/bbot-php.git
cd bbot-php
composer install
cp config.php-example config.php
vim config.php

To-do

  • Support .Flow v2.0 full specification.
  • Support .Bot v1.1.
  • Add plugins to support all .Flow v2.0 functions, filters and operators.
  • Add channels Telegram, Skype, Slack, Facebook, Signal, Kik and Twitter.
  • Add debug response with executed functions and its responses, matched paths and current node data.
  • Add commands for bot developer and channels to control bot flow and session.

Disclaimer

These files are made available to you on an as-is and restricted basis, and may only be redistributed or sold to any third party as expressly indicated in the Terms of Use for Seed Vault.

About the SEED Token Project

SEED democratizes AI by offering an open and independent alternative to the monopolies of a few large corporations that currently control conversational user interfaces (CUIs) and AI technologies. SEED's licensed, monetized open-source platform for bots on blockchain supports collaboration and creative compensation that will exceed the proprietary deployments from industry giants. We are also giving users back control of their personal data. Find out more about the SEED Token project at seedtoken.io. See the Connect section at the end for contact info.

Documentation

  • .Flow standard to know more about the standard used to create the conversation dialogs.
  • .Bot description to see the format of the configuration file used by BBOT to create bots.

Connect

Feel free to throw general questions regarding SEED and what to expect in the following months here on GitHub (or GitLab) at @consiliera (gaby@seedtoken.io) ☀️

Connect with us elsewhere

Seed Vault Code (c) Botanic Technologies, Inc. Used under license.