https://github.com/rsamaium/newbot
Powerful Scripting for Automated Conversations (Chatbot, etc.)
https://github.com/rsamaium/newbot
Last synced: 4 months ago
JSON representation
Powerful Scripting for Automated Conversations (Chatbot, etc.)
- Host: GitHub
- URL: https://github.com/rsamaium/newbot
- Owner: RSamaium
- Created: 2017-07-13T10:55:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T11:35:19.000Z (over 6 years ago)
- Last Synced: 2024-12-31T19:43:08.481Z (6 months ago)
- Language: JavaScript
- Size: 4.5 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ConverseScript
# Version
Alpha
# Description
Powerful Scripting for Automated Conversations (Chatbot)
# Features
* Creating quickly a Conversation Stream, Context and Prompt
* True script with variables, conditions, loops and functions. Syntax very close to Javascript
* Trigger a conversation according to an event (first conversation, no conversation found, etc.)
* Trigger a conversation according to a user's intention. The intention can be captured either with regular expression or with natural language (api.ai, wit.ai or custom api
* Address (or pointer) of the user in the conversation stream is stored in memory and can be saved in a database
* Keep a user's values in memory with global variables.
* Compare the values of a user with other users (a score for example)
* Chatbot response with custom formats
* Proactive message and broacast message
* Internationalization (with plurialize). It use https://languages.js.org
* Unit testing and function mock
* Possible to call Javascript functions
* Possible to put ConverScript on any framework (BotFramework, Botkit, etc)
* Put the @Action decorator on a function. Triggers a function if an action is performed
* Import / Export modules
* BotFramework integration
* Syntax color on Visual Studio Code (partial)# Todo
* Restriction input
* Trigger events or intention but according to conditions
* Function Returns a value
* API to manage the conversation flow (cancel, go back, go forward, etc.)
* Run an offline ConverseScript file# ConverseScript scenario example
```converse
@Event('start')
start() {
> Hello !
}
```