Skip to main content

What is the Core SDK?

The Core SDK provides programmatic access to create, manage, and interact with BoostGPT agents. It handles bot management, chat interactions, and training data.

Installation

Quick Start

Key Features

Bot Management

Create, update, and delete bots

Chat API

Send messages and get AI responses

Training Data

Add knowledge to your bots

API Reference

Complete method documentation

Response Format

All SDK methods return a consistent format:
Always check err before using response:

Available Methods

Bot Management

  • createBot() - Create a new bot
  • fetchBot() - Get bot details
  • fetchBots() - List all bots (paginated)
  • updateBot() - Update bot settings
  • resetBot() - Delete all training data
  • deleteBot() - Delete a bot

Chat

  • chat() - Send message and get response (supports streaming)
  • fetchChat() - Get chat history
  • fetchChats() - List all chats (paginated)
  • deleteChat() - Delete chat history
  • search() - Search bot’s knowledge base
  • executeTool() - Execute tool calls
  • voteMessage() - Upvote/downvote messages
  • fetchVoteStatus() - Get message vote status
  • deleteMessage() - Delete a specific message

Training

  • startTraining() - Add training content (queued)
  • fetchTraining() - Get training source
  • fetchTrainings() - List training data (paginated)
  • updateTraining() - Update training source
  • deleteTraining() - Remove training data

Subscribers

  • fetchSubscribers() - Get all subscribers (paginated)

Analytics & Statistics

  • fetchVoteStats() - Get voting statistics
  • fetchSummaryStats() - Get summary statistics
  • fetchDashboardStats() - Get dashboard statistics
  • fetchToolUsageStats() - Get tool usage statistics
  • fetchWorkflowStats() - Get workflow statistics
  • fetchPerformanceMetrics() - Get performance metrics
  • fetchBehaviorStats() - Get user behavior statistics
  • fetchErrorAnalysis() - Get error analysis
  • fetchReasoningSummary() - Get reasoning summary

Example Usage

Next Steps

Installation

Install and configure SDK

Bot Management

Create and manage bots