Back to Catalog

Automated SEO Keyword Tracking and Research via Semrush API in Google Sheets

Evoort SolutionsEvoort Solutions
830 views
2/3/2026
Official Page

๐Ÿ”Ž Automated Keyword Research Workflow with Google sheet logging & Semrush API

Description:
Easily collect keywords and country input, run automated keyword research via the Semrush Keyword Research API on RapidAPI, and store results in Google Sheets for seamless tracking and analysis.


โš™๏ธ Node-by-Node Explanation

๐ŸŸข On form submission (formTrigger)

  • Collects keyword and country inputs from the user via a simple form to start the research process.
  • Triggers the workflow execution upon submission.

๐ŸŒ Keyword Research (httpRequest)

  • Sends a POST request with user inputs (keyword and country) to the Semrush Keyword Research.
  • Retrieves keyword suggestions, search volume, and related data for comprehensive keyword insights.

๐Ÿ“„ Append Data to Google Sheet (googleSheets)

  • Automatically appends the keyword research results into a connected Google Sheets document.
  • Enables easy tracking, sharing, and further analysis of keyword data.

๐Ÿ“ˆ Example Spreadsheet Structure

| Keyword | Country | Search Volume | CPC | Competition | Keyword Difficulty | Related Keywords | Date of Research | |---------------|---------|---------------|------|-------------|--------------------|-------------------------------------|------------------| | keyword1 | US | 10,000 | $2.50| 0.75 | 45 | keyword2, keyword3 | 2025-09-09 | | example term | UK | 15,000 | $1.80| 0.60 | 38 | term1, example keyword | 2025-09-09 |

๐ŸŒŸ Benefits

  • ๐Ÿš€ Powered by Semrush Keyword Research API on RapidAPI: Reliable, up-to-date keyword insights accessible via a simple API integration.
  • ๐Ÿ”„ Fully Automated: From user input to data storage, the process is seamless and requires no manual handling.
  • ๐Ÿ“Š Centralized Data Storage: Storing results in Google Sheets ensures accessibility and easy collaboration.
  • ๐Ÿ“ˆ Scalable & Repeatable: Run keyword research on-demand for multiple keywords and countries effortlessly.

๐Ÿš€ Use Cases

  • ๐Ÿข SEO Agencies: Quickly gather keyword data for clients in different markets using the Semrush Keyword Research.
  • ๐Ÿ“ฑ Digital Marketing Teams: Monitor and expand keyword strategies by collecting keyword ideas and volume regularly through the Semrush Keyword Research.
  • ๐Ÿ”Ž Content Creators: Identify trending and high-traffic keywords tailored by country to optimize content via the Semrush Keyword Research API.
  • ๐Ÿ“… Automated Reporting: Generate scheduled keyword research reports by integrating this workflow into larger marketing automation pipelines.

๐Ÿ”‘ How to Get Your API Key for Semrush Keyword Research

  1. Visit the API Page:
    Go to the Semrush Keyword Research on RapidAPI.

  2. Sign Up/Login:
    Create an account or log in if you already have one.

  3. Subscribe to the API:
    Click "Subscribe to Test" and choose a plan (free or paid).

  4. Copy Your API Key:
    After subscribing, your API Key will be available in the "X-RapidAPI-Key" section under "Endpoints".

  5. Use the Key:
    Include the key in your API requests like this:

    -H "X-RapidAPI-Key: YOUR_API_KEY"
    

๐Ÿ›  Customizing the Workflow

To modify the automated workflow and adapt it to your specific use case, follow these guidelines:

  1. Adjust the Data Retrieval Process:
    You can modify the data you want to receive from the Semrush API. For example, if youโ€™re only interested in search volume and CPC, you can filter out the other results in the API request.

  2. Add More Countries:
    If you work with multiple regions, modify the workflow to accept multiple country inputs. You could either pass in a list of countries or have a dropdown on the form that lets users select their country of choice.

  3. Expand Keyword Types:
    The workflow can be expanded to collect data for different types of keywords, such as long-tail or LSI (Latent Semantic Indexing) keywords, depending on your SEO needs.

  4. Set Up Scheduled Keyword Reporting:
    To automate reporting, you can schedule keyword research reports to run at regular intervals, such as monthly, using Google Apps Script or another task scheduler. This way, youโ€™ll always have fresh data on hand for analysis.

โœ… Tips for Smooth Workflow Integration

  1. Test Your API Integration:
    Run a test to check if data is properly flowing into your Google Sheet before automating the process.

  2. Set Up Notifications:
    Use Google Sheets' built-in notifications or an external automation tool (e.g., Zapier, Integromat) to notify you when new data is added or if thereโ€™s an issue with the workflow.

  3. Handle Errors Gracefully:
    Add error handling in your automated process to prevent issues like missing data or API request failures from disrupting your workflow.

