Skip to main content

Quickstart Guide

Get up and running with StudyFetch in just 5 minutes. You’ll learn how to:
1

Create or Upload Material

Create text-based materials or upload files (PDFs, documents, etc.) to build your knowledge base
2

Create Component

Create an AI component (chat, flashcards, tests, etc.) that uses your materials
3

Embed Component

Generate an embed URL and add it to your website with a simple iframe

Prerequisites

Before you begin, make sure you have:
  • An API key (get one from your console)
  • Your preferred development environment set up:
    • JavaScript: Node.js 16+ installed
    • Python: Python 3.7+ installed
    • Java: Java 8+ and Maven/Gradle
    • C#: .NET 6.0+ installed
Material Processing Time: When you upload or create materials, they need time to process before they can be used in components. Attempting to create a component immediately after uploading materials will fail. Always check that materials have status: 'active' before using them. The examples below include proper waiting logic.

Language-Specific Quickstart

Install the SDK

Initialize the Client

Step 1: Create or Upload Study Materials

Step 2: Create a Chat Component

Important: Materials need time to process after upload. If you create a material and immediately try to use it in a component, the component creation will fail. Always ensure materials have status: 'active' before using them. For production applications, implement a polling mechanism to check material status.

Step 3: Embed the Chat Component

Complete Example

Embedding Components

After creating components, embed them in your application:

What’s Next?

Now that you’ve created your first components, explore more features:

Learn More About Components

Advanced Features

  • Embedding Components - Integrate into your app
  • Analytics API - Track usage and performance (see REST API tab)

Resources

  • REST API Reference - Complete API documentation (see REST API tab)

Need Help?