Web scraping & screenshot automation with GPT 4.1 mini and Firecrawl
π Overview
This template uses Firecrawlβs /search API to perform AI-powered web scraping and screenshots β no code required. Just type natural language prompts, and an AI Agent will convert them into precise Firecrawl queries.
βοΈ Setup
- Get your Firecrawl API Key from https://firecrawl.dev
- Add it to n8n using
HTTP Header Auth:- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
π What It Does
- Turns natural language into smart search queries
- Scrapes web data and captures full-page screenshots
- Returns titles, links, content, and images
π‘ Example
Input: > Find AI automation pages on YouTube (exclude Shorts)
Result:
{
"query": "intitle:AI automation site:youtube.com -shorts",
"limit": 5
}
n8n Web Scraping & Screenshot Automation with AI
This n8n workflow leverages AI to perform web scraping, generate screenshots, and extract information from web pages based on user prompts. It's designed to automate the process of gathering visual and textual data from websites, making it ideal for research, content creation, or monitoring.
What it does
This workflow automates the following steps:
- Receives Chat Message: It is triggered by an incoming chat message, which serves as the user's prompt for what to scrape or screenshot.
- AI Agent Processing: An AI Agent (likely powered by a large language model like GPT-4 mini via OpenRouter) interprets the chat message.
- Dynamic Web Interaction: Based on the AI's understanding, it executes an HTTP Request. This request is dynamically constructed by the AI to perform actions like:
- Navigating to a specified URL.
- Taking a screenshot of a webpage.
- Extracting specific content from the webpage.
- Information Extraction: The AI processes the response from the HTTP request (e.g., the content of the webpage or confirmation of a screenshot) to extract relevant information.
- Responds to Chat: The AI Agent then formulates a response based on the extracted information or the result of the web interaction, sending it back to the user via the chat.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running instance of n8n.
- OpenRouter Account & API Key: For the "OpenRouter Chat Model" node to access various large language models (like GPT-4 mini).
- Web Scraping/Screenshot Service (Implicit): The "HTTP Request" node implies interaction with an external service capable of web scraping and/or screenshot generation. This service's API details would need to be configured within the "HTTP Request" node. Examples could include services like Firecrawl, Browserless, or a custom-built API.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Credentials:
- OpenRouter Chat Model: Set up your OpenRouter API key credential within n8n and select it in the "OpenRouter Chat Model" node.
- HTTP Request: Configure the "HTTP Request" node with the URL and any necessary authentication for your chosen web scraping/screenshot service. The exact parameters will depend on the service you use, but the AI Agent is designed to dynamically generate the request body/parameters.
- Activate the Workflow: Once configured, activate the workflow.
- Send a Chat Message: Interact with the "Chat Trigger" (e.g., via a configured chat platform like Telegram, Slack, or a custom webhook) by sending a message describing what you want to scrape or screenshot (e.g., "Take a screenshot of n8n.io and tell me the main heading", or "Scrape the latest blog post from example.com").
- Receive AI Response: The AI will process your request, interact with the web, and respond with the requested information or a confirmation.
Related Templates
AI-powered cover letter generator with resume matching & Google Docs
This workflow generates a tailored cover letter using a provided resume and job description. Users submit a job description via form (or workflow input), the workflow uses an LLM to write a professional, casual cover letter, then creates and populates a Google Doc and redirects the user to download or review it. --- What You Must Update Before Running Resume Content Update the Configuration node to include your own resume text. This resume is injected directly into the prompt and used as the sole source of experience and qualifications. LLM Credentials The workflow uses OpenRouter with an OpenAI-compatible model. You must: Add your own OpenRouter API credentials Optionally change the model selection if desired Google Docs Credentials This workflow creates and edits Google Docs. You must: Connect your own Google Docs OAuth credentials Update the destination folder ID if you want files saved elsewhere --- What You Can Configure Prompt Tone & Constraints Edit the Write Cover Letter agent system prompt to adjust: Tone (more formal or more casual) Length Writing style constraints Execution Method The workflow supports: Manual execution via form submission Execution as a sub-workflow via workflow inputs
Forecast Zoho CRM deals with AlphaVantage market data, GPTβ4 and Slack alerts
Zoho CRM Deal Forecasting with External Market Factor This workflow automatically fetches active deals from Zoho CRM, retrieves real-time market signals, calculates AI-enhanced forecast metrics, evaluates deal-market alignment, stores data in a database, updates CRM, and sends a summary alert to Slack. This workflow runs weekly to help sales teams make data-driven decisions. It fetches all open deals from Zoho, calculates expected revenue using deal amount, probability, seasonal trends, and market signals. An AI node evaluates each dealβs match ratio against current market conditions. Forecasts and AI insights are stored in a database and written back into Zoho. A Slack message summarizes the key metrics for easy review. You receive: Weekly automated deal forecast. AI-powered deal-market alignment insights. Database storage for historical trends. Slack summary notifications. Ideal for sales teams wanting real-time insights into pipeline health and market alignment without manual calculations. Quick Start β Implementation Steps Import the provided n8n workflow JSON file. Add your Zoho CRM credentials in all relevant nodes. Add your AlphaVantage API key in the Market Signal node. Connect your Slack credentials and select the channel for alerts. Connect your Supabase (or preferred database) account for storing forecasts. Activate the workflow β it will run automatically on the configured weekly schedule. What It Does This workflow automates deal forecasting with AI-enhanced insights: Fetches all active deals from Zoho CRM. Retrieves real-time market data (SPY index) from AlphaVantage. Combines deal and market data for forecast calculations. Calculates expected revenue using: Deal amount Probability Seasonal factors Market signals Sends deal data to an AI node for match ratio, confidence level, and reasoning. Parses AI output and merges it with forecast data. Stores forecast & AI metrics in a database (Supabase). Updates Zoho CRM with adjusted forecast and AI insights. Sends a summary alert to Slack including: Deal name and stage Amount, probability, and expected revenue Market signal and seasonal factor AI match ratio and confidence This ensures teams see clear, actionable sales insights every week. Whoβs It For This workflow is ideal for: Sales managers and CRM admins Revenue operations teams Forecasting analysts Teams using Zoho CRM and Slack for pipeline management Anyone wanting AI insights on market alignment for deals Requirements to Use This Workflow To run this workflow, you need: n8n instance (cloud or self-hosted) Zoho CRM account with API access AlphaVantage API key for market data Slack workspace with API permissions Supabase or other database for storing forecasts Basic understanding of deals, probabilities, and seasonal forecasting How It Works Weekly Trigger β Workflow runs automatically once a week. Fetch Deals β Retrieves all active deals from Zoho CRM. Get Market Signal β Fetches real-time market data. Combine Deal & Market Info β Merges deal and market datasets. Generate Forecast Metrics β Calculates expected revenue using deal info, seasonality, and market influence. AI Deal Match Evaluator β AI evaluates alignment of each deal with market conditions. Parse AI Output & Merge Forecast β Parses AI response and combines with forecast data. Store Forecast in Database β Saves forecast and AI insights to Supabase. Update Deal Forecast in Zoho β Updates deals with adjusted forecast and AI insights. Send Forecast Summary to Slack β Sends a clear summary with key metrics. Setup Steps Import the workflow JSON file into n8n. Add Zoho credentials for deal fetch and update nodes. Add AlphaVantage API key for market signal node. Configure Supabase node to store forecast data. Add Slack credentials and choose a channel for notifications. Test the workflow manually to ensure metrics are calculated correctly. Activate the weekly trigger. How To Customize Nodes Forecast Calculation Modify Generate Forecast Metrics node to adjust seasonal factors or calculation logic. AI Match Evaluation You can tweak prompts in Message a Model to adjust AI scoring logic or reasoning output. Database Storage Supabase node can include additional fields: Timestamp Deal owner Notes or comments Additional KPIs Slack Alerts Customize message format, emojis, or mentions for team readability. Add-Ons (Optional Enhancements) Integrate multiple market indices for more accurate forecasting. Add multi-stage probability adjustments. Create dashboards using stored forecast data. Extend AI evaluation for risk scoring or priority recommendations. Use Case Examples Pipeline Health Quickly see which deals are aligned with market conditions. Forecast Accuracy Track historical vs AI-enhanced forecasts for trend analysis. Team Notifications Slack summary alerts keep sales and leadership informed weekly. Troubleshooting Guide | Issue | Possible Cause | Solution | |-------|----------------|---------| | No Slack alerts | Invalid credentials | Re-check Slack API key and channel | | Forecast not updating | Zoho API error | Verify Zoho OAuth credentials | | AI node fails | Model misconfiguration | Check OpenAI API credentials & prompt format | | Data not stored | Supabase connection issue | Verify credentials and table mapping | Need Help? If you need assistance setting up the workflow, modifying the AI forecast logic or integrating Slack summaries our n8n workflow development team at WeblineIndia can help. We provide workflow customization, advanced forecasting and reporting solutions for Zoho CRM pipelines.
Get a Slack alert when a workflow went wrong
This workflow allows you to have a Slack alert when one of your n8n workflows gets an issue. Error trigger: This node launched the workflow when one of your active workflows gets an issue Slack node: This node sends you a customized message to alert you and to check the error β οΈ You don't have to activate this workflow for it to be effective