npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

botium-connector-chatlayer

v0.0.9

Published

Botium Connector for Chatlayer.ai

Readme

Botium Connector for Chatlayer.ai

NPM

Codeship Status for codeforequity-at/botium-connector-chatlayer npm version license

This is a Botium connector for testing your Chatlayer.ai 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!

How it works

Botium automatically starts a webhook and connects to the Chatlayer.ai REST API to receive chatbot responses.

It can be used as any other Botium connector with all Botium Stack components:

Requirements

  • Node.js and NPM
  • a Chatlayer.ai bot
  • a project directory on your workstation to hold test cases and Botium configuration

Install Botium and Chatlayer.ai Connector

When using Botium CLI:

> npm install -g botium-cli
> npm install -g botium-connector-chatlayer
> botium-cli init
> botium-cli run

When using Botium Bindings:

> npm install -g botium-bindings
> npm install -g botium-connector-chatlayer
> botium-bindings init mocha
> npm install && npm run mocha

When using Botium Box:

Already integrated into Botium Box, no setup required

Connecting Chatlayer.ai chatbot to Botium

Chatlayer.ai has an asynchronous communication model: the bot response is not part of the HTTP/JSON response, but it is sent to a webhook. This webhook is started automatically by Botium, and it has to be registered in Chatlayer first. You have to take care that this webhook is available from the public internet.

Confiure the webhook

There are two possibilities to set up the webhook endpoint.

Proxy server

Configure the webhook with the capabilities SIMPLEREST_INBOUND_PORT and SIMPLEREST_INBOUND_ENDPOINT. When starting Botium, the webhook is available at http://local-ip-address:inbound-port/input-endpoint. If your workstation is not available from public internet, you can use a service like ngrok to make it public:

> ngrok http 1234

The webhook is available at https://something.ngrok.io/input-endpoint then.

Proxy server with redis

Configure the webhook with the capability SIMPLEREST_INBOUND_REDISURL. Then start and inbound proxy with botium-cli.

> botium-cli inbound-proxy

 redis://127.0.0.1:6379
 Botium Inbound Messages proxy is listening on port 45100
 Botium Inbound Messages endpoint available at http://127.0.0.1:45100/

To make it public you can use ngrok:

> ngrok http 45100

The webhook is available at https://something.ngrok.io then.

If your proxy server is up and running, then you can register the webhook URL together with a verify token of your choice at Chatlayer.ai.

Create a botium.json in your project directory:

{
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "<whatever>",
      "CONTAINERMODE": "chatlayer",
      "CHATLAYER_URL": "..."
      "CHATLAYER_VERIFY_TOKEN": "...",
      "CHATLAYER_ACCESS_TOKEN": "...",
      "SIMPLEREST_INBOUND_REDISURL": "redis://127.0.0.1:6379"
    }
  }
}

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 files.

How to start samples

  • Adapt botium.json in the sample/simple directory
  • Install packages, start inbound proxy and run the test.

In this sample we use the webhook configuration which is written under Proxy server with redis

> cd ./samples/simple
> npm install
> npm run inbound
> npm test

Supported Capabilities

Set the capability CONTAINERMODE to chatlayer to activate this connector.

CHATLAYER_URL*

Chatlayer API url

CHATLAYER_CHANNEL_ID *

Chatlayer Channel Identifier. You can find this information in the Configure Webhook dialog on chatlayer surface.

CHATLAYER_VERIFYTOKEN *

Chatlayer Webhook verify token.

CHATLAYER_ACCESS_TOKEN *

You generate one under the Tokens menu on chatlayer surface.

CHATLAYER_SESSION_DATA

Optionally you can set session data as a json object.

CHATLAYER_WELCOME_MESSAGE

Set it true if your bot has welcome/intro message.

CHATLAYER_BOT_ID

For detailed nlp data the bot id has to be set up. You can copy this from the url of your chatbot on chatlayer surface. E.g. my url is 'https://app.chatlayer.ai/bots/abcdabcd/DRAFT' then the bot id is: abcdabcd

CHATLAYER_VERSION

Set which version you use. It can be DRAFT of LIVE. The default value is DRAFT.

CHATLAYER_LANGUAGE

The language of your chatbot. The default value is en.

SIMPLEREST_INBOUND_PORT

SIMPLEREST_INBOUND_ENDPOINT

e.g. /chatlayer

SIMPLEREST_INBOUND_REDISURL

e.g. redis://127.0.0.1:6379

Roadmap

  • Support for entity asserter