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 🙏

© 2025 – Pkg Stats / Ryan Hefner

botium-connector-koreai-webhook

v0.0.10

Published

Botium Connector for Kore.ai Webhooks

Readme

Botium Connector for Kore.ai Webhooks

NPM

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

This is a Botium connector for testing your Kore.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 uses a Kore.ai Webhook channel to connect to your chatbot.

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

Requirements

  • Node.js and NPM
  • a Kore.ai chatbot with Webhook channel enabled
  • a project directory on your workstation to hold test cases and Botium configuration

Install Botium and Kore.ai Webhook Connector

When using Botium CLI:

> npm install -g botium-cli
> npm install -g botium-connector-koreai-webhook
> botium-cli init
> botium-cli run

When using Botium Bindings:

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

When using Botium Box:

Already integrated into Botium Box, no setup required

Connecting your Kore.ai chatbot to Botium

You have to attach a Webhook channel to your Kore.ai chatbot:

  1. Follow the instructions, use syncronous interation mode, and HS256 algorithm for JWT token.
  2. From the Webhook configuration screen, copy those settings to the botium.json file:
    1. CLIENT ID
    2. CLIENT SECRET
    3. Webhook URL
  3. Don't forget to publish the webhook

Open the file botium.json in your working directory and add the Webhook settings.

{
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "<whatever>",
      "CONTAINERMODE": "koreai-webhook",
      "KOREAI_WEBHOOK_URL": "https://bots.kore.ai/chatbot/hooks/...",
      "KOREAI_WEBHOOK_CLIENTID": "...",
      "KOREAI_WEBHOOK_CLIENTSECRET": "..."
    }
  }
}

Botium setup is ready, you can begin to write your BotiumScript files.

NLP Analitycs

  • Extracting of NLP metadata has to be turned on (KOREAI_WEBHOOK_NLP_ANALYTICS_ENABLE). (It is not turned on as default, because it slows down the process.)
  • The bot name has to set. (KOREAI_WEBHOOK_BOTNAME)
  • The app associated with the Kore AI webhook has to have the Intent and Entity Detection scope.

Chatbot data downloader

  • The app associated with the Kore AI webhook has to have the Utterances Export scope.

Chatbot data uploader

  • The app associated with the Kore AI webhook has to have the Utterances Import scope.
  • A new Kore AI Admin App is required (Kore AI Admin Console, Security & Control, API scopes )
  • The Kore AI Admin App has to have the Bot Import scope
  • The Kore AI Admin App has to be registered to Botium via KOREAI_WEBHOOK_ADMIN_CLIENTID, and OREAI_WEBHOOK_ADMIN_CLIENTSECRET.

Supported Capabilities

Set the capability CONTAINERMODE to koreai-webhook to activate this connector.

KOREAI_WEBHOOK_URL

The full Webhook URL from the Webhook configuration settings in V1 format:

  • {{host_url}}/chatbot/hooks/{{bot id}} or
  • {{host_url}}/chatbot/hooks/{{bot id}}/hookInstance/{{webHookId}}

KOREAI_WEBHOOK_CLIENTID

The CLIENT ID from the Webhook configuration settings

KOREAI_WEBHOOK_CLIENTSECRET

The CLIENT SECRET from the Webhook configuration settings

It is recommended to actually not add this to the botium.json file, but to use the environment variable BOTIUM_KOREAI_WEBHOOK_CLIENTSECRET instead

KOREAI_WEBHOOK_NLP_ANALYTICS_ENABLE

Turn it on to extract NLP metadata, like recognized intent, and entities.

KOREAI_WEBHOOK_NLP_ANALYTICS_URL

It is an advanced capability. In special cases it might be required to overwrite the URL calculated by Botium.

KOREAI_WEBHOOK_BOTNAME

The name of the Bot. If NLP Analytics is enabled, then this capability is required.

KOREAI_WEBHOOK_FROMID

If set, this userId will be used as sender. Otherwise, for each convo a new userId is generated.

KOREAI_WEBHOOK_TOID

If set, this userId will be used as receiver. Otherwise, for each convo a new userId is generated.

KOREAI_WEBHOOK_ADMIN_CLIENTID

The CLIENT ID of an app, created in Kore AI Admin Console

OREAI_WEBHOOK_ADMIN_CLIENTSECRET

The CLIENT SECRET of an app, created in Kore AI Admin Console

Open Issues and Restrictions

  • Connector uses synch webhook API of Kore.ai. Always user has to start the conversation, and it is not possible to handle two following bot sections

Troubleshooting

  • Error 412: The chatbot does not support anonymous access. Use KOREAI_WEBHOOK_FROMID capability, set the ID of a registered user.
  • Error 401: The webhook is not available