Setup
1. Create Crisp Plugin
See: Crisp API Authentication
2. Install
3. Configure
.env
Usage
Options
Crisp plugin identifier
Crisp plugin key
Only reply when all operators are offline
Deploy your bot to Crisp live chat
npm install @boostgpt/router
CRISP_IDENTIFIER=your_plugin_identifier
CRISP_KEY=your_plugin_key
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();
Was this page helpful?