Automate Umami Analytics with n8n and AI for SEO Insights

Struggling to analyze Umami website analytics data manually? This n8n workflow automates fetching, analyzing, and saving your web stats with AI-powered SEO insights, saving hours and uncovering growth opportunities.
manualTrigger
httpRequest
code
+3
Workflow Identifier: 1755
NODES in Use: Manual Trigger, Schedule Trigger, HTTP Request, Sticky Note, Code, Baserow

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically gets website data from the Umami API every week. It looks at key numbers like pageviews, visitors, and bounces. Then, it sends this data to an AI that gives simple SEO advice. Finally, it saves the AI results into a Baserow database. This saves time and finds SEO tips faster.

The workflow compares data from this week and last week. It shows which pages improved or dropped. That helps find what makes the blog better or worse.


Who should use this workflow

This is for blog owners or small website managers. It helps if you want SEO tips but do not want to check your analytics manually. You do not need coding skills.

You should have an Umami account with API access, and accounts for Openrouter AI and Baserow to save data.


Tools and services used in the workflow

  • Umami Analytics API: To get website statistics data.
  • n8n Automation Platform: To connect API calls, process data, and run the workflow.
  • Openrouter AI API: To analyze SEO data and generate recommendations.
  • Baserow Database: To store the AI-generated SEO reports and track them over time.
  • HTTP Header Authentication: Used in n8n for secure API access.

How the workflow works: Inputs, processing, and outputs

Inputs

  • Umami API Key and website ID to fetch analytics data.
  • Openrouter API Key to access the AI model.
  • Baserow API token with table details to save results.

Processing steps

  • Fetch last 7 days summary stats with HTTP Request node.
  • Parse summary data and convert it to an URL-encoded JSON string with a Code node.
  • Send summary data to Openrouter AI via HTTP Request POST for SEO insights.
  • Get detailed page view data for this week and last week separately.
  • Parse each week’s page data into encoded strings using Code nodes.
  • Send both encoded weekly page datasets to AI for side-by-side SEO analysis and suggestions.
  • Save both AI reports into Baserow using the Baserow node with fields for date, summary, top pages, and blog name.

Outputs

  • Markdown tables with SEO summaries and page comparisons from AI models.
  • Stored SEO insights in Baserow for tracking long term website growth.
  • Automated workflow runs weekly without manual data pull or analysis.

Beginner step-by-step: How to use this workflow in n8n production

Step 1: Import the workflow

  1. Download the workflow file by clicking the “Download” button on this page.
  2. Open the n8n editor you use (cloud or self-host n8n).
  3. Click the menu to “Import from File” and select the downloaded workflow.

Step 2: Add your credentials and IDs

  1. Go to n8n credentials section and add your Umami API Key using HTTP Header Auth credentials.
  2. Add your Openrouter API Key similarly as a separate HTTP Header Auth credential.
  3. Add the Baserow API token credential and verify the database table is set as required.
  4. In the workflow, replace placeholders with your real websiteID and domains in the HTTP Request nodes.
  5. Check if the timezones in the URLs match your local time for proper data ranges.

Step 3: Test the workflow

  1. Run the Manual Trigger node to test the entire flow.
  2. Check each node output to make sure you get expected JSON data and AI responses.
  3. Fix any errors due to incorrect keys or data formatting before moving on.

Step 4: Activate for production

  1. Activate the workflow by toggling the activation switch in n8n.
  2. Confirm the Schedule Trigger node is set to run weekly (every Thursday).
  3. Monitor the workflow runs on schedule and adjust credentials or IDs if errors happen.

Customization ideas for the workflow

  • You can change the Schedule Trigger node to run daily or monthly if you want.
  • Update timezone strings in HTTP Request URLs to match your preferred zone.
  • Replace AI model names in Openrouter API calls for faster or more detailed SEO advice.
  • Add new fields like bounce rate or session duration in Baserow and map them in the workflow.
  • Include a Slack notification after saving data to get alerts about new SEO reports.

Possible errors and how to fix them

  • 401 Unauthorized means API key is invalid or missing. Recheck key in n8n credentials and add “Bearer ” prefix if needed.
  • If AI responses are empty or wrong, check data encoding in Code nodes. Make sure the API data is formatted correctly.
  • Saving data to Baserow can fail if fields do not match. Verify table columns and credentials setup.

Summary of results from using this workflow

✓ Saves over 3 hours each week of manual analytics work.
✓ Finds SEO trends and improvement points missed before.
✓ Automatically stores SEO insights for easier tracking.
✓ Runs reliably every week without user effort.
✓ Makes simple SEO advice easy to understand and act on.

Frequently Asked Questions

The workflow is designed for Umami API format. Using Google Analytics needs changing HTTP requests and data parsing.
Yes, each AI request uses Openrouter API credits. Monitor usage to control costs.
API keys are stored securely in n8n credentials. HTTPS endpoints are used for safe data transfer.
The workflow can be copied and adjusted per website or enhanced to use dynamic parameters for multiple sites.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free