Skip to main content

Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets

Workflow preview

Workflow preview
100%
Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow runs every Monday to fetch your latest YouTube videos, calculate performance rankings, generate an OpenAI insight summary, then share a weekly digest to Slack, log metr...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.aggregate, n8n-nodes-base.set, n8n-nodes-base.slack, n8n-nodes-base.splitout

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets
Workflow name
Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets

Quick overview

This workflow runs every Monday to fetch your latest YouTube videos, calculate performance rankings, generate an OpenAI insight summary, then share a weekly digest to Slack, log metrics to Google Sheets, and email an HTML report via Gmail.

How it works

  1. Runs every Monday at 08:00 using a schedule trigger.
  2. Calls the YouTube Data API to fetch the 20 most recent videos from your channel and extracts their video IDs and metadata.
  3. Batch-fetches each video’s statistics from the YouTube Data API, then calculates engagement rate, a composite performance score, ranks videos, and tags them as Top Performer, Average, or Underperformer.
  4. Aggregates the ranked list and sends it to OpenAI to generate a concise weekly performance insight summary and recommendations.
  5. Posts a formatted weekly digest to a Slack channel highlighting the best and worst video plus the top 5 rankings and AI insights.
  6. Appends each video’s weekly metrics to a Google Sheets tab for historical tracking, then emails a full ranked HTML report to the content manager using Gmail.

Setup

  1. Enable the YouTube Data API v3 and set your YouTube API key and channel ID in the two YouTube HTTP requests.
  2. Add an OpenAI credential (Chat Model) and select the model you want to use for generating the insight summary.
  3. Add a Slack credential and set the target channel ID for where the digest should post.
  4. Create a Google Sheet with a tab named “YouTube Performance Log”, add a Google Sheets credential, and replace the placeholder spreadsheet ID.
  5. Add a Gmail credential and set the recipient address for the weekly email report.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section Note 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section Note 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section Note 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Weekly Monday Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 6 - Fetch Recent Channel Videos

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Extract Video IDs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Fetch Video Statistics

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 9 - Parse & Score Videos

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Aggregate All Videos

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 11 - Prepare Digest Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Post Digest to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 13 - Split Videos for Logging

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 14 - Log Videos to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 15 - Re-Aggregate for Email

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 16 - Email Weekly Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 17 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

3. Summary Table

Workflow Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets
Complexity advanced
Nodes 17
Categories Market Research, AI Summarization
Author Avkash Kakdiya
Published 18 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16476/16476.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send weekly YouTube performance digests with OpenAI, Slack, Gmail and Sheets do?

Quick overview This workflow runs every Monday to fetch your latest YouTube videos, calculate performance rankings, generate an OpenAI insight summary, then share a weekly digest to Slack, log metr...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.