Setup
1. Create Crisp Plugin
Create plugin
Go to Crisp Marketplace and create a plugin
Get credentials
Copy Plugin Identifier and Plugin Key
See: Crisp API Authentication
2. Install
npm install @boostgpt/router
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
Only reply when all operators are offline