# Grade assignments and email feedback with OpenAI: n8n workflow

> Started by a clock, and works across Gmail, Google Docs, Google Drive, Google Sheets and two others. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/grade-assignments-and-email-feedback-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Grade assignments and email feedback with OpenAI

Started by a clock, and works across Gmail, Google Docs, Google Drive, Google Sheets and two others. It hands the judgement calls to OpenAI. 17 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgrade-assignments-and-email-feedback-with-openai)

**17 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**6** Services it connects to

## The flow

Starts it 3 Model 2 Logic 4 Service 8

The steps in the order they run, from what starts it.

- 1 **On Workflow Error** Error trigger *Starts it*
- 2 **Google Drive, Watch Submissions Folder** Google Drive trigger *Starts it*
- 3 **Schedule, Trigger Daily Summary at 6 PM** Schedule trigger *Starts it*
- 4 **Slack, Send Workflow Error Alert** Slack *Service*
- 5 **Google Drive, Download PDF Binary** Google Drive *Service*
- 6 **Google Sheets, Read All Gradebook Rows** Google Sheets *Service*
- 7 **OpenAI, Extract Text from PDF** Open Ai *Model*
- 8 **Code, Build Today's Summary Report** Code *Logic*
- 9 **Code, Parse Filename Metadata** Code *Logic*
- 10 **IF, Submissions Exist Today** If *Logic*
- 11 **Google Docs, Fetch Grading Rubric** Google Docs *Service*
- 12 **Gmail, Email Daily Summary to Teacher** Gmail *Service*
- 13 **Telegram, Push Summary to Teacher** Telegram *Service*
- 14 **OpenAI GPT-4o, Grade Against Rubric** Open Ai *Model*
- 15 **Code, Parse and Merge Grade JSON** Code *Logic*
- 16 **Google Sheets, Append Row to Gradebook** Google Sheets *Service*
- 17 **Gmail, Send Feedback Email to Student** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 17, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Google Docs, Google Drive, Google Sheets, Slack, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Docs, Google Drive, Google Sheets, Slack and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgrade-assignments-and-email-feedback-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI email multi-agent response system with OpenAI and Gmail** 17 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/ai-email-multi-agent-response-system-with-openai-and-gmail)
- [**AI-powered Amazon product recommendations with Decodo** 17 steps · calls a model · Telegram](https://millionrounds.com/workflow/ai-powered-amazon-product-recommendations-with-decodo)
- [**AI-powered Amazon product recommendations with Gemini** 17 steps · calls a model · Telegram](https://millionrounds.com/workflow/ai-powered-amazon-product-recommendations-with-gemini)
- [**AI-powered prompt enhancement assistant with Google Sheets** 17 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/ai-powered-prompt-enhancement-assistant-with-google-sheets)
- [**Access real-time Binance market data with OpenAI** 17 steps · calls a model · Telegram](https://millionrounds.com/workflow/access-real-time-binance-market-data-with-openai)
- [**Analyze URL phishing risk with VirusTotal and Safe Browsing** 17 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/analyze-url-phishing-risk-with-virustotal-and-safe-browsing)
