What This Workflow Does
Email marketing teams often face the challenge of maintaining template consistency across different platforms. This workflow solves that problem by automatically synchronizing email templates from Dartagnan (where they're typically designed) to Braze (where they're deployed for campaigns).
The automation eliminates manual copying and pasting of HTML content, subject lines, and metadata between systems. It ensures all marketing teams work with the same approved versions, reduces human error, and significantly speeds up campaign setup processes.
How It Works
1. Template Detection
The workflow monitors Dartagnan for new or updated email templates, either on a schedule or via webhook triggers. It identifies changes by comparing timestamps or version numbers.
2. Content Extraction
Key template components are extracted including HTML structure, inline CSS, images (as references), subject line, preheader text, and any custom metadata fields used for categorization.
3. Braze API Integration
The workflow authenticates with Braze's API and maps the Dartagnan template structure to Braze's template format, ensuring all responsive elements and dynamic content tags translate correctly.
4. Validation & Deployment
Before deployment, the workflow validates template compatibility and can optionally require approvals for major changes. Successful syncs are logged with timestamps for audit purposes.
Who This Is For
This workflow benefits marketing teams that:
- Design emails in Dartagnan but deploy through Braze
- Manage multiple brands or regions with different template sets
- Run frequent A/B tests requiring rapid template iterations
- Need strict version control for compliance requirements
- Want to reduce manual work in their email production process
What You'll Need
- Active accounts in both Dartagnan and Braze with API access
- Admin permissions to create API keys in both platforms
- n8n instance (cloud or self-hosted) to run the workflow
- Basic understanding of email template structures in both systems
Pro tip: Set up a dedicated "Sync Templates" folder in Dartagnan to automatically sync only approved final versions to Braze, preventing work-in-progress templates from being deployed prematurely.
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure Dartagnan and Braze API connections
- Map template fields between platforms
- Set your preferred sync frequency (real-time or scheduled)
- Test with a single template before enabling full automation
Key Benefits
Eliminate manual errors that occur when copying HTML between systems, ensuring pixel-perfect rendering across all email clients.
Reduce campaign setup time by 60-80% by automating the most tedious aspect of email deployment preparation.
Maintain brand consistency across all customer communications with synchronized templates and approved content.
Improve compliance tracking with automatic version logging and audit trails for all template changes.
Enable faster iterations for A/B tests and seasonal campaigns by removing template deployment bottlenecks.