https://github.com/codeforequity-at/botium-connector-teneo
Botium Connector for Teneo
https://github.com/codeforequity-at/botium-connector-teneo
Last synced: 8 months ago
JSON representation
Botium Connector for Teneo
- Host: GitHub
- URL: https://github.com/codeforequity-at/botium-connector-teneo
- Owner: codeforequity-at
- License: mit
- Created: 2020-04-21T15:26:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-13T13:04:55.000Z (over 2 years ago)
- Last Synced: 2025-03-28T20:48:45.897Z (about 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Botium Connector for Teneo
[](https://nodei.co/npm/botium-connector-teneo/)
[](https://app.codeship.com/projects/393729)
[](https://badge.fury.io/js/botium-connector-teneo)
[]()
This is a [Botium](https://www.botium.ai) connector for testing your [Teneo](https://www.artificial-solutions.com/teneo) chatbot.
__Did you read the [Botium in a Nutshell](https://medium.com/@floriantreml/botium-in-a-nutshell-part-1-overview-f8d0ceaf8fb4) articles? Be warned, without prior knowledge of Botium you won't be able to properly use this library!__
## How it works
Botium connects to the API of your Teneo chatbot.
It can be used as any other Botium connector with all Botium Stack components:
* [Botium CLI](https://github.com/codeforequity-at/botium-cli/)
* [Botium Bindings](https://github.com/codeforequity-at/botium-bindings/)
* [Botium Box](https://www.botium.at)
## Requirements
* **Node.js and NPM**
* a **Teneo bot**
* a **project directory** on your workstation to hold test cases and Botium configuration
## Install Botium and Teneo Connector
When using __Botium CLI__:
```
> npm install -g botium-cli
> npm install -g botium-connector-teneo
> botium-cli init
> botium-cli run
```
When using __Botium Bindings__:
```
> npm install -g botium-bindings
> npm install -g botium-connector-teneo
> botium-bindings init mocha
> npm install && npm run mocha
```
When using __Botium Box__:
_Already integrated into Botium Box, no setup required_
## Connecting Teneo chatbot to Botium
Process is very simple, you have to know just the endpoint URL for your chatbot.
Create a botium.json with this URL in your project directory:
```
{
"botium": {
"Capabilities": {
"PROJECTNAME": "",
"CONTAINERMODE": "teneo",
"TENEO_URL": "..."
}
}
}
```
To check the configuration, run the emulator (Botium CLI required) to bring up a chat interface in your terminal window:
```
> botium-cli emulator
```
Botium setup is ready, you can begin to write your [BotiumScript](https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting) files.
## How to start samples
There is a sample available in [samples](./samples) with Botium Bindings.
* Adapt botium.json in the sample directory if required (change URL)
* Install packages, run the test
```
> cd ./samples
> npm install && npm test
```
## Additional Input Parameters
#begin
UPDATE_CUSTOM TENEO_PARAM|usertimezone|CEST
## Assert Output Parameters
#bot
JSON_PATH $.input.parameters.usertimezone|CEST
JSON_PATH $.output.parameters.displayWidget.time
## Supported Capabilities
Set the capability __CONTAINERMODE__ to __teneo__ to activate this connector.
### TENEO_URL
Teneo chatbot endpoint url
### TENEO_STATIC_PARAMS
Static parameters to add as endpoint url query parameters
"TENEO_STATIC_PARAMS": {
"staticparam1": "staticvalue1",
"staticparam2": "staticvalue2"
}