0.2.15 • Published 4 years ago

wa-chat-server-mluvii v0.2.15

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

wa-chat-server-mluvii

wa-chat-server adapter for the Mluvii client.

Adapter Registration

The initialization of the wa-chat-server with a registered wa-chat-server-mluvii adapter looks like this:

import { WAChatServer, Types } from 'wa-chat-server';
import { WAChatServerMluvii } from 'wa-chat-server-mluvii';

const server = new WAChatServer(
  (process.env as any) as Types.IWAChatServerConfig
);
server.addAdapter('mluvii', WAChatServerMluvii);
server.serve();

Configuration

The configuration is part of the wa-chat-server configuration where the keys relevant for wa-chat-server-mluvii have to be prefixed with adapter.mluvii..

  • username - User name for authentication for the Mluvii public API.
  • secret - Password used authentication for the Mluvii public API.
  • getTokenUrl - URL of the Mluvii API for fetching the JWT (defaults to https://app.mluvii.com/login/connect/token).
  • sendMessageUrl - URL of the Mluvii send API (defaults to https://app.mluvii.com/api/v1/Chatbot/{chatbotId}).
  • chatbotId - Chatbot ID

Supported Watson Features

The following Watson features are implemented:

  • Markup in response_type=='text' (it is converted to markdown)
  • response_type=='option'
  • Dismabiguation (response_type=='option')
0.2.15

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago