{"id":83,"name":"New WooCommerce Customer to Mautic","nodes":[{"name":"Check for Existing","type":"n8n-nodes-base.mautic","position":[280,480],"parameters":{"options":{"search":"={{$json[\"email\"]}}"},"operation":"getAll","authentication":"{{ $credentials.oAuth2 }}"},"credentials":{"mauticOAuth2Api":{"id":"{{ $credentials.mauticOAuth2Api.id }}","name":"Mautic account"}},"typeVersion":1,"alwaysOutputData":true,"id":"aaa4d55f-1f51-43f1-a083-8267a0b6bf58","notes":"This mautic node performs automated tasks as part of the workflow."},{"name":"If New","type":"n8n-nodes-base.if","position":[460,480],"parameters":{"conditions":{"string":[{"value1":"={{$json[\"id\"]}}","operation":"isEmpty"}]}},"typeVersion":1,"id":"7fc2998a-28b9-485c-855b-c0805a5ca5b9","notes":"This if node performs automated tasks as part of the workflow."},{"name":"Create Contact","type":"n8n-nodes-base.mautic","position":[680,320],"parameters":{"email":"={{$node[\"Customer Created\"].json[\"email\"]}}","company":"={{$node[\"Customer Created\"].json[\"billing\"][\"company\"]}}","options":{},"lastName":"={{$node[\"Customer Created\"].json[\"last_name\"]}}","firstName":"={{$node[\"Customer Created\"].json[\"first_name\"]}}","authentication":"{{ $credentials.oAuth2 }}","additionalFields":{}},"credentials":{"mauticOAuth2Api":{"id":"{{ $credentials.mauticOAuth2Api.id }}","name":"Mautic account"}},"typeVersion":1,"id":"c725b4ec-d8aa-4a3e-890b-fdaa94a28aaa","notes":"This mautic node performs automated tasks as part of the workflow."},{"name":"Update Contact","type":"n8n-nodes-base.mautic","position":[680,580],"parameters":{"options":{},"contactId":"={{$json[\"id\"]}}","operation":"update","updateFields":{"lastName":"={{$node[\"Customer Created or Updated\"].json[\"last_name\"]}}","firstName":"={{$node[\"Customer Created or Updated\"].json[\"first_name\"]}}"},"authentication":"{{ $credentials.oAuth2 }}"},"credentials":{"mauticOAuth2Api":{"id":"{{ $credentials.mauticOAuth2Api.id }}","name":"Mautic account"}},"typeVersion":1,"id":"83dd0803-82b3-4680-a381-3916f3d46040","notes":"This mautic node performs automated tasks as part of the workflow."},{"name":"Customer Created or Updated","type":"n8n-nodes-base.wooCommerceTrigger","position":[100,480],"webhookId":"5d89e322-a5e0-4cce-9eab-185e8375175b","parameters":{"event":"customer.updated"},"credentials":{"wooCommerceApi":{"id":"{{ $credentials.wooCommerceApi.id }}","name":"WooCommerce account"}},"typeVersion":1,"id":"e614bf25-e63a-4dc7-8c59-b4052fb319f6","notes":"This wooCommerceTrigger node performs automated tasks as part of the workflow."},{"id":"error-74c3ad8c","name":"Error Handler","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[1000,400],"parameters":{"message":"Workflow execution error","options":{}}}],"active":false,"settings":{"saveManualExecutions":true,"saveExecutionProgress":true,"saveDataSuccessExecution":"all","executionOrder":"v1","callerPolicy":"workflowsFromSameOwner","errorWorkflow":null,"timezone":"UTC","executionTimeout":3600,"maxExecutions":1000,"retryOnFail":true,"retryCount":3,"retryDelay":1000},"connections":{},"description":"Automated workflow: New WooCommerce Customer to Mautic. This workflow processes data and performs automated tasks.","meta":{"instanceId":"workflow-530232f0","versionId":"1.0.0","createdAt":"2025-09-29T07:07:50.936264","updatedAt":"2025-09-29T07:07:50.936300","owner":"n8n-user","license":"MIT","category":"automation","status":"active","priority":"high","environment":"production"},"notes":"Excellent quality workflow: New WooCommerce Customer to Mautic. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}