n8n Form Trigger with Google Sheets and HTTP Request

This n8n workflow demonstrates a basic setup for triggering an action based on a form submission, interacting with a Google Sheet, and making an HTTP request. While the specific purpose isn't fully defined by the JSON, it lays the groundwork for data collection and external API calls.

What it does

This workflow is designed to:

  1. Listen for form submissions: It waits for data to be submitted through an n8n-generated form.
  2. Interact with Google Sheets: It includes a Google Sheets node, suggesting it's intended to read from or write data to a Google Sheet.
  3. Make an HTTP Request: It includes an HTTP Request node, indicating it can send data to an external API or retrieve information from a web service.

Prerequisites/Requirements

  • n8n Instance: A running n8n instance to host the workflow.
  • Google Account: A Google account with access to Google Sheets if you intend to use the Google Sheets node for read/write operations.
  • Google Sheets Credential: An n8n credential for Google Sheets (OAuth2 or Service Account) configured in your n8n instance.
  • External API/Service: If you plan to use the HTTP Request node, you'll need access to an external API or web service and potentially its authentication details.

Setup/Usage

  1. Import the Workflow:
    • Copy the provided JSON code.
    • In your n8n instance, click "New" in the workflows sidebar.
    • Click the "Import from JSON" button and paste the workflow JSON.
  2. Configure the "On form submission" Trigger:
    • Double-click the "On form submission" node.
    • You will see the webhook URL for this form. You can use this URL to submit data to the workflow.
    • Define the expected fields for your form submission if needed (though not explicitly defined in this basic JSON).
  3. Configure the "Google Sheets" Node:
    • Double-click the "Google Sheets" node.
    • Select your Google Sheets credential.
    • Specify the Spreadsheet ID and Sheet Name you wish to interact with.
    • Choose the Operation (e.g., "Append Row", "Read Sheet", etc.) and configure its parameters according to your needs.
  4. Configure the "HTTP Request" Node:
    • Double-click the "HTTP Request" node.
    • Set the Method (e.g., GET, POST).
    • Enter the URL of the external API or web service you want to interact with.
    • Configure any necessary Headers, Query Parameters, or Body data, potentially using expressions to pass data from previous nodes (like the form submission or Google Sheets output).
  5. Activate the Workflow:
    • Click the "Activate" toggle in the top right corner of the n8n editor to enable the workflow.

Once activated, submitting data to the URL provided by the "On form submission" node will trigger the workflow, which will then proceed to interact with Google Sheets and make an HTTP request as configured.

Related Templates

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chatโ€”turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. ๐Ÿ“‹ What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing ๐Ÿ”ง Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation ๐Ÿ”‘ Required Credentials OpenAI API Setup Go to platform.openai.com โ†’ API keys (sidebar) Click "Create new secret key" โ†’ Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai โ†’ Dashboard โ†’ API Keys Generate a new API key โ†’ Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) โš™๏ธ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflowโ€”chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" ๐ŸŽฏ Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration โš ๏ธ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601

Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct

Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselling and maximizing profit. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only. --- How it works The workflow is typically run by a Schedule Trigger (though a Manual Trigger is also shown) to check stock automatically. It reads a list of suppliers and their inventory page URLs from a central Google Sheet. The workflow loops through each supplier: A BrowserAct node scrapes the current stock and price data from the supplier's inventory page. A Code node parses this bulk data into individual product items. It then loops through each individual product found. The workflow checks WooCommerce to see if the product already exists based on its name. If the product exists: It proceeds to update the existing product's price and stock quantity. If the product DOES NOT exist: An If node checks if the missing product's category matches a predefined type (optional filtering). If it passes the filter, a second BrowserAct workflow scrapes detailed product attributes from a dedicated product page (e.g., DigiKey). An AI Agent (Gemini) transforms these attributes into a specific, styled HTML table for the product description. Finally, the product is created in WooCommerce with all scraped details and the AI-generated description. Error Handling: Multiple Slack nodes are configured to alert your team immediately if any scraping task fails or if the product update/creation process encounters an issue. Note: This workflow does not support image uploads for new products. To enable this functionality, you must modify both the n8n and BrowserAct workflows. --- Requirements BrowserAct API account for web scraping BrowserAct n8n Community Node -> (n8n Nodes BrowserAct) BrowserAct templates named โ€œWooCommerce Inventory & Stock Synchronizationโ€ and โ€œWooCommerce Product Data Reconciliationโ€ Google Sheets credentials for the supplier list WooCommerce credentials for product management Google Gemini account for the AI Agent Slack credentials for error alerts --- Need Help? How to Find Your BrowseAct API Key & Workflow ID How to Connect n8n to Browseract How to Use & Customize BrowserAct Templates How to Use the BrowserAct N8N Community Node --- Workflow Guidance and Showcase STOP Overselling! Auto-Sync WooCommerce Inventory from ANY Supplier

