Discover business ideas from HackerNews posts with GPT-4.1 analysis and Google Sheets
What it is
This n8n workflow monitors top Hacker News posts (in the Front Page) and identifies business-related pain points using AI.
How It Works
It filters posts by engagement (comments > 80, points > 200, and recent date), extracts key metadata, fetches the article content, and uses a GPT-4.1-based agent to detect and summarize pain points.
Results are appended to a Google Sheet for further analysis.
Setup
To run this workflow, you need to set up credentials for:
- OpenRouter: Uses an API Key. Generate this key directly from your OpenRouter account settings. (YT Tutorial : https://youtu.be/Cq5Y3zpEhlc)
- Google Sheets: Uses OAuth 2.0. Requires setup in Google Cloud Console (enable Sheets API, create OAuth Client ID with n8n redirect URI) to get a Client ID & Secret.
Ensure these credentials are created and selected in the respective n8n nodes (Get Posts, OpenRouter Chat Model nodes, Output The Results).
n8n Workflow: Discover Business Ideas from Hacker News with GPT-4 Analysis and Google Sheets
This n8n workflow automates the process of extracting potential business ideas from Hacker News posts, analyzing them with an AI agent (GPT-4 via OpenRouter), and then storing the results in a Google Sheet. It's designed to help you quickly identify and track promising concepts from tech discussions.
What it does:
- Triggers Manually: The workflow is initiated manually when you click "Execute workflow".
- Fetches Hacker News Posts: It retrieves the latest posts from Hacker News.
- Filters Posts: It applies a condition to filter posts based on a specific criterion (e.g., a keyword in the title or a minimum score). Note: The specific filtering condition is not visible in the provided JSON but is implied by the 'If' node.
- Loops Through Filtered Posts: For each relevant Hacker News post, the workflow processes it individually.
- Prepares Data for AI Analysis: It structures the Hacker News post data into a format suitable for the AI agent.
- Analyzes with AI Agent (GPT-4): An AI Agent, powered by an OpenRouter Chat Model (likely GPT-4 or similar), analyzes the Hacker News post to identify potential business ideas, problems it solves, or other relevant insights.
- Parses AI Output: A Structured Output Parser extracts the structured business idea information from the AI agent's response.
- Merges Data: The original Hacker News post data is merged with the AI-generated insights.
- Stores in Google Sheets: The combined data (Hacker News post details and AI analysis) is appended as a new row in a specified Google Sheet.
Prerequisites/Requirements:
- n8n Instance: A running instance of n8n.
- Hacker News Node: The built-in Hacker News node (no special credentials needed).
- OpenRouter Account & API Key: For the
OpenRouter Chat Modelnode to access AI models like GPT-4. - Google Account: With access to Google Sheets.
- Google Sheets Credential: Configured in n8n to allow the workflow to write to your Google Sheets.
Setup/Usage:
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Credentials:
- Google Sheets: Set up a Google Sheets credential (OAuth2 recommended) and select it in the "Google Sheets" node.
- OpenRouter: Set up an OpenRouter credential with your API key and select it in the "OpenRouter Chat Model" node.
- Customize the "If" Node:
- Review and adjust the conditions in the "If" node to filter Hacker News posts according to your specific interests (e.g., minimum score, keywords in title/URL).
- Configure the "Edit Fields" Node:
- Ensure the "Edit Fields" node correctly maps and transforms the Hacker News data into the format expected by the AI Agent.
- Configure the "AI Agent" Node:
- Review the prompt and instructions given to the AI Agent to ensure it generates the desired business insights.
- Configure the "Structured Output Parser" Node:
- Ensure the parser is set up to correctly extract the structured data from the AI Agent's output.
- Configure the "Google Sheets" Node:
- Specify the Spreadsheet ID and Sheet Name where you want to store the business ideas.
- Ensure the "Operation" is set to "Append Row" and the "Insert Key-Value" mapping matches the output from the "Merge" node and the columns in your Google Sheet.
- Activate and Execute:
- Activate the workflow.
- Click "Execute Workflow" to run it manually and start discovering business ideas!
Related Templates
Create verified user profiles with email validation, PDF generation & Gmail delivery
Verified User Profile Creation - Automated Email Validation & PDF Generation --- Overview This comprehensive automation workflow streamlines the user onboarding process by validating email addresses, generating professional profile PDFs, and delivering them seamlessly to verified users. π― What This Workflow Does: Receives User Data - Webhook trigger accepts user signup information (name, email, city, profession, bio) Validates Email Addresses - Uses VerifiEmail API to ensure only legitimate email addresses proceed Conditional Branching - Smart logic splits workflow based on email verification results Generates HTML Profile - Creates beautifully styled HTML templates with user information Converts to PDF - Transforms HTML into professional, downloadable PDF documents Email Delivery - Sends personalized welcome emails with PDF attachments to verified users Data Logging - Records all verified users in Google Sheets for analytics and tracking Rejection Handling - Notifies users with invalid emails and provides guidance β¨ Key Features: β Email Verification - Prevents fake registrations and maintains data quality π Professional PDF Generation - Beautiful, branded profile documents π§ Automated Email Delivery - Personalized welcome messages with attachments π Google Sheets Logging - Complete audit trail of all verified users π Smart Branching - Separate paths for valid and invalid emails π¨ Modern Design - Clean, responsive HTML/CSS templates π Secure Webhook - POST endpoint for seamless form integration π― Perfect Use Cases: User registration systems Community membership verification Professional certification programs Event registration with verified attendees Customer onboarding processes Newsletter signup verification Educational platform enrollments Membership card generation π¦ What's Included: Complete workflow with 12 informative sticky notes Pre-configured webhook endpoint Email verification integration PDF generation setup Gmail sending configuration Google Sheets logging Error handling guidelines Rejection email template π οΈ Required Integrations: VerifiEmail - For email validation (https://verifi.email) HTMLcsstoPDF - For PDF generation (https://htmlcsstopdf.com) Gmail OAuth2 - For email delivery Google Sheets OAuth2 - For data logging β‘ Quick Setup Time: 15-20 minutes π Skill Level: Beginner to Intermediate --- Benefits: β Reduces manual verification work by 100% β Prevents spam and fake registrations β Delivers professional branded documents automatically β Maintains complete audit trail β Scales effortlessly with user growth β Provides excellent user experience β Easy integration with any form or application --- Technical Details: Trigger Type: Webhook (POST) Total Nodes: 11 (including 12 documentation sticky notes) Execution Time: ~3-5 seconds per user API Calls: 3 external (VerifiEmail, HTMLcsstoPDF, Google Sheets) Email Format: HTML with binary PDF attachment Data Storage: Google Sheets (optional) --- License: MIT (Free to use and modify) --- π BONUS FEATURES: Comprehensive sticky notes explaining each step Beautiful, mobile-responsive email template Professional PDF styling with modern design Easily customizable for your branding Ready-to-use webhook endpoint Error handling guidelines included --- Perfect for: Developers, No-code enthusiasts, Business owners, SaaS platforms, Community managers, Event organizers Start automating your user verification process today! π
Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok
This automation creates a fully integrated pipeline to generate AI-powered videos, store them, and publish them on TikTok β all automatically. It connects OpenAI Sora 2, and Postiz (for TikTok publishing) to streamline content creation. --- Key Benefits β Full Automation β From text prompt to TikTok upload, everything happens automatically with no manual intervention once set up. β Centralized Control β Google Sheets acts as a simple dashboard to manage prompts, durations, and generated results. β AI-Powered Creativity β Uses OpenAI Sora 2 for realistic video generation and GPT-5 for optimized titles. β Social Media Integration β Seamlessly posts videos to TikTok via Postiz, ready for your audience. β Scalable & Customizable β Can easily be extended to other platforms like YouTube, Instagram, or LinkedIn. β Time-Saving β Eliminates repetitive steps like manual video uploads or caption writing. --- How it works This workflow automates the end-to-end process of generating AI videos and publishing them to TikTok. It is triggered either manually or on a recurring schedule. Trigger & Data Fetch: The workflow starts by checking a specified Form for new entries. It looks for rows where a video has been requested (a "PROMPT" is filled) but not yet generated (the "VIDEO" column is empty). AI Video Generation: For each new prompt found, the workflow sends a request to the Fal.ai Sora 2 model to generate a video. It then enters a polling loop, repeatedly checking the status of the generation request every 60 seconds until the video is "COMPLETED". Post-Processing & Upload: Once the video is ready, the workflow performs several actions in parallel: Fetch Video & Store: It retrieves the final video URL, downloads the video file Generate Title: It uses the OpenAI GPT-4o-mini model to analyze the original prompt and generate an optimized, engaging title for the video. Publish to TikTok: The video file is uploaded to Postiz, a social media scheduling tool, which then automatically publishes it to a connected TikTok channel, using the AI-generated title as the post's caption. --- Set up steps To make this workflow functional, you need to complete the following configuration steps: Prepare the Google Sheet: Create a Form with at least "PROMPT", "DURATION", and "VIDEO" fields. Configure Fal.ai for Video Generation: Create an account at Fal.ai and obtain your API key. In both the "Create Video" and "Get status" HTTP Request nodes, set up the "Header Auth" credential. Set the Name to Authorization and the Value to Key YOURAPIKEY. Set up TikTok Publishing via Postiz: Create an account on Postiz and connect your TikTok account to get a Channel ID. Obtain your Postiz API key. In the "Upload Video to Postiz" and "TikTok" (Postiz) nodes, configure the API credentials. In the "TikTok" node, replace the placeholder "XXX" in the integrationId field with your actual TikTok Channel ID from Postiz. (Optional) Configure AI Title Generation: The "Generate title" node uses OpenAI. Ensure you have valid OpenAI API credentials configured in n8n for this node to work. --- Need help customizing? Contact me for consulting and support or add me on Linkedin. Header 2
Generate influencer posts with GPT-4, Google Sheets, and Media APIs
This template transforms uploaded brand assets into AI-generated influencer-style posts β complete with captions, images, and videos β using n8n, OpenAI, and your preferred image/video generation APIs. --- π§ Who itβs for Marketers, creators, or brand teams who want to speed up content ideation and visual generation. Perfect for social-media teams looking to turn product photos and brand visuals into ready-to-review creative posts. --- βοΈ How it works Upload your brand assets β A form trigger collects up to three files: product, background, and prop. AI analysis & content creation β An OpenAI LLM analyzes your brand tone and generates post titles, captions, and visual prompts. Media generation β Connected image/video generation workflows create corresponding visuals. Result storage β All captions, image URLs, and video URLs are automatically written to a Google Sheet for review or publishing. --- π§© How to set it up Replace all placeholders in nodes: <<YOURSHEETID>> <<FILEUPLOADBASE>> <<YOURAPIKEY>> <<YOURN8NDOMAIN>>/form/<<FORM_ID>> Add your own credentials in: Google Sheets HTTP Request AI/LLM nodes Execute the workflow or trigger via form. Check your connected Google Sheet for generated posts and media links. --- π οΈ Requirements | Tool | Purpose | |------|----------| | OpenAI / compatible LLM key | Caption & idea generation | | Image/Video generation API | Creating visuals | | Google Sheets credentials | Storing results | | (Optional) n8n Cloud / self-hosted | To run the workflow | --- π§ Notes The workflow uses modular sub-workflows for image and video creation; you can connect your own generation nodes. All credentials and private URLs have been removed. Works seamlessly with both n8n Cloud and self-hosted setups. Output is meant for creative inspiration β review before posting publicly. --- π§© Why itβs useful Speeds up campaign ideation and content creation. Provides structured, reusable results in Google Sheets. Fully visual, modular, and customizable for any brand or industry. --- π§ Example Use Cases Influencer campaign planning Product launch creatives E-commerce catalog posts Fashion, lifestyle, or tech brand content --- β Security & best practices No hardcoded keys or credentials included. All private URLs replaced with placeholders. Static data removed from the public JSON. Follows n8nβs template structure, node naming, and sticky-note annotation guidelines. --- π¦ Template info Name: AI-Powered Influencer Post Generator with Google Sheets and Image/Video APIs Category: AI / Marketing Automation / Content Generation Author: Palak Rathor Version: 1.0 (Public Release β October 2025)