Prerequisites
Register your app on the Platform to get authentication credentials:- Go to Deploy > Integrations > BotKit.
- Create or register an app for your bot to generate Client ID and Client Secret.
config.json:
appId→ Client IDappKey→ Client Secret
Download and Install
Download the BotKit SDK from GitHub:Configure config.json
Set the following keys inconfig.json:
| Key | Description |
|---|---|
server.port | Port for the BotKit Node.js app (default: 8003) |
app.apiPrefix | API path prefix for the Express route (empty in sample code) |
app.url | ngrok forwarding URL or your callback server URL |
validations.leastNodeVersion | Minimum Node.js version — must be 10 or higher |
credentials.apikey | Client Secret from the Platform |
credentials.appId | Client ID from the Platform |
credentials.st-<botId>.apikey | Per-bot override for Client Secret (falls back to parent if absent) |
credentials.st-<botId>.appId | Per-bot override for Client ID |
jwt.jwtAlgorithm | JWT signing algorithm: HS256, HS512, RS256, or RS512 (default: HS256) |
jwt.jwt-expiry | JWT expiry in seconds (default: 60) |
jwt.st-<botId> | Per-bot JWT algorithm and expiry overrides |
redis.options.host | Redis host (default: localhost) |
redis.options.port | Redis port (default: 6379) |
redis.available | Set true to enable Redis for async webhook payload storage |
examples.mockServicesHost | Host for mock services used in testing |
liveagentlicense | LiveChat license key for agent transfer integrations |
supportsMessageAck | Set true to enable message acknowledgment |
languages | List of supported language codes, for example, ["en", "de"] |
config.json: