An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Botium Connector for Teneo

[![NPM](https://nodei.co/npm/botium-connector-teneo.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/botium-connector-teneo/)

[![Codeship Status for codeforequity-at/botium-connector-teneo](https://app.codeship.com/projects/815af8a0-66b2-0138-276a-365ec6c7a2d7/status?branch=master)](https://app.codeship.com/projects/393729)
[![npm version](https://badge.fury.io/js/botium-connector-teneo.svg)](https://badge.fury.io/js/botium-connector-teneo)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()

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"
}