Skip to content

docs: add Google Classroom document loader integration#4909

Open
Nishchal Chandel (ayanokojix21) wants to merge 2 commits into
langchain-ai:mainfrom
ayanokojix21:docs/add-google-classroom-loader
Open

docs: add Google Classroom document loader integration#4909
Nishchal Chandel (ayanokojix21) wants to merge 2 commits into
langchain-ai:mainfrom
ayanokojix21:docs/add-google-classroom-loader

Conversation

@ayanokojix21

Copy link
Copy Markdown

Description

Adds integration documentation for langchain-google-classroom.
A community-maintained document loader that extracts structured data from Google Classroom via the Classroom API.

What it does

GoogleClassroomLoader loads the following Google Classroom resources as LangChain Document objects:

  • Courses — course metadata
  • Assignments (courseWork) — homework, quizzes, and projects
  • Announcements — class announcements
  • Course materials — shared resources and readings
  • Student submissions — turned-in work with grades
  • Rubrics — grading criteria attached to assignments
  • Topics — course topic categories
  • Class roster — enrolled students and teachers

The loader also resolves Google Drive file attachments (PDF, DOCX, CSV, images, Google Docs/Sheets/Slides), downloads them, and parses them into additional Document objects using pluggable parsers that implement LangChain's BaseBlobParser interface. An optional vision LLM can be provided for image understanding in PDFs and image attachments.

Why this integration is valuable

Google Classroom is used by 150M+ users across educational institutions worldwide. This loader enables LLM-powered education tools like tutoring assistants, grading aids, curriculum analyzers, and educational RAG pipelines to access structured Classroom data through LangChain's standard BaseLoader interface, with full support for load(), lazy_load(), and alazy_load().

Package details

PyPI https://pypi.org/project/langchain-google-classroom/
GitHub https://github.com/ayanokojix21/langchain-google-classroom
Version 0.2.0
License MIT
Test coverage 96% (187 tests)

Changes

File Status Description
src/oss/python/integrations/document_loaders/google_classroom.mdx New Full integration documentation page
src/oss/python/integrations/document_loaders/index.mdx Modified Added entry to "Productivity tools" table

Checklist

  • Package is published on PyPI as a standalone package
  • Integration implements the BaseLoader interface (load(), lazy_load(), alazy_load())
  • Documentation follows existing document loader page conventions
  • Includes proper frontmatter (title, description)
  • Code examples use correct imports from the published package
  • Reviewed for grammar, formatting, and quality
  • No changes to docs.json (individual pages are auto-discovered)
  • Linked to approved issue

Copilot AI review requested due to automatic review settings July 15, 2026 11:27
@github-actions github-actions Bot added the external User is not a member of langchain-ai label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Nishchal Chandel (@ayanokojix21)! When it's ready for review, please add the relevant reviewers:

  • @mdrxy (Python integrations)

@langchain-oss-automated-triage

Copy link
Copy Markdown

Thanks for contributing a new integration docs page, Nishchal Chandel (@ayanokojix21)!

We receive a large number of PRs and review them as quickly as we can. Please bear with us as we work through the queue.

If you have already tagged a maintainer on this PR, do not tag them again.

@github-actions github-actions Bot added langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects labels Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds LangChain OSS (Python) integration documentation for the community-maintained langchain-google-classroom package, including a new loader guide and an entry in the document loaders index so users can discover it.

Changes:

  • Added a new integration guide page for GoogleClassroomLoader, including setup, credentials, and usage examples.
  • Updated the document loaders index to include Google Classroom under “Productivity tools”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/oss/python/integrations/document_loaders/google_classroom.mdx New integration documentation page for the Google Classroom loader.
src/oss/python/integrations/document_loaders/index.mdx Adds Google Classroom to the “Productivity tools” table for discoverability.

| Document Loader | API reference |
|----------------|---------------|
| [AgentMail](/oss/integrations/document_loaders/agentmail) | [`AgentMailLoader`](https://github.com/agentmail-to/langchain-agentmail) |
| [Google Classroom](/oss/python/integrations/document_loaders/google_classroom) | [`GoogleClassroomLoader`](https://pypi.org/project/langchain-google-classroom/) |
Comment on lines +8 to +10
This page covers how to load data from Google Classroom using the `GoogleClassroomLoader`. The loader fetches courses, assignments (courseWork), announcements, course materials, student submissions, rubrics, topics, and class rosters from the [Classroom API](https://developers.google.com/classroom) and converts each item into a LangChain `Document`.

When file attachments are present on classroom items, the loader automatically downloads and parses them from Google Drive — supporting PDF, DOCX, CSV, plain text, Google Docs, Sheets, Slides, and images.
Comment on lines +33 to +35
4. One of the following authentication methods:
- **OAuth 2.0 credentials** — for personal Google accounts or testing
- **Service Account credentials** — for Google Workspace domains (production)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

| Document Loader | API reference |
|----------------|---------------|
| [AgentMail](/oss/integrations/document_loaders/agentmail) | [`AgentMailLoader`](https://github.com/agentmail-to/langchain-agentmail) |
| [Google Classroom](/oss/integrations/document_loaders/google_classroom) | [`GoogleClassroomLoader`](https://pypi.org/project/langchain-google-classroom/) |
description: "Integrate with the Google Classroom document loader using LangChain Python."
---

> [Google Classroom](https://edu.google.com/workspace-for-education/classroom/) is a free learning management system developed by Google as part of Google Workspace for Education. It is used by over 150 million users across educational institutions worldwide to manage coursework, assignments, and communication.
Comment on lines +104 to +106
| `load_attachments` | `bool` | `True` | Download and yield Drive file attachments. |
| `parse_attachments` | `bool` | `True` | Parse attachment content using built-in parsers. |
| `load_submissions` | `bool` | `False` | Load student submissions. Adds the required scope automatically. |
@ayanokojix21
Nishchal Chandel (ayanokojix21) force-pushed the docs/add-google-classroom-loader branch from 311b97d to 70871c1 Compare July 15, 2026 12:05
@ayanokojix21
Nishchal Chandel (ayanokojix21) marked this pull request as draft July 15, 2026 12:09
@ayanokojix21
Nishchal Chandel (ayanokojix21) marked this pull request as ready for review July 15, 2026 12:13
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Nishchal Chandel (@ayanokojix21)! When it's ready for review, please add the relevant reviewers:

  • @mdrxy (Python integrations)

@ayanokojix21

Copy link
Copy Markdown
Author

Mason Daugherty (@mdrxy) Ready for review - this adds integration documentation for the langchain-google-classroom document loader. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants