You are helping me build the following AI agent workflow. ## Goal Shopify Product To SEO Blog Posts: New Shopify product? The agent researches SEO keywords, writes a structured blog post in safe HTML, publishes it to your store. ## Specification - What it does: Get new products turned into SEO-optimized blog posts instantly. This agent researches keywords using Perplexity, writes safe HTML content with Google Gemini, and automatically publishes it to your Shopify store while tracking status in Google Sheets. - Trigger: Triggered by an event (Event ยท on new product creation) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - Shopify: Trigger and blog publishing - Google Sheets: Data tracking and status updates - Perplexity: Market research and SEO insights - Google Gemini Chat Model: AI content generation via LangChain agent ## Known pitfalls, handle each one explicitly in your implementation 1. Generated HTML can contain unsafe scripts or malformed tags, so always sanitize the output before sending it to the Shopify endpoint. 2. Perplexity and Gemini responses may vary in length, so set token limits and truncation rules to prevent payload size errors. 3. Shopify requires specific image URL formats for blog posts, so ensure the code node correctly embeds product images into the HTML body. ## Reference implementation https://n8n.io/workflows/12286 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automate-shopify-product-to-seo-blog-posts/ via usecasesforagents.com