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
Automate Umami Analytics with n8n and AI

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

Learn how to Build this Workflow with AI:

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


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.

Automate Umami Analytics with n8n and AI

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Ritu Sanjali

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.