Query GA4 data with Google Gemini AI in a Slack channel
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 7 nodes and runs on Slack events. Along the way it connects Slack, Google Analytics and Google Gemini Chat Model.
How it runs
Trigger: On Slack events.
- Edit Fields (Edit Fields (Set)): sets 1 field: text
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Get a report in Google Analytics); memory: Simple Memory
- Send a message (Slack): uses Slack
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Slack Trigger requires a signing secret on the Slack API credential (Slack Trigger).
Nodes used (7)
- Slack Trigger
n8n-nodes-base.slackTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Analytics Tool
n8n-nodes-base.googleAnalyticsTool - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Slack
n8n-nodes-base.slack
From the author
This workflow integrates Google Analytics 4 (GA4) with Slack, enabling users to query their website data using natural language inside a dedicated Slack channel. An AI Agent interprets user queries, fetches relevant reports from GA4, and responds in Slack as…