This is a Botium connector for testing your Botpress chatbot.
Did you read the Botium in a Nutshell articles ? Be warned, without prior knowledge of Botium you won't be able to properly use this library!
Botium uses the Botpress built-in JSON channel to connect to your chatbot.
It can be used as any other Botium connector with all Botium Stack components:
When using Botium CLI:
> npm install -g botium-cli
> npm install -g botium-connector-botpress
> botium-cli init
> botium-cli run
When using Botium Bindings:
> npm install -g botium-bindings
> npm install -g botium-connector-botpress
> botium-bindings init mocha
> npm install && npm run mocha
When using Botium Box:
Already integrated into Botium Box, no setup required
Open the file botium.json in your working directory and add the Botpress chatbot connection settings.
{
"botium": {
"Capabilities": {
"PROJECTNAME": "<whatever>",
"CONTAINERMODE": "botpress",
"BOTPRESS_SERVER_URL": "...",
"BOTPRESS_BOTID": "..."
}
}
}
Botium setup is ready, you can begin to write your BotiumScript files.
Set the capability CONTAINERMODE to botpress to activate this connector.
The Botpress server url (without any path, just http/https, servername, port)
The Botpress bot id
If set, this userId will be used. Otherwise, for each convo a new userId is generated
Set this to true for testing the resolved intents only instead of the output text