Библиотека / Написание и генерация контента
Написание и генерация контента
Генерация новостных рассылок для родителей детского сада через OpenRouter с отправкой через Gmail
Сотрудники загружают ежедневные фото и генерируют черновики с помощью GPT-4o-mini через OpenRouter, одобряют их на панели управления, а Gmail отправляет одобренные рассылки родителям в 14:00 по будням, с напоминаниями.
Что делает
### How it works This workflow gives daycare staff an AI-powered dashboard to write, approve, and send daily parent newsletters without manual typing. Staff open the web dashboard, upload photos from the day, and click Generate - GPT-4o-mini reads the photos and staff memo and writes a newsletter under 100 characters. Staff can edit the draft, then click Approve & Send. At 14:00 on weekdays, approved newsletters are emailed to each parent individually via Gmail. At 13:30, if any newsletters are still unapproved, a reminder email lists the children still waiting. Every night at 02:00, newsletters older than 30 days are deleted automatically. Holidays and weekends are skipped using a free public Japanese holidays API. ### Setup steps 1. Add your OpenRouter API credential to the Call OpenAI and Call OpenAI Regen nodes (get key at openrouter.ai) 2. Add your Gmail OAuth2 credential to the Send Reminder Email and Send Email nodes 3. Create two n8n Data Tables: children (child_id, child_name, nickname, parent_name, parent_email, is_active) and newsletters (newsletter_id, child_id, date, status, ai_text, final_text, staff_memo, photo_1_binary, photo_2_binary, photo_3_binary, photo_count, created_at, approved_at, sent_at) 4. Enter your staff email address in the workflow setup card (Staff Config node) - reminder notifications will be sent there 5. Pre-load child records into the children table, publish the workflow, then open the dashboard URL printed in the Webhook node Warning: The dashboard and API endpoints have no login. Share the URL only with trusted staff, or add authentication later.
Шаги
- GET /newsletter-app
- Fetch Children
- Build Dashboard Data
- Fetch Today Newsletters
- Merge Dashboard
- Build HTML Page
- Respond HTML
- POST /generate
- Validate Generate Input
- Is Valid Generate
- Build OpenAI Messages
- Call OpenAI
- Extract AI Text
- Upsert Newsletter
Всего шагов: 61.
Похожие автоматизации
Генерация и обогащение лидовСоздание и рассылка ИИ-лид-магнитов с GeminiШагов: 5Чат-боты и боты для мессенджеровИИ-агент по продажам для Bitrix24 с Gemini и SupabaseШагов: 54Поддержка клиентов и служба помощиОтветы на вопросы поддержки в Telegram с Gemini и SupabaseШагов: 13Генерация и обогащение лидовИмпорт лидов, отправка холодных писем и классификация ответов в Gmail с помощью OpenRouterШагов: 20