Automate Umami Analytics with n8n and AI for Smarter SEO

Discover how this n8n workflow automates the extraction of Umami website analytics, processes the data through AI for insightful SEO summaries, and saves results to Baserow for easy tracking, saving hours of manual reporting.
httpRequest
code
baserow
+3
Workflow Identifier: 2326
NODES in Use: Manual Trigger, Schedule Trigger, HTTP Request, Code, Baserow, Sticky Note

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 pulls website data from Umami every week and sends it to an AI for SEO advice.
It gets stats like pageviews and visitors from the last and current week, compares them, and makes a readable SEO report.
Then it saves the AI’s summary and suggestions in a Baserow database for easy tracking.
This stops you from copying data by hand and saves about four hours weekly.


Tools and services used

  • Umami Analytics API: To fetch website metrics like pageviews, visits, and time spent.
  • Openrouter AI (Meta LLaMA Model): To generate SEO markdown summaries and suggestions.
  • Baserow Database: To store AI results and raw data for history and reporting.
  • n8n Platform: For automation via HTTP requests, code nodes, and triggers.
  • HTTP Header Auth: Secures the API calls to Umami and AI services.

Who should use this workflow

If you spend hours manually copying Umami stats every week, this is for you.
It works best if you have API access to Umami and want SEO insights fast.
No deep technical skills needed, but some familiarity with n8n helps.
It suits digital marketers or blog owners who want errors gone and time saved.


Inputs, processing, and outputs

Inputs

  • Umami API credentials and website ID.
  • Openrouter AI API key.
  • Baserow database details like table and field IDs.

Processing steps

  • Schedule or manual trigger starts the workflow.
  • HTTP nodes fetch summary stats and page data from Umami for current and previous weeks.
  • Code nodes simplify and URL encode key metric data for AI prompts.
  • HTTP nodes send data prompts to Openrouter AI for SEO summaries and improvement suggestions.
  • Baserow node saves AI results, reports, and dates for tracking.

Outputs

  • AI-generated SEO markdown tables and suggestions comparing weeks.
  • Stored records in Baserow with raw and AI-processed data.
  • Time and error reduction for weekly SEO reporting.

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

Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor where you work on automations.
  3. Choose the option “Import from File” and select the downloaded workflow file.

Configure required settings

  1. Enter your Umami API credentials and website ID in the HTTP Request nodes.
  2. Add your Openrouter AI API key in the HTTP Header Auth for AI nodes.
  3. Update the Baserow node with your database table ID and field IDs for date, summary, top pages, and blog name.
  4. Check and adjust any timezone or URL parameters to fit your region or site.

Test and activate

  1. Run the workflow once manually with the Manual Trigger. Check all steps and output data looks correct.
  2. If all is good, activate the schedule trigger node to run automatically every week.
  3. If self hosting n8n, ensure your server runs reliably by visiting self-host n8n.

Common edge cases and errors

  • Unauthorized (401) errors: Usually bad or missing API keys for Umami or Openrouter AI.
    Check your keys and update credential nodes.
  • Empty AI responses or errors: May happen if prompt format is wrong or Openrouter quota is reached.
    Simplify the prompt or confirm API limits in your account.
  • Data saving fails in Baserow: Happens when table or field IDs are wrong or missing.
    Confirm IDs exactly match your Baserow setup and re-test.
  • No data from Umami API: Incorrect website ID, wrong dates, or timezone mismatch causes empty results.
    Check API URLs and timezone strings carefully.

Customization ideas

  • Change the timezone in Umami API calls to your preferred region by adjusting the “timezone” param.
  • Switch the AI model in HTTP nodes to others supported by Openrouter if desired.
  • Modify date ranges in API call parameters for monthly or custom periods instead of weekly.
  • Update Baserow node to save to different tables or add fields for more details.
  • Add a Gmail node after saving data to send email alerts about new SEO reports.

Summary of the workflow benefits

✓ Saves about 4 hours weekly by automating Umami data collection and SEO reporting.
✓ Removes manual copy-paste errors and messy formatting.
✓ Provides easy-to-read SEO markdown reports and improvement tips powered by AI.
✓ Stores historical data and AI insights in Baserow for future review.
✓ Can run manually or on a weekly schedule.


Frequently Asked Questions

401 Unauthorized errors occur due to invalid or missing API keys in the Umami HTTP Header Auth credentials.
Check that the Openrouter AI API key is correct, confirm usage limits are not exceeded, and ensure prompts are properly formatted.
Verify that the Baserow table ID and field IDs used in the node match exactly the database schema being written to.
Yes, the workflow can run on self-hosted n8n. Ensure proper installation and configuration; see https://buldrr.com/hosting/ for assistance.

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