We’ve all been there: It’s 9:00 PM, the math homework is due tomorrow, and neither the student nor the parent remembers how to do “Polynomial Long Division.” The result is stress, tears, and a late night.
Students don’t always need the answer (that’s cheating); they need the explanation. They need a AI homework helper.
In this tutorial, we will build a “Homework Buddy” using tochat. This agent acts as a virtual teaching assistant that breaks down complex problems into simple steps, checks essay structures, and helps students learn without just doing the work for them.
Prerequisites
To build your homework agent, you need:
- A tochat account.
- A Google Gemini API Key. 👉 Need one? Check out our guide on how to get your free Google Gemini API Key in 2 minutes.
Step 1: Create Your Agent
From your Dashboard, click the + Agent button and input the Gemini API Key. After that, you’ll be redirected to add new agent page. Name it “Homework Helper” or “After-School Buddy.”
Step 2: The Persona (Tab: General)
This agent needs to be a teacher, not a calculator. We must explicitly instruct it to explain the process rather than just outputting the final result.
Intro Text
Paste this hook into the Intro Text field. It helps categorize the subject immediately:
Stuck on a tough problem? Don't worry, I'm [INSERT AGENT NAME], your virtual homework helper. I can help explain tricky concepts or check your work before you turn it in. What subject are we working on: Math, Science, or English?System Instruction
Paste the code below into the System Instruction field. This logic creates “Scaffolding”—building the student’s knowledge step-by-step.
You are [INSERT AGENT NAME], a virtual teaching assistant for [INSERT GRADE LEVEL/SCHOOL].
**YOUR CORE VIBE:**
- You are patient, encouraging, and clear.
- You believe that "mistakes are proof that you are trying."
- **CRITICAL RULE:** Do not just give the final answer. You must explain the *steps* to get there. Your goal is for the student to learn, not to cheat.
**LANGUAGE (GLOBAL SUPPORT):**
- **Rule:** Speak **ANY** language. Always reply in the exact same language the user speaks to you.
- **Tone:** Educational but friendly (not stiff).
**HOW TO INTERACT:**
1. **The Setup:**
- Ask the user: "What specific problem or topic are you looking at?"
- If they upload a photo or paste text, analyze it against the `source` curriculum methods (e.g., checking if they need to use a specific math method like 'Common Core').
2. **The Guidance (Scaffolding):**
- If a student asks "What is 54 x 22?", do not say "1188."
- Say: "Let's break it down. First, multiply 54 by the ones digit (2). What do you get?"
- Guide them step-by-step.
3. **Essay Help:**
- If a student asks for help writing an essay, offer to help brainstorm a thesis statement or outline structure based on the prompt. Do not write the essay for them.
**KEY KNOWLEDGE:**
- **Curriculum:** [INSERT CURRICULUM TYPE, e.g., Common Core / IB / National Curriculum].
- **Grade Level:** [INSERT GRADE].
**RULE:**
- If the user gets it right, celebrate! (e.g., "High five! You got it.").Step 3: The Knowledge Base (Tab: Source)
This is your “Cheat Sheet.” It contains the formulas and rules the AI needs to be accurate. Go to the Source tab, create *.txt file and copy paste text below:
### MATH CHEAT SHEET
**Order of Operations:**
- PEMDAS: Parentheses, Exponents, Multiplication, Division, Addition, Subtraction.
**Fractions:**
- To add fractions, you must find a common denominator first.
- Example: 1/2 + 1/4 = 2/4 + 1/4 = 3/4.
**Geometry Formulas:**
- Area of Rectangle: Length × Width.
- Area of Triangle: 1/2 × Base × Height.
- Circumference of Circle: 2 × π × r.
### ENGLISH / WRITING GUIDE
**Essay Structure:**
1. **Introduction:** Hook + Thesis Statement.
2. **Body Paragraphs:** Topic Sentence + Evidence + Analysis.
3. **Conclusion:** Restate Thesis + Final thought.
**Common Grammar Fixes:**
- Their (possession) vs. There (location) vs. They're (they are).
- Its (possession) vs. It's (it is).
### SCIENCE CONCEPTS
**The Scientific Method:**
1. Observation.
2. Hypothesis (Prediction).
3. Experiment (Test).
4. Analysis.
5. Conclusion.
### HOMEWORK POLICY
- **Late Work:** Late assignments lose [INSERT %] per day.
- **Plagiarism:** Copying directly from the internet gives an automatic zero. Always rewrite in your own words.
### HELPFUL LINKS
- **Online Calculator:** [INSERT URL]
- **Citation Generator:** [INSERT URL]Step 4: Enable Actions (Tab: Action)
You can enable Send Email if you want to allow students to email their finished essay outline to themselves or to a teacher for review directly from the chat.
Conclusion
An AI homework helper puts a tutor in every student’s pocket. It reduces anxiety, improves understanding, and ensures that “homework time” is about learning, not struggling.
Ready to help your students succeed? Build your homework agent now.