Skip to main content

Setup

1. Create Crisp Plugin

1

Create plugin

Go to Crisp Marketplace and create a plugin
2

Get credentials

Copy Plugin Identifier and Plugin Key
See: Crisp API Authentication

2. Install

npm install @boostgpt/router

3. Configure

.env
CRISP_IDENTIFIER=your_plugin_identifier
CRISP_KEY=your_plugin_key

Usage

import { Router, CrispAdapter } from '@boostgpt/router';

const router = new Router({
  apiKey: process.env.BOOSTGPT_API_KEY,
  projectId: process.env.BOOSTGPT_PROJECT_ID,
  adapters: [
    new CrispAdapter({
      crispIdentifier: process.env.CRISP_IDENTIFIER,
      crispKey: process.env.CRISP_KEY,
      onlyWhenOffline: true
    })
  ]
});

await router.start();

Options

crispIdentifier
string
required
Crisp plugin identifier
crispKey
string
required
Crisp plugin key
onlyWhenOffline
boolean
default:"true"
Only reply when all operators are offline