Documentation
Integrations

How to Setup Student AI Chat

Enable AI-powered chat for students — choose provider, model, set custom prompts, and configure fallback models

How to Setup Student AI Chat

Course37 includes a built-in AI chat assistant for students. Students can ask questions about course material and get instant, contextual answers — like having a personal tutor available 24/7.


Prerequisites

Before enabling student AI, you need at least one AI provider configured:


Enabling Student AI Chat

  1. Go to Settings → Integrations
  2. Scroll to Student AI Chat Settings
  3. Toggle Enable Student AI to ON
  4. Select a Provider (OpenAI, Anthropic, Gemini, or Groq)
  5. Select a Model (e.g., gpt-4o-mini, llama-3.1-8b)
  6. Optionally set a Fallback Model
  7. Optionally add a Custom Prompt
  8. Click Save

Configuration Options

Provider & Model Selection

SettingDescriptionExample
ProviderWhich AI service to useGroq
ModelSpecific model for responsesllama-3.1-8b
Fallback ModelBackup when primary model hits rate limitsllama-3.1-70b

Recommended Setup for Students:

  • Provider: Groq (cheapest, fastest)
  • Model: llama-3.1-8b (very fast, cost-effective)
  • Fallback: llama-3.1-70b (higher quality backup)

This combination costs less than $0.01 per 100 student messages.

Custom Prompt

The custom prompt is prepended to every student AI conversation. Use it to:

  • Set the AI's personality and teaching style
  • Restrict topics to your curriculum
  • Add organization-specific instructions
  • Set the response language

Example Custom Prompt:

You are a helpful tutor for [Organization Name]. Only answer questions related to the student's enrolled courses. Always explain concepts step by step. Respond in Bangla when the student writes in Bangla. Never give direct exam answers — guide the student to think through the problem.

What Students See

Once enabled, students see an AI Chat button in their course view:

  1. Student opens a course → clicks AI Assistant icon
  2. Types a question about the course material
  3. AI responds with contextual help
  4. Conversation history is preserved per course
  5. Students can start new threads for different topics

Student AI Features

  • Course-Aware — AI knows which course the student is in
  • Conversation History — Previous messages provide context
  • Thread Management — Multiple threads per course
  • Token Tracking — Each message tracks input/output tokens

Admin AI Settings

Admins and teachers have their own AI configuration:

SettingDescription
Enable Admin AION by default
ProviderWhich provider admins use
ModelCan be a more powerful model (e.g., gpt-4o)
Custom PromptAdmin-specific instructions

Tip: Use a more powerful model for admins (e.g., gpt-4o for question generation) and a cheaper model for students (e.g., llama-3.1-8b for chat).


Model Recommendations by Use Case

Use CaseRecommended ModelWhy
Student Chat (High Volume)Groq llama-3.1-8bUltra fast, cheapest
Student Chat (Quality)OpenAI gpt-4o-miniGood balance of quality and cost
Admin - Question GenerationOpenAI gpt-4oBest accuracy for MCQ/CQ
Admin - Essay GradingAnthropic claude-3-5-sonnetBest at nuanced evaluation
TranslationsGemini gemini-1.5-flashFast, good multilingual support
Budget-Friendly EverythingGroq llama-3.1-70bGreat quality, very cheap

Monitoring Student AI Usage

  • Go to Settings → Integrations → AI Usage
  • See per-student token consumption
  • View popular questions and topics
  • Track total student AI messages per day/month

Student AI chat tokens count toward your monthly token allocation (200K free) or your own API key usage.


Related Articles

AIstudentchatsetupmodelpromptGroqOpenAItutor