Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

ComputerScienceUniUrb/messaging-bottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bottery for messaging platforms

Port of Bottery by Kate Compton adapted for chatbots on modern messaging platforms. 🤖

📃 This work has been presented at CONVERSATIONS 2018, on 26 October 2018 in Saint Petersburg.

The goal of the original Bottery system was to help everyone, including non-technical users, be able to write simple and engaging contextual conversational agents and to test them out in an interactive simulation. This adaption of the system allows users to define conversational agents for messaging platforms and making them available online, while keeping true to the original focus on easy of use and accessibility to anybody.

The system is currently released as a proof of concept that makes Bottery agents communicate through a Telegram chatbot.

Installation and setup

Download the repository on your system (requires NodeJS). Navigate to the src directory and install all required NPM packages by running npm update.

Edit the tgbottery.js file, replacing the string in line

const slimbot = new Slimbot('TELEGRAM TOKEN');

with your own Telegram bot token.

Finally, setup a new Firebase project and activate the real-time database service. In your project's settings page, navigate to the "Service Accounts" tab and generate a new private key (see the official documentation). Download the JSON file containing your credentials to /src/serviceAccountKey.json.

Run the bottery agent (pull mode only is supported at the time):

nodejs tgbottery.js

Future work

The first public release will allow developers to easily deploy Bottery agents to chatbot platforms (including, at least, Telegram).

Future releases will introduce the following features:

  • Extend Bottery's pattern matching, replicating partial * matches, replicating how categories are specified in AIML-based chatbots; ✔
  • Extend Bottery's pattern matching to use Tracery grammars “in reverse” (i.e., an input string matches if it can be generated by the grammar);
  • Improve context-keeping providing facilities to perform “jumps” to agent states while keeping a stack-based memory, which will help splitting up agents into sub-procedures;
  • Adding support for additional messaging platforms.

Authors

Releases

No releases published

Packages

No packages published