Apify to Mailjet, keyword rank reports that act
Keyword rank checks feel simple until you’re doing them for five pages, three markets, and a client who wants “a quick update” by noon. You end up bouncing between Google, spreadsheets, and screenshots, then still have to explain what the numbers mean.
SEO consultants get stuck packaging results. Marketing managers need clarity without another meeting. Busy founders just want to know what to fix. This Apify Mailjet reports automation turns one form submission into a clean SERP report (or an action list when you don’t rank).
You’ll see what the workflow does, what you need to run it, and how to adapt it for clients, regions, and ongoing monitoring.
How This Automation Works
See how this solves the problem:
n8n Workflow Template: Apify to Mailjet, keyword rank reports that act
flowchart LR
subgraph sg0["Start Flow"]
direction LR
n0["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/httprequest.dark.svg' width='40' height='40' /></div><br/>HTTP Request"]
n1["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/form.svg' width='40' height='40' /></div><br/>Start"]
n2["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/code.svg' width='40' height='40' /></div><br/>Localize"]
n3@{ icon: "mdi:swap-horizontal", form: "rounded", label: "If", pos: "b", h: 48 }
n4@{ icon: "mdi:swap-vertical", form: "rounded", label: "Edit Fields", pos: "b", h: 48 }
n5@{ icon: "mdi:brain", form: "rounded", label: "Groq AI", pos: "b", h: 48 }
n6@{ icon: "mdi:robot", form: "rounded", label: "SEO Agent", pos: "b", h: 48 }
n7["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/mailjet.svg' width='40' height='40' /></div><br/>Send Feedback Email"]
n8["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/mailjet.svg' width='40' height='40' /></div><br/>Send Result Table Email"]
n9["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/code.svg' width='40' height='40' /></div><br/>Build Table"]
n3 --> n9
n3 --> n6
n1 --> n2
n5 -.-> n6
n2 --> n0
n6 --> n7
n9 --> n8
n4 --> n3
n0 --> n4
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n1 trigger
class n6 ai
class n5 aiModel
class n3 decision
class n0 api
class n2,n9 code
classDef customIcon fill:none,stroke:none
class n0,n1,n2,n7,n8,n9 customIcon
The Challenge: Manual Rank Checks Don’t Produce Actions
Manual rank tracking is sneaky. It’s not just the “check Google” part. It’s switching locations, confirming language, digging through results, copying competitor URLs, formatting a report, and then answering the same question: “So what should we do next?” If you’re monitoring multiple keywords or clients, the effort multiplies fast. And when you don’t rank, the report often turns into a shrug, not a plan, which makes you look unprepared even when the issue is technical or competitive.
Small friction points pile up. Then they start stealing the time you meant to spend on strategy.
- Checking rankings across countries and languages forces you into repeat searches and inconsistent results.
- Clients get screenshots, not a real report, so your insights are harder to trust and harder to forward.
- When the domain doesn’t show up, you’re left doing extra detective work under deadline.
- Scaling to dozens of keywords means more copy-paste, more missed context, and more mistakes.
The Fix: Automated SERP Scraping + Email Reports (With AI Help)
This workflow starts with a simple web form where you enter a keyword, your domain, and the country/language you care about. n8n converts those choices into the correct localization codes, then calls Apify’s Google Search API to pull up to 100 results for that exact market. Next, it scans the results to detect whether your domain appears, and it shapes the data into something you can actually use. If you rank, you get a polished HTML email table via Mailjet showing your position plus the competitors around you (titles, URLs, and descriptions included). If you don’t rank, an AI agent analyzes the SERP and sends practical recommendations instead of a blank report.
The workflow starts when someone submits the form. Apify returns the live SERP data, n8n decides which path to take, and Mailjet delivers either a client-ready table or an AI-generated “here’s what to fix” email.
What Changes: Before vs. After
| What This Eliminates | Impact You’ll See |
|---|---|
|
|
Real-World Impact
Say you track 10 keywords for one site across 2 countries. Manually, you’ll spend maybe 10 minutes per keyword per country once you include localization, checking competitors, and formatting a shareable update, so that’s about 3 hours. With this workflow, you submit the form 20 times (or hand the form to a teammate), and the “work” becomes waiting for the emails to land. That’s often back to you in a few minutes, and you’re spending your time on decisions, not screenshots.
Requirements
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Apify to scrape localized Google SERPs.
- Mailjet to email polished HTML reports.
- Apify API token (get it from Settings → API & Integrations).
Skill level: Intermediate. You’ll paste API credentials, test the form trigger, and tweak a couple of email fields.
Need help implementing this? Talk to an automation expert (free 15-minute consultation).
The Workflow Flow
Form submission kicks it off. You enter keyword, domain, country, and language in the built-in n8n form, then hit submit. No extra tools needed to start.
Localization is normalized. The workflow converts your country/language selections into the API-ready codes so you’re querying the right market, not a “close enough” version.
Apify pulls the SERP and n8n interprets it. An HTTP request fetches up to 100 Google results, then fields are mapped into a consistent structure. After that, an If decision checks if your domain appears and routes to the correct reporting path.
Mailjet delivers the right email. If you rank, the workflow assembles an HTML table and emails it. If you don’t, the AI agent reviews what is ranking and sends a focused set of SEO recommendations instead.
You can easily modify the output from “email only” to “email plus logging” by adding Google Sheets or Microsoft Excel 365 after the mapping step. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Form Trigger
Set up the intake point so submissions start the workflow.
- Add the Form Entry Trigger node as your trigger.
- Open Form Entry Trigger and configure the form fields you want to collect (e.g., keyword, domain, region).
- Save the node to generate the form URL for submissions.
Tip: Use clear field labels in Form Entry Trigger so downstream mapping in Map Fields is easier.
Step 2: Connect External API
Normalize input and fetch ranking data through the external API chain.
- Connect Form Entry Trigger to Regionalize Input.
- In Regionalize Input, add code logic to normalize regions and query structure for your API.
- Connect Regionalize Input to External API Call.
- Configure External API Call with your API endpoint, method, and headers required by your ranking provider.
- Connect External API Call to Map Fields.
⚠️ Common Pitfall: If External API Call returns nested JSON, make sure Map Fields extracts the correct paths before routing.
Step 3: Set Up Search Optimization Agent
Map API data and route it into the AI-assisted feedback path when needed.
- In Map Fields, define the output structure that Branch Decision will evaluate (e.g., rank changes, thresholds).
- Connect Map Fields to Branch Decision.
- Configure Branch Decision with your criteria for routing to AI feedback vs. email report output.
- Connect the second output of Branch Decision to Search Optimization Agent.
- Ensure Groq Language Model is connected as the language model for Search Optimization Agent.
- Credential Required: Connect your Groq credentials in Groq Language Model to enable AI responses.
Tip: Keep Search Optimization Agent prompts concise to reduce token usage and latency.
Step 4: Configure Output/Action Nodes
Send AI feedback and tabular results to email recipients.
- Connect Search Optimization Agent to Dispatch Feedback Email.
- Configure Dispatch Feedback Email with recipient, subject, and message body.
- Connect the first output of Branch Decision to Assemble Table.
- In Assemble Table, build the HTML or text table for the ranking report.
- Connect Assemble Table to Email Results Table and configure recipient, subject, and body.
- Credential Required: Connect your Mailjet credentials in both Dispatch Feedback Email and Email Results Table.
Step 5: Test and Activate Your Workflow
Run a full test to validate the API response, routing, and email outputs before going live.
- Click Execute Workflow and submit a sample entry via Form Entry Trigger.
- Verify that External API Call returns data and Map Fields outputs the expected structure.
- Confirm routing at Branch Decision and ensure the correct email path is followed.
- Check that Dispatch Feedback Email or Email Results Table sends successfully with correct content.
- Toggle the workflow to Active to enable production use.
Watch Out For
- Apify credentials can expire or need specific permissions. If things break, check your Apify token in Settings → API & Integrations first.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.
Common Questions
Usually within about 30 minutes if your Apify and Mailjet accounts are ready.
Yes. You’ll mostly connect accounts and paste an API token, then test the form and email delivery.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Apify usage costs and AI model usage (Groq or an OpenAI-style API) based on how many SERPs you analyze.
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
You can swap the Mailjet email delivery nodes for Gmail or Outlook if that’s what your team uses, while keeping the SERP pull the same. Many teams also add Google Sheets right after the “Map Fields” step to store every run and build trend charts. If you want deeper competitive notes, expand the AI agent prompt to focus on intent mismatch, on-page gaps, and link quality for the top 5 results. Finally, if you need scheduled monitoring, add a cron trigger and feed it a list of keywords instead of using the form.
Most of the time it’s a bad or expired Apify API token, so regenerate it and update the HTTP Request node. It can also be a quota issue if you’re pulling lots of SERPs, or a localization mismatch if the country/language codes aren’t being passed correctly.
On n8n Cloud, capacity is tied to your monthly execution limit; Starter is fine for light reporting, and higher tiers handle larger volumes. If you self-host, there’s no fixed execution cap, but your server and Apify limits become the bottleneck. Practically, many teams run dozens of keyword checks per day without thinking about it, then scale up by batching keywords and logging results to Sheets.
Often, yes. n8n is better when you need branching logic (“ranked” vs “not ranked”), custom formatting (HTML tables), and the option to self-host when volume grows. Zapier or Make can still work, but you’ll usually end up stitching together more steps and paying more as tasks climb. The AI analysis portion is also easier to control in n8n because you can shape the prompt and the data you send. If you want a quick sanity check for your specific setup, Talk to an automation expert.
Rank tracking is only useful when it leads to a decision. This workflow makes that the default, and it keeps your updates professional even on the weeks nothing goes your way.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.