Automate n8n Creator Leaderboard Stats with OpenAI & Google APIs

This workflow automates reporting on top n8n community creators and workflows by aggregating GitHub data, generating Markdown reports with OpenAI and Google Gemini AI, and sharing via Gmail, Google Drive, and Telegram. Save hours and get detailed insights effortlessly.
httpRequest
set
aggregate
+18
Workflow Identifier: 2006
NODES in Use: httpRequest, set, aggregate, lmChatOpenAi, executeWorkflowTrigger, toolWorkflow, convertToFile, readWriteFile, stickyNote, scheduleTrigger, splitOut, sort, limit, merge, googleDrive, markdown, gmail, agent, lmChatGoogleGemini, chainLlm, telegram
Automate n8n leaderboard stats with OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This n8n workflow automates fetching, sorting, and reporting of n8n community leaderboard stats.
It solves the problem of manual, error-prone data collection about creators and workflows.
The result is a daily detailed Markdown report sent by email, saved on Google Drive, and optionally shared on Telegram.
The workflow finds top creators and workflows based on unique weekly activity.


Who Should Use This Workflow

Community managers tracking n8n creators and popular workflows will find this useful.
It is for users who want to save hours each day by automating data retrieval, sorting, and reporting.
People managing community growth and engagement can get reliable stats without manual work.


Tools and Services Used

  • GitHub Raw JSON URLs: Source data for creators and workflows stats.
  • OpenAI API (GPT-4o-mini): Generates the detailed Markdown report.
  • Google Gemini API: Creates a concise list of top workflows.
  • Google Drive API: Saves reports as Markdown files.
  • Gmail OAuth2: Sends email reports with proper formatting.
  • Telegram Bot API (optional): Sends workflow highlights via chat.

Inputs → Processing → Outputs

Inputs

  • Raw JSON data files of creators and workflows fetched daily via HTTP requests from GitHub.
  • API credentials for OpenAI, Google Gemini, Google Drive, Gmail, and Telegram.
  • Configuration values such as dates, URLs, filenames, and email addresses.

Processing Steps

  • JSON data is parsed to extract arrays of creators and workflows.
  • Each item is split out for individual processing.
  • Creators and workflows are sorted by unique weekly inserters to find top performers.
  • Limits are applied to keep only the top 10 creators and top 50 workflows.
  • Data fields for creators and workflows are normalized and merged by usernames.
  • The merged data is aggregated into a single JSON object to prepare for AI summarization.
  • OpenAI GPT-4o-mini generates a Markdown report describing top creators and workflows.
  • The Markdown report is converted to HTML for email formatting.
  • Google Drive receives a copy of the report file.
  • Google Gemini AI generates a summarized top 10 workflows list in HTML.
  • Emails with full reports and highlights are sent via Gmail.
  • Optional Telegram message with top 10 workflows is sent.

Outputs

  • Daily Markdown report saved locally and on Google Drive.
  • HTML formatted email reports sent to configured recipient addresses.
  • Optional Telegram chat messages with workflow highlights.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor.
  3. Choose “Import from File” in n8n and select the downloaded workflow file.

Step 2: Configure Required Credentials and Settings

  1. Add your API Keys and OAuth2 credentials for OpenAI, Google Gemini, Google Drive, Gmail, and optionally Telegram.
  2. Update any IDs, folder paths, email addresses, or chat IDs in nodes where needed.
  3. Check the Global Variables node to confirm the GitHub JSON URLs and filenames are correct.

Step 3: Test the Workflow

  1. Manually trigger the workflow once inside n8n.
  2. Watch execution to ensure no errors occur and outputs are generated.
  3. Verify the Markdown report is saved locally and on Google Drive.
  4. Confirm email reports are received by the set recipients.

Step 4: Activate for Production

  1. Enable the Schedule Trigger node or other triggers as needed.
  2. Check scheduled runs work correctly and continue to produce reports.
  3. Optionally, use self-host n8n to run this workflow on a private server.

Customization Ideas

  • Add more creator and workflow metrics in parsing nodes for richer reports.
  • Change the schedule to run hourly, daily, or weekly by editing the Schedule Trigger node.
  • Edit email recipient lists in Gmail nodes to notify different stakeholders.
  • Change the local save path for the Markdown report to network drives or team folders.
  • Activate and configure the Telegram node to get community alerts for new top workflows.

Common Edge Cases and Failures

HTTP request failures (404) usually happen if GitHub URLs or filenames are wrong.
Verify URLs in the Global Variables node by opening them in a browser.

Empty or partial reports from AI nodes can happen if API keys are invalid or usage limits exceeded.
Check keys and aggregated data completeness.

Emails not sent or received often relate to invalid Gmail OAuth credentials or spam filtering.
Reauthorize Gmail access and check spam folders.


Summary of Benefits and Outcomes

✓ Saves hours of manual work daily by automating data fetching and reporting.
✓ Reports top creators and workflows clearly with AI-generated summaries.
✓ Sends polished reports via email and saves copies on Google Drive.
✓ Supports Telegram alerts for quick community updates.
✓ Easy to import and configure in n8n with required credentials.


Automate n8n leaderboard stats with OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file from the page, open n8n editor, use “Import from File” to load it, then add required API credentials and update any email or folder IDs. Test once, then activate the schedule trigger.
HTTP 404 errors usually happen if the GitHub raw JSON URLs or filenames in the Global Variables node are incorrect. Check the URLs by opening them directly in a browser.
Yes. The workflow can be modified to use Google Gemini AI nodes alone for report generation, but combining both AI services provides richer reports.
Verify Gmail OAuth2 credentials are valid, reauthenticate if needed, and check recipient spam or junk folders. Whitelist the sender email if necessary.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.