Generate secure worksheets and password-protected answer keys with OpenAI and Gmail
UnknownWhat this workflow does
This AI workflow has 9 nodes and runs when someone submits an n8n form (“AI Worksheet Generator”). Along the way it connects OpenAI Chat Model, Gmail and Htmlcsstopdf (community).
How it runs
Trigger: When someone submits an n8n form (“AI Worksheet Generator”).
- Generate Worksheet HTML (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Create Worksheet File (Htmlcsstopdf): uses Htmlcsstopdf
- Generate Answer Key HTML (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Create Answer Key File (Htmlcsstopdf): uses Htmlcsstopdf
- Lock Answer Key (Htmlcsstopdf): work with pdf security
- Send Lesson Materials (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Gmail + Htmlcsstopdf templates (40) · Other OpenAI + Htmlcsstopdf templates (19)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-htmlcsstopdf is verified or supports 3.0 (used in Create Worksheet File, Create Answer Key File, Lock Answer Key).
Nodes used (5)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - n8n Form Trigger
n8n-nodes-base.formTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Htmlcsstopdf
n8n-nodes-htmlcsstopdf.htmlcsstopdf - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow collects lesson details via an n8n form, uses OpenAI to generate a student worksheet and matching answer key, converts both to PDFs with HTMLCSS to PDF, password-locks the answer key, and emails the worksheet link plus the…