Skip to main content

Sync Dartagnan email templates to Braze

Workflow preview

Workflow preview
100%
Sync Dartagnan email templates to Braze preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Sync Dartagnan Email Templates to Braze Why Use This Workflow Email marketing demands consistency across platforms. This workflow automatically synchronizes your email templates from Dartagnan to B...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Vincent LE ROUX.

Original n8n.io source

1.1 Workflow description

Title
Sync Dartagnan email templates to Braze
Workflow name
Sync Dartagnan email templates to Braze

Sync Dartagnan Email Templates to Braze

Why Use This Workflow

Email marketing demands consistency across platforms. This workflow automatically synchronizes your email templates from Dartagnan to Braze, eliminating manual transfers and ensuring brand consistency. Perfect for marketing teams who need to maintain a unified email experience while leveraging the strengths of both platforms.

Business Benefits

  • Save Time: Eliminate hours of manual template copying and formatting between platforms
  • Maintain Consistency: Ensure your email templates look identical across Dartagnan and Braze
  • Reduce Errors: Automated synchronization prevents human error in template transfers
  • Streamline Workflows: Create once in Dartagnan, use everywhere through Braze's distribution power
  • Preserve Image Assets: Keep images hosted on Dartagnan while properly formatting them for Braze

How It Works

This workflow performs a bi-directional sync between your Dartagnan email templates and Braze platform. It intelligently handles:

  1. Template Updates: Automatically updates existing templates in Braze when modified in Dartagnan
  2. New Template Creation: Creates new templates in Braze when added to Dartagnan
  3. Image URL Transformation: Properly embeds and formats image URLs to meet Braze requirements while keeping assets on Dartagnan infrastructure

Technical Implementation

The workflow uses a scheduled trigger to check for template changes and then processes them in batches:

  1. Authentication: Securely connects to both Dartagnan and Braze APIs
  2. Template Retrieval: Fetches current templates from Dartagnan
  3. Comparison Logic: Determines which templates need updating or creation in Braze
  4. Content Transformation: Processes HTML content and image URLs to ensure compatibility
  5. API Integration: Pushes changes to Braze through their Content Blocks API

Customization Options

This workflow can be customized to meet your specific needs:

  • Sync Frequency: Adjust the schedule to run hourly, daily, or on any custom schedule
  • Template Filtering: Add conditions to sync only specific templates based on tags or categories
  • Error Handling: Configure notification emails when synchronization issues occur
  • Logging: Enable detailed logs for troubleshooting and auditing

Setup Requirements

Setting up this workflow takes approximately 20-30 minutes and requires:

Dartagnan Requirements

  • API Client ID
  • API Client Secret
  • Template access permissions

Braze Requirements

  • Braze Instance URL
  • API Key with content block permissions
  • Appropriate rate limits configured

Common Use Cases

  • Email Campaign Coordination: Maintain consistent templates across platforms for multi-channel campaigns
  • Agency Work: Design in Dartagnan, deploy through client's Braze instance
  • Rebranding Projects: Update templates once and propagate changes automatically
  • International Marketing: Maintain language variants across platforms with automatic synchronization

Get Started

Once installed, configure your API credentials, set your desired synchronization schedule, and let the workflow handle the rest. The initial sync will create all your templates in Braze, with subsequent runs only updating what's changed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Token Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Assign Credentials

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Dartagnan Project list

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Create email template

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - List Available Email Template Braze

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Filtered Project Campaign

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Filtering Dartagnan Campaigns

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 9 - Filtering Braze Email Template

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Not existing In Braze

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 11 - Existing In Braze

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 12 - Dartagnan HTML & MEDIA To Update

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Encode Content To Update

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Dartagnan HTML & MEDIA Campagne to Create

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Encode Content to Create

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - If campaign is modified recently

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Filter Braze vs Dartagnan

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Embed image in HTML

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Embed image in HTML 1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Sync Dartagnan email templates to Braze
Complexity advanced
Nodes 28
Categories Social Media
Author Vincent LE ROUX
Published 04 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3081/3081.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sync Dartagnan email templates to Braze do?

Sync Dartagnan Email Templates to Braze Why Use This Workflow Email marketing demands consistency across platforms. This workflow automatically synchronizes your email templates from Dartagnan to B...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.