Quick overview
This workflow runs on a schedule or manually, reads tracking prompts from Google Sheets, queries DataForSEO for multiple LLM and AI search engines (OpenAI, Claude, Gemini, Perplexity, Google AI Overview/AI Mode, and Bing Copilot), then normalizes answers and citations and appends the results back to Google Sheets.
How it works
- Runs on a monthly schedule (or on manual запуск) and loads configuration values such as sheet names, location/language, enabled engines, and model names.
- Reads the prompt list (prompt_id, prompt_text, category) from the Prompts tab in Google Sheets.
- Cleans each prompt and truncates it to the DataForSEO 500-character limit while recording whether truncation occurred.
- Processes prompts one at a time and builds DataForSEO API requests for each enabled provider (OpenAI, Claude, Gemini, Perplexity, Google AI Overview, Google AI Mode, and Bing Copilot).
- Calls the DataForSEO API for each request, continuing even if some calls fail.
- Extracts response text, citations, cost, model used, sources consulted, fan-out queries, and brand/domain/competitor mentions, then appends a row per provider to the Results tab in Google Sheets.
- Waits for the configured buffer time between prompts to respect rate limits and then continues with the next prompt.
Setup
- Create a DataForSEO Basic Auth credential in n8n (username = DataForSEO login, password = API password) and select it in the HTTP request step.
- Create a Google Sheets OAuth2 or Service Account credential in n8n and select it for reading the Prompts tab and appending to the Results tab.
- Duplicate or create a Google Sheet with two tabs named Prompts and Results and the exact header columns expected by the workflow.
- Update the google_sheet_url, location_code/language_code, enabled engines, model_* values, brand_names, target_domain, competitors, and timing settings in the Template_Config step before activating.