Audit AI citation gaps with ChatGPT, Perplexity, Google Sheets, and Slack
Ready for 3.0What this workflow does
This AI workflow has 30 nodes and runs on a schedule (every week at 07:00). Along the way it connects Google Sheets, OpenAI Chat Model, Gmail and Slack. It also calls api.perplexity.ai and api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every week at 07:00).
- Read Brand Settings (Google Sheets): uses Google Sheets
- Fetch Sitemap (HTTP Request): calls an HTTP API
- Resolve Sitemap (Code): runs custom JavaScript code
- Is It A Sitemap Index? (If): checks a condition and branches into true / false
- Fetch Child Sitemap (HTTP Request): calls an HTTP API
- Pick Commercial Pages (Code): runs custom JavaScript code
- Buyer Question Writer (AI Agent): runs an AI agent, with model: Question Writing Model; output parser: Question Format
- Expand To Repeat Runs (Code): runs custom JavaScript code
- Ask Perplexity With Citations (HTTP Request): calls api.perplexity.ai (POST)
- Ask ChatGPT With Web Search (HTTP Request): calls api.openai.com (POST)
…plus 15 more steps. See the full node list below.
Services it uses
HTTP calls to: api.perplexity.ai, api.openai.com
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.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This weekly workflow audits how often your brand is named versus cited by link in ChatGPT (with web search) and Perplexity, then identifies which external pages win those citations, classifies them with OpenAI, and logs a trend report plus a…