Skip to content

Connectors / Human resources · HTTP Connector

Automate Google Classroom with Tray.ai

Create a course, add a student and add a teacher in Google Classroom. Connect Google Classroom to the rest of your human resources stack with Tray.ai.

What can you do with Google Classroom on Tray.ai?

Google Classroom is Google's tool for running classes online, where teachers create courses, post assignments and announcements, and grade student work. Tray.ai connects to Google Classroom through the HTTP Connector, so your workflows can call the Google Classroom API alongside the rest of your stack.

  • Add a student to the right course when they enroll in your student system.
  • List submissions each week and send late work alerts to teachers.
  • Create an announcement in every course when a school closure is posted.
Connects through
HTTP Connector
Authentication
OAuth 2.0
Base URL
https://classroom.googleapis.com

Set it up

Connect Google Classroom to Tray.ai

Each step uses Google Classroom's own API details, from its documentation.

Step 1

Sign in to Google Classroom with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Google Classroom. Sign in once and every step reads the token from there.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://classroom.googleapis.com as the base URL. Or paste a cURL example from Google Classroom's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List courses”

It's one of 22 documented actions, under Courses. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Create a course” and “Get a course” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Google Classroom

Each one uses actions and events from Google Classroom's own API documentation.

Create Google Classroom courses from a Google Sheets plan

When

A row is added in Google Sheets

Then

  1. Create a course in Google Classroom
  2. Add a teacher to the course

With Google Sheets

Export Google Classroom submissions to Google BigQuery

When

On a schedule

Then

  1. List coursework in Google Classroom
  2. List submissions for each piece of coursework
  3. Load the results into Google BigQuery

With Google BigQuery

Apps you can build on Google Classroom data

Internal tools your team can build with an AI assistant, each one using Google Classroom calls from its API documentation.

Missing work tracker

Lists coursework and student submissions so a teacher can see who has not turned work in.

Grading queue

Shows turned in submissions per assignment and lets a teacher update and return each one.

Course roster manager

Lists courses with students and teachers and lets an admin add or remove people.

Give your AI agents Google Classroom tools

Build an MCP server on Google Classroom in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List courses
  • List students
  • List teachers
  • List coursework
  • List submissions
  • List announcements
  • Create a course
  • Get a course

What the Google Classroom API covers

6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Courses

  • List courses
  • Create a course
  • Get a course
  • Update a course
  • Delete a course

Students

  • List students
  • Add a student
  • Remove a student

Teachers

  • List teachers
  • Add a teacher
  • Remove a teacher

Coursework

  • List coursework
  • Create coursework
  • Update coursework
  • Delete coursework

Student submissions

  • List submissions
  • Update a submission
  • Return a submission
  • Turn in a submission

Announcements

  • List announcements
  • Create an announcement
  • Delete an announcement

Checked against Google Classroom's own documentation on 2026-10-22

developers.google.com/workspace/classroom/reference/rest

Frequently asked questions

What can a Tray.ai workflow do in Google Classroom?

+

The Google Classroom API documents 22 actions across 6 resources (Courses, Students, Teachers, Coursework, Student submissions, Announcements). For example: List courses; List students; List teachers. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Google Classroom?

+

The Google Classroom API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Google Classroom working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.