{"name":"Guffles - Export a changed list","nodes":[{"parameters":{"content":"Select a Guffles Header Auth credential on every HTTP node. Replace REPLACE_ENDPOINT_UUID in Verify original bytes. Register this workflow's production HTTPS Webhook URL in Guffles Settings for list.updated. Raw Body must stay enabled. Duplicate events reuse the same export Request ID. The CSV is the gufflesCsv binary output; insert an idempotent destination step before acknowledgement if you need to save it elsewhere. Pings and deleted lists are acknowledged without exporting. Read integrations/n8n/README.md before activation.","width":560,"height":280},"id":"00000000-0000-4000-8000-000000000001","name":"Setup instructions","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[0,-350]},{"parameters":{"httpMethod":"POST","path":"REPLACE_WITH_RANDOM_WEBHOOK_PATH","responseMode":"responseNode","options":{"rawBody":true}},"id":"00000000-0000-4000-8000-000000000002","name":"Guffles event","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[0,0],"webhookId":"guffles-list-updated"},{"parameters":{"method":"POST","url":"https://guffles.com/api/v1/webhooks/REPLACE_ENDPOINT_UUID/verify","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","sendBody":true,"contentType":"binaryData","inputDataFieldName":"data","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Content-Type","value":"application/json"},{"name":"X-Guffles-Delivery-Id","value":"={{ $json.headers['x-guffles-delivery-id'] }}"},{"name":"X-Guffles-Timestamp","value":"={{ $json.headers['x-guffles-timestamp'] }}"},{"name":"X-Guffles-Signature","value":"={{ $json.headers['x-guffles-signature'] }}"}]},"options":{"redirect":{"redirect":{"followRedirects":false}},"timeout":15000,"response":{"response":{"responseFormat":"json","neverError":false}}}},"id":"00000000-0000-4000-8000-000000000003","name":"Verify original bytes","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[250,0],"credentials":{"httpHeaderAuth":{"id":"REPLACE_GUFFLES_CREDENTIAL_ID","name":"Guffles workspace API key"}}},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict","version":1},"conditions":[{"leftValue":"={{ $json.verified === true && $json.data.type === 'list.updated' && $json.data.data.status !== 'deleted' && !!$json.data.data.listId }}","rightValue":"","operator":{"type":"boolean","operation":"true","singleValue":true}}],"combinator":"and"},"options":{}},"id":"00000000-0000-4000-8000-000000000004","name":"List still exists","type":"n8n-nodes-base.if","typeVersion":2,"position":[500,0]},{"parameters":{"method":"POST","url":"https://guffles.com/api/v1/exports","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Idempotency-Key","value":"={{ 'n8n:list-export:' + $json.data.id }}"}]},"sendBody":true,"specifyBody":"json","jsonBody":"={{ { listId: $json.data.data.listId, label: 'n8n list event export' } }}","options":{"redirect":{"redirect":{"followRedirects":false}},"timeout":15000,"response":{"response":{"responseFormat":"json","neverError":false}}}},"id":"00000000-0000-4000-8000-000000000005","name":"Create owned export","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[750,0],"credentials":{"httpHeaderAuth":{"id":"REPLACE_GUFFLES_CREDENTIAL_ID","name":"Guffles workspace API key"}}},{"parameters":{"method":"GET","url":"={{ 'https://guffles.com/api/v1/exports/' + $json.data.id + '/download' }}","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","options":{"redirect":{"redirect":{"followRedirects":false}},"timeout":15000,"response":{"response":{"responseFormat":"file","outputPropertyName":"gufflesCsv","neverError":false}}}},"id":"00000000-0000-4000-8000-000000000006","name":"Download prepared CSV","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[1000,0],"credentials":{"httpHeaderAuth":{"id":"REPLACE_GUFFLES_CREDENTIAL_ID","name":"Guffles workspace API key"}}},{"parameters":{"respondWith":"noData","options":{"responseCode":204}},"id":"00000000-0000-4000-8000-000000000007","name":"Acknowledge successful processing","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.1,"position":[1300,0]}],"pinData":{},"connections":{"Guffles event":{"main":[[{"node":"Verify original bytes","type":"main","index":0}]]},"Verify original bytes":{"main":[[{"node":"List still exists","type":"main","index":0}]]},"List still exists":{"main":[[{"node":"Create owned export","type":"main","index":0}],[{"node":"Acknowledge successful processing","type":"main","index":0}]]},"Create owned export":{"main":[[{"node":"Download prepared CSV","type":"main","index":0}]]},"Download prepared CSV":{"main":[[{"node":"Acknowledge successful processing","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1","saveExecutionProgress":false,"saveDataErrorExecution":"none","saveDataSuccessExecution":"none","saveManualExecutions":false},"meta":{"templateCredsSetupCompleted":false},"tags":[]}