n8n

How to Sync Braze Templates from Dartagnan?

Keep your email templates fresh without manual copy and paste. Marketing teams that build creative in one tool and send from another can use this to keep both sides in sync with little effort.

A scheduled run checks every few minutes for updates. It requests an access token, lists projects and campaigns, and pulls template details from the source system. It also lists current templates in the sending platform. The flow compares names, splits items into update or create paths, and only updates when a campaign was changed recently. It fetches HTML and media, embeds image links directly in the HTML, encodes content, then sends create or update calls to the sending platform. This keeps naming, content, and plain text bodies aligned.

Set up needs API access for both tools and the instance URL for your sending platform. Add client id and client secret for the source, plus API key for the sender. Adjust the schedule to match rate limits. Expect faster launches, fewer mistakes, and consistent branding across emails. This is useful for teams that ship frequent campaigns or manage many templates across regions and brands.

What are the key features?

  • Scheduled sync runs every 5 minutes to keep templates current.
  • Requests and refreshes an access token that expires after 60 minutes.
  • Discovers projects and campaigns, then pulls template details from the source.
  • Lists all existing email templates in the sending platform for comparison.
  • Splits items into create or update groups using merge and filter logic.
  • Checks if a campaign was modified recently before updating to avoid noise.
  • Fetches HTML and media, then embeds image links directly in the HTML with code nodes.
  • Encodes HTML and plain text bodies and sends create or update API calls.

What are the benefits?

  • Reduce manual updates from 2 hours per campaign to 5 minutes
  • Automate up to 90 percent of template upkeep work
  • Cut copy and paste errors by 80 percent with direct sync
  • Handle 100 plus templates per day without extra staff
  • Connect content creation and sending platforms seamlessly
  • Keep email content current with checks every 5 minutes

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Dartagnan and Braze. See the Tools Required section above for links to create accounts with these services.
  3. Collect credentials: in your Dartagnan account get the client id and client secret. In your Braze dashboard get a REST API key and note your instance URL.
  4. Open the Assign Credentials node in n8n and enter your Dartagnan client id and client secret, plus your Braze API key and instance URL in the provided fields.
  5. Open the Token Request node and confirm the token URL is correct and the body uses the values from Assign Credentials. Click Execute Node to verify you receive an access token.
  6. Open the List Available Email Template Braze node and confirm the Authorization header uses Bearer with your API key and the instance URL variable is set. Execute the node to check it returns a template list.
  7. Run the workflow once. Inspect the Existing In Braze and Not existing In Braze branches to confirm items are routed correctly by template name.
  8. Check the If campaign is modified recently node and adjust the date logic if you need a different freshness window.
  9. Review the Embed image in HTML code nodes. If your images need different handling, update the code to match your asset paths.
  10. Set the schedule in the trigger to a safe interval based on vendor rate limits. The default is every 5 minutes.
  11. Enable the workflow. Send a test update from the source tool and confirm the target template updates or creates in Braze within one run.
  12. If you see 401 errors, recheck API keys and tokens. If you see 429 errors, increase the schedule interval to reduce call volume.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Braze

Sign up

Free trial: $0 for 14 days

Dartagnan

Sign up

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.