So you followed one of these tutorials and now have to deploy your own Botium Connector to Botium or Botium Core
Depending on which Botium flavour you are using, there are different steps to do to use your custom Botium Connector.
Botium Core
First, setup a test project with Botium Bindings or Botium CLI (see the usage instructions in the respective Git repository).
Then place your code in a file named botium-connector-myapi.js (replace myapi with a descriptive name of your api) and reference this file as CONTAINERMODE capability in your botium.json:
{
"botium": {
"Capabilities": {
"PROJECTNAME": "Custom Connector Sample",
"CONTAINERMODE": "./botium-connector-myapi.js",
"MYAPI_URL": "https://demo.botiumbox.com/iambotium/reply"
}
}
}
You can find an example project in the Botium Core repository on Github.
Botium >= 2.6.1
Place your code in a file named botium-connector-myapi.js (replace myapi with a descriptive name of your api) in the resources directory of the Botium installation, or use the File Browser in the Settings menu to upload this file to the resources directory. Restart Botium server afterwards and reload your browser window. You will now have your connector available in the list and can set the configuration options exported from your connector file:

Botium <= 2.6.0
-
Place the connector file in the resources directory of your Botium Box installation
-
In Botium, register a new Chatbot with any technology (will be overwritten later)
-
In the Chatbot settings, open the Connector settings and switch technology to “Other (Advanced Settings)”
-
Overwrite the capability CONTAINERMODE with the filename of your connector file (“myconnector.js”)
-
Add any other capabilities your chatbot requires

Comments
0 comments
Please sign in to leave a comment.