🎬 Turn webinars into a 5-day email course using WayinVideo, GPT-4o-mini, and Google Sheets

⚑ 14 views · 🎬 Content Creation & Video

Description

Description

Submit any webinar recording URL using a simple form along with your course name, target audience, brand name, and preferred email tone and the workflow builds a complete 5-day drip email course automatically. WayinVideo AI Clipping extracts the top 5 most engaging teaching moments from the recording, ranked by engagement score so the best content becomes Day 1. GPT-4o-mini then writes a complete email lesson for each clip β€” with subject line, preview text, email body, key takeaway, CTA text, and a CTA URL placeholder β€” where Day 1 is welcoming, the final day wraps up, and middle days flow naturally between them. All 5 emails are saved to Google Sheets as a ready-to-use drip course with Status set to Draft. Built for course creators, coaches, educators, and marketing teams who want to turn any webinar into a ready-to-send email sequence without writing a single word manually.


What This Workflow Does


Setup Requirements

Tools Needed

Credentials Required

> ⚠️ WayinVideo API key appears in 2 steps β€” replace YOUR_WAYINVIDEO_API_KEY in both 2. WayinVideo β€” Submit AI Clipping and 4. WayinVideo β€” Get Clip Results. Missing either one will cause the workflow to fail.

Estimated Setup Time: 15–20 minutes


Step-by-Step Setup

  1. Import the workflow β€” Open n8n β†’ Workflows β†’ Import from JSON β†’ paste the workflow JSON β†’ click Import

  2. Get your WayinVideo API key β€” Log in to your WayinVideo account β†’ go to Account Settings β†’ copy your API key

  3. Add your WayinVideo API key to node 2 β€” Open node 2. WayinVideo β€” Submit AI Clipping β†’ find the Authorization header value Bearer YOUR_WAYINVIDEO_API_KEY β†’ replace YOUR_WAYINVIDEO_API_KEY with your actual key

  4. Add your WayinVideo API key to node 4 β€” Open node 4. WayinVideo β€” Get Clip Results β†’ find the same Authorization header β†’ replace YOUR_WAYINVIDEO_API_KEY with the same key

  5. Connect OpenAI β€” Open node 9. OpenAI β€” GPT-4o-mini Model β†’ click the credential dropdown β†’ add your OpenAI API key β†’ test the connection

  6. Create your Google Sheet tab β€” Open your Google Sheet β†’ add a tab named exactly Drip Email Course β†’ add these 16 column headers in row 1: Webinar Title, Course Name, Day Number, Email Subject, Preview Text, Email Body, Key Takeaway, CTA Text, CTA URL Placeholder, Word Count, Clip Title, Clip Score, Clip Timestamp, Webinar URL, Generated On, Status

  7. Get your Google Sheet ID β€” Open your Google Sheet in a browser β†’ copy the string between /d/ and /edit in the URL β€” this is your Sheet ID

  8. Connect Google Sheets β€” Open node 11. Google Sheets β€” Save Email Course β†’ click the document field β†’ replace YOUR_GOOGLE_SHEET_ID by selecting your spreadsheet from the dropdown or entering the Sheet ID manually β†’ click the credential dropdown β†’ add Google Sheets OAuth2 β†’ authorize access

  9. Activate the workflow β€” Toggle the workflow to Active β†’ copy the Form URL from node 1. Form β€” Webinar URL + Course Details β†’ open it in a browser to submit your first webinar


How It Works (Step by Step)

Step 1 β€” Form: Webinar URL + Course Details You open the form URL in a browser and fill in six fields: the webinar recording URL (YouTube, Zoom, Vimeo, or any direct link), the webinar or course title, the mini-course name (what your subscribers will see), the target audience, your brand or sender name, and the email tone (e.g. β€œProfessional and educational” or β€œCasual and friendly”). Submitting the form starts the workflow.

Step 2 β€” HTTP: WayinVideo β€” Submit AI Clipping The webinar URL is sent to WayinVideo’s AI Clipping API. The request asks for clips between 60 and 90 seconds long, limited to 5 clips, with export disabled since you only need the metadata and descriptions for writing emails. A project name is auto-generated from your mini-course name. WayinVideo returns a task ID confirming the job has started.

Step 3 β€” Wait: 90 Seconds The workflow pauses for 90 seconds before the first status check, giving WayinVideo time to identify and extract the best teaching moments from the recording.

Step 4 β€” HTTP: WayinVideo β€” Get Clip Results A GET request checks the clipping results endpoint using the task ID from step 2. It returns the current processing status and, once complete, the full clips array with title, description, engagement score, timestamp, and tags for each extracted moment.

Step 5 β€” IF: Clipping Complete? This is the polling gate. If the status equals SUCCEEDED (YES path), the clips are ready and the workflow moves forward to extraction. If still processing (NO path), the workflow routes to 6. Wait β€” 30 Seconds Retry which pauses 30 seconds then loops back to step 4 to check again. This repeats until SUCCEEDED.

