NewBot Framework
The Javascript framework for developing chatbots
How to have a universal code?
How to make your skills modular?
How to do unit tests?
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?
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 ?