📨 Klaviyo on AutoPilot With N8N

Discover how our automated newsletter workflow can transform your marketing in this video tutorial. We’ll walk you through how the system dynamically rotates between general updates, featured products, and special offers, keeping your campaigns fresh and engaging every week. From auto-generating hero images and coupon codes to integrating with WooCommerce and Klaviyo, see how it all works together seamlessly. Let’s dive in! 🚀

🚀 Key Features

  • Full “Man-in-the-Loop” Approval: Every campaign requires review, you can Approve, Cancel, or Request Changes before anything is sent.
  • Dynamic Newsletter Workflow: Rotates between general, featured product, and coupon/offer categories for variety (no more stale templates). It works on a 4 week (monthly) rotation with a different newsletter sent out each week.
  • Image Generation: Uses Fal’s Flux LoRA for training and generating unique campaign hero images, always on-brand.
  • Product Data Scraping: Firecrawl API scrapes Stores product catalog to auto-select and feature different products in campaigns.
  • Auto Coupon Code Generation: Instantly creates new, limited-time coupons in WooCommerce for each relevant campaign.
  • HTML template creation: HTML template published as Gist to Git for previewing and to Klavio when template is approved.
  • GitHub Gist Previews: Newsletter drafts are auto-published as Gist for fast preview, review, and team feedback before approval.

🛠️ Technical Overview

Firecrawl API:

  • Scrapes live product data (name, image, price, link) from WooCommerce.
  • Enables random product selection for featured-product mailouts.

Fal.AI API (Flux LoRA):

  • Custom-trained image models using your brand’s assets.
  • Generates fresh, unique images for every campaign—no repeats.

WooCommerce API:

  • Creates single-use coupon codes with expiration (e.g., 2 weeks).
  • Syncs codes straight into your online store for instant redemption.

GitHub API (Gist):

  • Renders a newsletter preview as a Gist for collaborative review (sent in man in the loop email)

Man in the Loop Approval:

  • Email sent asking to Approve, Reject or Request changes
  • Change request are sent back AI Agent with memory of previous output and change request

Klaviyo Integration:

  • Generate and publish a HTML template
  • Sets up and schedules a campaign and associates the template to the campaign

💡 Use Cases

  • Completely Hands Free Mode. Set-and-forget weekly campaigns, always fresh, never missed.
  • Hybrid Mode. You can continue manually running campaigns and approve workflows only when short on time or if they forgot
  • Creativity Mode. You can use it to spark some creativity. Use the ‘Try again’ option in man in the loop to generate alternat versions.