NewBot Framework
The Javascript framework for developing chatbots
The current problem
How to have a universal code?
How to make your skills modular?
How to do unit tests?
Compatible on 15 platforms
Website
import code from './main.converse'
export default {
code
}
JavaScript code
Represents skill options
@Event('start')
start() {
> Hello
}
A conversational script
Represents dialogs between user and bot
Why a conversational script?
- Easy and quick to write
- Common writing for all platforms
- Script executed by user
- Save user progress
Start a new project
@Event('start')
start() {
@Format('image', 'https://media.giphy.com/media/YrZECW1GgBkqat6F0B/giphy.gif')
> Hello
}
Add rich content
Image, video, quick responses, carrousel, buttons, etc.
$name = ''
@Event('start')
start() {
> Quel est ton nom ?
Prompt()
$name = :text
> Bonjour { $name }
}
Prompt
And save the response in a global variable
Add a natural language understanding system
@Intent('booking', [
'Réserver un logement pour demain',
'Je veux une chambre'
])
booking() {
> Ok, je cherche des logements
}
Trigger an intention
@Intent('booking', [
'Book accommodation for tomorrow',
'I want a room'
])
booking() {
> Ok, I'm looking for accommodation for { :intent.date.value }
}
Retrieve entities
Compile
newbot build
Generate code for NodeJS and the browser
NewBot Cloud
Why deploy to NewBot Cloud ?
- Serverless
- Train the chatbot
- Quickly connect across multiple platforms
Demo
Thanks
NewBot Framework Présentation EN
By Samuel Ronce
NewBot Framework Présentation EN
- 1,134