Chat with Search Console Data Using n8n and OpenAI

Save hours analyzing your Google Search Console data by chatting naturally with an AI-powered agent built on n8n, OpenAI GPT-4, and Postgres. This workflow fetches customized insights effortlessly with simple chat commands.
agent
lmChatOpenAi
memoryPostgresChat
+8
Workflow Identifier: 1655
NODES in Use: agent, lmChatOpenAi, memoryPostgresChat, toolWorkflow, webhook, set, switch, httpRequest, aggregate, respondToWebhook, executeWorkflowTrigger

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 Automation Does

This workflow creates a chat interface to talk with Google Search Console data in simple English.
It helps to get answers about website performance without coding or complex dashboards.
The main result is fast, clear insights shown as easy markdown tables in chat.

You can ask questions like “How did my site do last month?” or “Show top queries for product pages.”
The bot talks to Search Console API behind the scenes.


Who Should Use This Workflow

This is good for people who work with website data but do not want to write code.
Anyone needing quick Search Console reports in natural language will benefit.


Tools and Services Used

  • Google Search Console API: Provides website search data.
  • OpenAI GPT-4o model: Understands user questions and plans API calls.
  • Postgres Database: Stores chat history to keep conversation context.
  • n8n Automation Platform: Runs the workflow connecting all parts.
  • Webhook with Basic Auth: Receives chat messages securely.

Beginner Step-by-Step: How to Use This Workflow in n8n

Download and Import

  1. Click the Download button on this page to save the workflow JSON file.
  2. Open your n8n editor.
  3. Go to Import from File and upload the saved workflow.

Configure Credentials

  1. Add your Google Search Console OAuth credentials under n8n credentials.
  2. Enter your OpenAI API Key in the OpenAI Chat Model node.
  3. Set up Postgres credentials pointing to your database.

Update Identifiers

  1. Check if any property URLs, emails, or table names need updating in the workflow nodes.
  2. Update webhook Basic Auth username and password if needed.

Test and Activate

  1. Send a test POST request to the webhook with sample chatInput and sessionId.
  2. Verify you receive a chat reply in markdown with insights.
  3. Activate the workflow in n8n for production use.

For self hosting n8n, see self-host n8n.


Inputs, Processing, and Outputs

Inputs

  • User chat messages sent as JSON payloads to the Webhook node.
  • Session identifier to keep track of conversation.

Processing

  • Set fields node extracts chatInput, sessionId, and adds current date.
  • AI Agent using GPT-4o interprets user input, manages conversation memory in Postgres.
  • Agent calls the Search Console Tool sub-workflow for data retrieval.
  • Set fields – Construct API CALL builds API request parameters dynamically.
  • Switch node routes between listing properties or custom data fetch.
  • HTTP Request nodes call Google Search Console API using OAuth2.
  • Set fields and Aggregate nodes format and combine API results.

Outputs

  • AI-generated chat reply showing requested Search Console insights.
  • Results are formated in markdown tables for readability.
  • Chat history saved for follow-up questions.

Common Edge Cases and Failures

  • If OAuth2 token refresh fails, check Google Cloud OAuth scopes.
  • If webhook responds with unauthorized, verify Basic Auth settings.
  • If API call returns empty data, confirm property URLs and date ranges are correct.

Customization Ideas

  • Change system prompt in the AI Agent node to focus on specific Search Console metrics.
  • Adjust default row limits or dimensions in Set fields – Construct API CALL.
  • Use other OpenAI models in the OpenAI Chat Model node for cost control.
  • Replace webhook Basic Auth with token-based authentication if your system needs it.

Conclusion

This workflow lets you ask Google Search Console questions in simple chat.
It removes need for APIs or complicated dashboards.

Users save hours weekly and cut errors doing data reports.
You get fast answers, easy tables, and chat memory for follow-ups.

Next steps might be adding scheduled reports or Slack alerts.
You made data analysis less painful and more human.


Frequently Asked Questions

Yes. The workflow supports any model compatible with LangChain tool calling but features may change.
Check Google Cloud OAuth scopes and make sure they match Search Console API requirements exactly.
Yes. Postgres stores chat context to improve conversation but make sure database has access controls and encryption.
Yes. Session IDs and Postgres memory keep each conversation separate and concurrent.

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