Madame AI Team | KaiBy Madame AI Team | Kai
600

Tax deadline management & compliance alerts with GPT-4, Google Sheets & Slack

AI-Driven Tax Compliance & Deadline Management System Description Automate tax deadline monitoring with AI-powered insights. This workflow checks your tax calendar daily at 8 AM, uses GPT-4 to analyze upcoming deadlines across multiple jurisdictions, detects overdue and critical items, and sends intelligent alerts via email and Slack only when immediate action is required. Perfect for finance teams and accounting firms who need proactive compliance management without manual tracking. ๐Ÿ›๏ธ๐Ÿค–๐Ÿ“Š Good to Know AI-Powered: GPT-4 provides risk assessment and strategic recommendations Multi-Jurisdiction: Handles Federal, State, and Local tax requirements automatically Smart Alerts: Only notifies executives when deadlines are overdue or critical (โ‰ค3 days) Priority Classification: Categorizes deadlines as Overdue, Critical, High, or Medium priority Dual Notifications: Critical alerts to leadership + daily summaries to team channel Complete Audit Trail: Logs all checks and deadlines to Google Sheets for compliance records How It Works Daily Trigger - Runs at 8:00 AM every morning Fetch Data - Pulls tax calendar and company configuration from Google Sheets Analyze Deadlines - Calculates days remaining, filters by jurisdiction/entity type, categorizes by priority AI Analysis - GPT-4 provides strategic insights and risk assessment on upcoming deadlines Smart Routing - Only sends alerts if overdue or critical deadlines exist Critical Alerts - HTML email to executives + Slack alert for urgent items Team Updates - Slack summary to finance channel with all upcoming deadlines Logging - Records compliance check results to Google Sheets for audit trail Requirements Google Sheets Structure Sheet 1: TaxCalendar DeadlineID | DeadlineName | DeadlineDate | Jurisdiction | Category | AssignedTo | IsActive FED-Q1 | Form 1120 Q1 | 2025-04-15 | Federal | Income | John Doe | TRUE Sheet 2: CompanyConfig (single row) Jurisdictions | EntityType | FiscalYearEnd Federal, California | Corporation | 12-31 Sheet 3: ComplianceLog (auto-populated) Date | AlertLevel | TotalUpcoming | CriticalCount | OverdueCount 2025-01-15 | HIGH | 12 | 3 | 1 Credentials Needed Google Sheets - Service Account OAuth2 OpenAI - API Key (GPT-4 access required) SMTP - Email account for sending alerts Slack - Bot Token with chat:write permission Setup Steps Import workflow JSON into n8n Add all 4 credentials Replace these placeholders: YOURTAXCALENDAR_ID - Tax calendar sheet ID YOURCONFIGID - Company config sheet ID YOURLOGID - Compliance log sheet ID C12345678 - Slack channel ID tax@company.com - Sender email cfo@company.com - Recipient email Share all sheets with Google service account email Invite Slack bot to channels Test workflow manually Activate the trigger Customizing This Workflow Change Alert Thresholds: Edit "Analyze Deadlines" node: Critical: Change <= 3 to <= 5 for 5-day warning High: Change <= 7 to <= 14 for 2-week notice Medium: Change <= 30 to <= 60 for 2-month lookout Adjust Schedule: Edit "Daily Tax Check" trigger: Change hour/minute for different run time Add multiple trigger times for tax season (8 AM, 2 PM, 6 PM) Add More Recipients: Edit "Send Email" node: To: cfo@company.com, director@company.com CC: accounting@company.com BCC: archive@company.com Customize Email Design: Edit "Format Email" node to change colors, add logo, or modify layout Add SMS Alerts: Insert Twilio node after "Is Critical" for emergency notifications Integrate Task Management: Add HTTP Request node to create tasks in Asana/Jira for critical deadlines Troubleshooting | Issue | Solution | |-------|----------| | No deadlines found | Check date format (YYYY-MM-DD) and IsActive = TRUE | | AI analysis failed | Verify OpenAI API key and account credits | | Email not sending | Test SMTP credentials and check if critical condition met | | Slack not posting | Invite bot to channel and verify channel ID format | | Permission denied | Share Google Sheets with service account email | ๐Ÿ“ž Professional Services Need help with implementation or customization? Our team offers: ๐ŸŽฏ Custom workflow development ๐Ÿข Enterprise deployment support ๐ŸŽ“ Team training sessions ๐Ÿ”ง Ongoing maintenance ๐Ÿ“Š Custom reporting & dashboards ๐Ÿ”— Additional API integrations Discover more workflows โ€“ Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
93