π¬ Create daycare photo newsletters with an approval dashboard and GPT-4o-mini
β‘ 0 views Β· π¬ Content Creation & Video
Description
Quick overview
This workflow serves a web dashboard for daycare staff and uses OpenRouter (OpenAI GPT-4o-mini) plus n8n Data Tables to generate, edit, and approve per-child daily newsletter drafts from uploaded photos and staff notes.
How it works
- Receives a GET request on the
/newsletter-appwebhook and loads active children plus any newsletter records for today from n8n Data Tables. - Merges each child with todayβs newsletter status and renders an HTML dashboard page that staff can use on mobile or desktop.
- When staff uploads 1β3 photos and an optional memo, the dashboard sends a POST request to
/newsletter-app/generateto create a draft. - The workflow validates the request, sends the photos and memo to OpenRouter (OpenAI GPT-4o-mini) to generate a single newsletter text capped at 100 characters, and returns the draft text.
- It saves or updates the newsletter in the
newslettersData Table with status βδΈζΈγβ, storing the AI text, final text, memo, photo count, and photo data. - When staff requests a rewrite, a POST to
/newsletter-app/regeneratereloads the stored memo/photos, generates a new draft via OpenRouter, updates the newsletter record, and returns the refreshed text. - When staff approves the edited text, a POST to
/newsletter-app/approveupdates the newsletter status to βζΏθͺζΈγΏβ with the final text and an approval timestamp.
Setup
- Add an OpenRouter API credential and select it in both HTTP Request steps that call
https://openrouter.ai/api/v1/chat/completions. - Create n8n Data Tables named
childrenandnewsletters, and ensurechildrenincludes anis_activefield andnewslettersincludes fields such asnewsletter_id,child_id,date,status,ai_text,final_text,staff_memo, and the photo fields used in this workflow. - Copy your
/webhook/newsletter-appURL from the GET webhook and open it in a browser to access the dashboard (and ensure your n8n instance is reachable from staff devices).
π Nodes Used
HTTP Request, Webhook, Gmail, Schedule Trigger, Data table
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File