Documentation Index
Fetch the complete documentation index at: https://docs.boostgpt.co/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
Installation
- npm
- yarn
- pnpm
Setup
1. Get Your Credentials
Create account
Sign up at app.boostgpt.co
2. Configure Environment Variables
Create a.env file:
.env
3. Initialize the Client
- ES Modules
- CommonJS
Quick Start Example
Create a bot and have a conversation:Run the script and you should see your bot respond!
Response Format
All SDK methods return a consistent response format:Configuration Options
Constructor Options
Module System
The Core SDK supports both ES Modules and CommonJS:- ES Modules
- CommonJS
Requirements:
- Node.js 14.0.0+
- Add
"type": "module"topackage.jsonOR use.mjsextension
TypeScript Support
While the SDK is written in JavaScript, it works with TypeScript projects. Type definitions may be added in a future release. For now, you can create your own type definitions:Troubleshooting
Cannot find module 'boostgpt'
Cannot find module 'boostgpt'
Make sure you’ve installed the package:
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Verify you’re using the correct Project ID for your API key.
SyntaxError: Cannot use import statement
SyntaxError: Cannot use import statement
You’re trying to use ES modules in a CommonJS environment. Either:
- Add
"type": "module"to yourpackage.json - Use
.mjsfile extension - Switch to
require()syntax
Next Steps
API Reference
Explore all available methods
Router SDK
Deploy bots to multiple channels
Examples
See real-world implementations
Troubleshooting
Common issues and solutions