Step 6 β€” Wait: 30 Seconds Retry When clips are not yet ready, the workflow waits 30 seconds then returns to step 4 for another check. The loop continues automatically.

Step 7 β€” Code: Extract Clips + Assign Days The clips array is sorted by engagement score from highest to lowest. The top 5 clips are kept and assigned Day 1 through Day 5 in order β€” Day 1 gets the highest-scoring clip. Millisecond timestamps are converted to MM:SS format. All six form inputs are merged into each clip row so every email lesson has full course context.

Step 8 β€” AI Agent: Write Email Lesson GPT-4o-mini receives the clip description as the main input and a system prompt with the full course context: webinar title, course name, target audience, brand name, tone, day number, total days, clip title, engagement score, clip tags, and timestamp. Ten email writing rules are enforced: content only from the clip, tone consistency, day-position awareness (welcoming on Day 1, concluding on Day 5, continuing in middle days), subject line 40–55 characters, preview text 85–100 characters, body 200–300 words in short paragraphs, and a single action-oriented CTA. The output uses six labeled sections.

Step 9 β€” OpenAI: GPT-4o-mini Model This is the language model powering the email writing. It runs with default settings for consistent, readable email copy.

Step 10 β€” Code: Parse Email Output All six labeled sections are extracted from the AI output using regex: SUBJECT_LINE, PREVIEW_TEXT, EMAIL_BODY, KEY_TAKEAWAY, CTA_TEXT, and CTA_URL_PLACEHOLDER. The word count of the email body is also calculated. If the subject line or email body are missing, the step throws a clear error. All clip metadata and course details are packaged for the sheet row.

Step 11 β€” Google Sheets: Save Email Course One row is appended to your Drip Email Course tab with all 16 columns populated: webinar title, course name, day number, subject line, preview text, email body, key takeaway, CTA text, CTA URL placeholder, word count, clip title, clip engagement score, timestamp range, webinar URL, generation timestamp, and Status set to Draft. All five email days are saved as five separate rows in the same sheet.


Key Features

βœ… Best clip becomes Day 1 automatically β€” Clips are sorted by engagement score before day assignment β€” your most engaging teaching moment always leads the course βœ… Day-position awareness in every email β€” GPT knows whether it is writing Day 1, a middle day, or the final day and adjusts the tone and structure accordingly β€” without any extra prompt logic needed βœ… Six email components per lesson β€” Subject line, preview text, body, key takeaway, CTA text, and CTA URL placeholder are all generated separately so you can copy each field directly into your email platform βœ… CTA URL placeholder included β€” Every email ends with a clearly labeled placeholder (e.g. YOUR_COURSE_LINK) so you know exactly where to paste your own link before sending βœ… Word count per email logged β€” The sheet records the word count of each email body so you can quickly verify length without opening every email βœ… Tone applied consistently across all 5 days β€” Your chosen tone from the form is passed to every email’s GPT prompt so the entire course sounds like one consistent voice βœ… Draft status for every row β€” All five emails are saved with Status set to Draft so you have a clear review stage before loading them into your email platform


Customisation Options

Change the clip duration range β€” In node 2. WayinVideo β€” Submit AI Clipping, change "target_duration": "DURATION_60_90" to "DURATION_30_60" for shorter clips or "DURATION_90_120" for longer ones β€” matching the email length you want to write from.

Add a retry limit to stop infinite polling β€” Before node 6. Wait β€” 30 Seconds Retry, add a Set step that increments a poll counter, then add a second IF check to stop after 15 polls and send a Gmail error notification instead of looping indefinitely.

Send the completed course to Gmail for review β€” After node 11. Google Sheets β€” Save Email Course (on Day 5 row), add a Gmail step that sends all 5 subject lines, preview texts, and a link to the Drip Email Course sheet so you get a complete course digest in your inbox when it is ready.

Add a Slack notification when the course is generated β€” After the Day 5 row is saved, add a Slack step that posts the course name, webinar title, and a link to the Google Sheet to a #content-team channel so your team knows a new email course is ready to review.

Extend to a 7-day course β€” In node 2. WayinVideo β€” Submit AI Clipping, change "limit": 5 to 7 to extract 7 clips β€” the day assignment logic in node 7. Code β€” Extract Clips + Assign Days automatically adapts to however many clips are returned.


Troubleshooting

Form submission not starting the workflow:

WayinVideo returning an error on submission:

Workflow stuck in the polling loop:

GPT not generating all six email sections:

Google Sheets not logging all 5 rows:


Support

Need help setting this up or want a custom version built for your team or agency?

πŸ“§ Email: info@incrementors.com 🌐 Website: https://www.incrementors.com/

πŸ”— Nodes Used

Google Sheets, HTTP Request, AI Agent, OpenAI Chat Model, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup