Automate Amazon Ads optimization using this n8n workflow. Analyze daily reports (search terms, budgets, and bids) with GPT-4o and receive actionable email recommendations instantly. This n8n template simplifies PPC management.
Download this n8n workflow template and start using it instantly.
Manually aggregating and analyzing multiple daily Amazon Ads reports (Search Terms, Campaigns, Targeting, Budgets) is time-consuming. This specialized n8n workflow transforms that manual effort into a seamless, intelligent process. By using a powerful n8n node for data retrieval (Google Drive) and a sophisticated AI n8n node (GPT-4o), this solution quickly processes large datasets and outputs precise, actionable recommendations for bid changes, budget scaling, and keyword optimization. This fully automated analysis ensures your campaigns remain optimized without daily human intervention, making this a highly valuable n8n template for performance marketing.
The logical flow of this n8n workflow is structured to handle multiple data files and produce a single, insightful output:
When clicking ‘Test workflow’ n8n trigger (which can be replaced by a scheduled n8n trigger node). Initial email settings are defined.List Files n8n node polls a specific Google Drive folder where scheduled Amazon Ads reports are delivered (as noted in the sticky note instructions, reports must be generated in the Amazon Ads Console and deposited here).Get File n8n node downloads the binary data for each report. An is XLSX If n8n node determines the file type (XLSX or CSV).Extract XLSX Data or Extract CSV Data n8n node handles the binary file, turning the report content into usable JSON data.Merge XLSX and CSV n8n node. Crucially, the Format Data Code n8n node then analyzes the filenames to categorize the data (e.g., search_terms, campaigns) and compiles all reports into a single, structured JSON object, which is the perfect input for the AI.AI Analyze n8n node, powered by the OpenAI Chat Model (GPT-4o), receives the compiled data. The node is configured with a detailed system prompt forcing the AI to analyze performance (ACoS, ROAS), generate specific bid, budget, and keyword recommendations, and output the result in a guaranteed JSON structure.Email Optimizations Gmail n8n node executes complex JavaScript to parse the AI's resulting JSON. It calculates projected totals, formats all campaign, keyword, and targeting recommendations into a clean HTML email, and sends the actionable report to the predefined recipient, concluding this powerful n8n workflow.To deploy this specialized n8n workflow, follow these steps:
List Files and Get File n8n nodes. Ensure this account has access to the folder containing your Amazon reports.OpenAI Chat Model n8n node.Email Optimizations n8n node.Email Options Set n8n node to define the send_to address and the subject line.List Files n8n node parameters, select the specific Google Drive folder where your Amazon Ads reports (Search Terms, Campaign, Budget, etc.) are scheduled to be delivered. When clicking ‘Test workflow’ (Manual Trigger): This n8n trigger starts the workflow for testing purposes. It should be replaced by a scheduled n8n trigger for production.
List Files (Google Drive n8n node): Scans the designated Google Drive folder for the latest Amazon Ads report files.
Get File (Google Drive n8n node): Downloads the binary data of each report file found by the previous n8n node.
Set fileName (Set n8n node): Captures and preserves the original file name, which is critical for the later Format Data n8n node to correctly classify the report type (e.g., search term vs. campaign).
is XLSX (If n8n node): A flow control n8n node that checks if the file is an XLSX file based on the file extension.
Extract XLSX Data / Extract CSV Data (Extract From File n8n nodes): These nodes handle the binary input and extract the tabular data into n8n's standard JSON structure.
Format Data (Code n8n node): This crucial custom code n8n node uses regex matching on the filename to categorize and map the different reports (budgets, targeting, search_terms) into a unified JSON structure, preparing the data for the AI analysis.
AI Analyze (Langchain ChainLlm n8n node): The core intelligence n8n node. It passes the structured report data to the GPT-4o model, along with a complex system prompt that dictates the exact analysis and required JSON output format for bid, budget, and keyword recommendations.
Use this powerful n8n workflow to automate Printify product title and description generation using OpenAI, manage options in Google Sheets, and publish updated content.

Create a specialized n8n workflow for AI agents using the OpenIndex Retrieval Plugin. This n8n template sets up an MCP server endpoint for robust document querying.

Generate random, engaging tweets using OpenAI, and automatically log the generated content and hashtags into Airtable using this powerful n8n workflow. Perfect for content creators.

Automate job application document creation. This n8n workflow uses Gemini AI to optimize resumes for ATS and generate custom cover letters, delivering the final PDFs via Gmail automation.

Automate SEO optimization of Google Sheet meta titles and descriptions using an n8n workflow powered by Google Gemini AI. Maintain keyword density and character limits automatically.

Experienced Linux administrator, entrepreneur, and automation enthusiast, I specialize in crafting robust, scalable workflows with n8n. I have a passion for business automation, integrating complex systems seamlessly, and sharing practical templates that empower others to automate effectively.







































