> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Crisp Adapter

> Deploy your bot to Crisp live chat

## 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](https://docs.crisp.chat/guides/rest-api/authentication/)

### 2. Install

```bash theme={null}
npm install @boostgpt/router
```

### 3. Configure

```bash .env theme={null}
CRISP_IDENTIFIER=your_plugin_identifier
CRISP_KEY=your_plugin_key
```

## Usage

```javascript theme={null}
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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.