← All N8N workflows
Automation & utilitiesCodeHTTP RequestIfMergeSchedule Trigger

My workflow 2

Configured with HTTP Request, Schedule Trigger, Split Out. Review the connections and setup before adapting this template.

Workflow preview
Web / APIToken RequestHTTP RequestTransformAssign CredentialsEdit FieldsWeb / APIDartagnan Project listHTTP RequestWeb / APICreate email templateHTTP RequestWeb / APIList Available EmailTemplate BrazeHTTP RequestWeb / APIFiltered ProjectCampaignHTTP RequestTransformFiltering DartagnanCampaignsEdit FieldsTransformSplit OutSplit OutTransformFiltering Braze EmailTemplateEdit FieldsTransformNot existing In BrazeMergeTransformExisting In BrazeMergeWeb / APIDartagnan HTML & MEDIATo UpdateHTTP RequestTransformEncode Content ToUpdateEdit FieldsWeb / APIDartagnan HTML & MEDIACampagne to CreateHTTP RequestTransformEncode Content toCreateEdit FieldsRoutingIf campaign is modifiedrecentlyIfRoutingFilter Braze vsDartagnanIfCodeEmbed image in HTMLCodeCodeEmbed image in HTML 1CodeTriggerEvery 5 minutes startSchedule TriggerWeb / APIUpdate existing emailtemplate in BrazeHTTP Request

Node categories in this workflow

  • Web / API
  • Transform
  • Routing
  • Code
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Token RequestWeb / APIHTTP RequestPOST
Assign CredentialsTransformEdit FieldsSee node parameters
Dartagnan Project listWeb / APIHTTP RequestSee node parameters
Create email templateWeb / APIHTTP RequestPOST
List Available Email Template BrazeWeb / APIHTTP RequestSee node parameters
Filtered Project CampaignWeb / APIHTTP RequestSee node parameters
Filtering Dartagnan CampaignsTransformEdit FieldsSee node parameters
Split OutTransformSplit OutSee node parameters
Filtering Braze Email TemplateTransformEdit FieldsSee node parameters
Not existing In BrazeTransformMergeSee node parameters
Existing In BrazeTransformMergeSee node parameters
Dartagnan HTML & MEDIA To UpdateWeb / APIHTTP RequestSee node parameters
Encode Content To UpdateTransformEdit FieldsSee node parameters
Dartagnan HTML & MEDIA Campagne to CreateWeb / APIHTTP RequestSee node parameters
Encode Content to CreateTransformEdit FieldsSee node parameters
If campaign is modified recentlyRoutingIfSee node parameters
Filter Braze vs DartagnanRoutingIfSee node parameters
Embed image in HTMLCodeCodeSee node parameters
Embed image in HTML 1CodeCodeSee node parameters
Every 5 minutes startTriggerSchedule TriggerSee node parameters
Update existing email template in BrazeWeb / APIHTTP RequestPOST

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Token Request

Get the token from Dartagnan that expires after 60 minutes

Filtered Project Campaign

POC Avec la derniere valeur avant iteration sur une boucle for dans la v2

Authentication Set Up

Authentication Set Up

Obtain an access token from Dartagnan Prepare credentials for both Dartagnan and Braze

Template Discovery

Template Discovery

List all existing email templates in Braze

Authentication Token

Authentication Token

Obtain an access token from Dartagnan

Template Discovery

Template Discovery

Retrieve project and campaign details from Dartagnan

Comparison and Sync

Comparison and Sync

Compare Dartagnan templates with existing Braze templates Identify templates to update (top Branch) or create ( Lower Branch)

Template Processing

Template Processing

Extract HTML and media from Dartagnan templates Replace image references with direct URLs Prepare templates for Braze Update existing templates in Braze ( upper branch ) Create new templates in Braze as needed ( lower branch )

Trigger

Trigger

Trigger is scheduled to run every 5 minutes, you can change this, but bear in mind to stay in the API rate limits of each vendor

Every 5 minutes start

This node is a scheduled trigger that will synchronize ever

My workflow 2

My workflow 2

Purpose and structure

This folder contains the My workflow 2 workflow. Its executable nodes use code, httpRequest, if, merge, scheduleTrigger, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Every 5 minutes start

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0774_Splitout_Code_Automate_Webhook.json MIT; preserve source notices.

More in Automation & utilities