{"name":"Watch a portfolio of French companies and react to events (Sirenic)","nodes":[{"parameters":{"content":"## Watch a portfolio of French companies and react to events\n\nTwo workflows in one file. Part 1 creates a prepaid watch on up to 100 companies. Part 2 receives the events: every target is checked daily against official sources (BODACC, status, officers, sanctions, AMF blacklist), and each change is pushed to your webhook. No polling, no missed day.\n\n### Who's it for\n\nRisk, credit and procurement teams watching a book of French companies.\n\n### How it works\n\n- **Create the watch**: `/v1/surveillance/creer` ($0.05 per target per 30 days)\n\n### How to set up\n\n1. Create an API key at https://api.sirenic.eu/compte (e-mail + magic link).\n2. Add a **Header Auth** credential in n8n: name `X-Api-Key`, value `srn_live_…`.\n3. Select it on every HTTP Request node, then replace the placeholder nodes with your own app.\n\n### Requirements\n\n- A Sirenic API key. Native n8n nodes only, so this runs on n8n Cloud: no community node, no wallet, no crypto.\n- Cost: **$0.05 per target for 30 days ($0.135 for 90 days, $0.50 for 365 days)**. 150 calls a month are free on routes at $0.05 or less. An error is never billed.\n\n### How to customize\n\nChange the duration, and route each event type to the team that owns it.\n\n_Official sources: INSEE Sirene, INPI RNE, BODACC, DECP and the official sanctions lists._\n_Sirenic is not an accredited e-invoicing platform, and a sanctions match is never an automated decision._","height":720,"width":420},"id":"overview","name":"Overview","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-500,-260]},{"parameters":{},"id":"start-the-watch","name":"Start the watch","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[0,0]},{"parameters":{"assignments":{"assignments":[{"id":"cibles-champ","name":"cibles","value":"552032534,490586708","type":"string"},{"id":"duree-champ","name":"duree","value":"30","type":"string"},{"id":"webhook-champ","name":"webhook","value":"https://VOTRE-WEBHOOK","type":"string"}]},"options":{}},"id":"targets-and-webhook-url","name":"Targets and webhook URL","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[260,0]},{"parameters":{"url":"=https://api.sirenic.eu/v1/surveillance/creer?cibles={{ $('Targets and webhook URL').item.json.cibles }}&duree={{ $('Targets and webhook URL').item.json.duree }}&webhook={{ $('Targets and webhook URL').item.json.webhook }}","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","options":{}},"id":"create-the-watch","name":"Create the watch","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[520,0]},{"parameters":{},"id":"store-the-watch-token","name":"Store the watch token","type":"n8n-nodes-base.noOp","typeVersion":1,"position":[780,0]},{"parameters":{"httpMethod":"POST","path":"sirenic-events","responseMode":"lastNode","options":{}},"id":"receive-the-watch-events","name":"Receive the watch events ","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[0,520],"webhookId":"b23cb9aa-6a67-4b4b-aaac-14ca40d5402c"},{"parameters":{"fieldToSplitOut":"evenements","options":{}},"id":"one-item-per-event","name":"One item per event ","type":"n8n-nodes-base.splitOut","typeVersion":1,"position":[260,520]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose","version":2},"conditions":[{"id":"c1","leftValue":"={{ ['annonce_bodacc', 'correspondance_sanctions', 'changement_etat_administratif'].includes($json.type) }}","rightValue":"","operator":{"type":"boolean","operation":"true","singleValue":true}}],"combinator":"and"},"looseTypeValidation":true,"options":{}},"id":"high-severity-event-","name":"High-severity event? ","type":"n8n-nodes-base.if","typeVersion":2.2,"position":[520,520]},{"parameters":{},"id":"alert-the-risk-team","name":"Alert the risk team ","type":"n8n-nodes-base.noOp","typeVersion":1,"position":[780,380]},{"parameters":{},"id":"log-the-change","name":"Log the change ","type":"n8n-nodes-base.noOp","typeVersion":1,"position":[780,660]},{"parameters":{"content":"## Watch a portfolio of French companies, part 2: receive the events","height":120,"width":300,"color":7},"id":"part-2","name":"Part 2","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-340,500]},{"parameters":{"content":"**$0.05 per target per 30 days**: French companies only. Events are signed with Ed25519. Keep the token returned: it is how you read and renew the watch.","height":180,"width":240,"color":7},"id":"note-create-the-watch","name":"Note Create the watch","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[510,-260]}],"connections":{"Start the watch":{"main":[[{"node":"Targets and webhook URL","type":"main","index":0}]]},"Targets and webhook URL":{"main":[[{"node":"Create the watch","type":"main","index":0}]]},"Create the watch":{"main":[[{"node":"Store the watch token","type":"main","index":0}]]},"Receive the watch events ":{"main":[[{"node":"One item per event ","type":"main","index":0}]]},"One item per event ":{"main":[[{"node":"High-severity event? ","type":"main","index":0}]]},"High-severity event? ":{"main":[[{"node":"Alert the risk team ","type":"main","index":0}],[{"node":"Log the change ","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"pinData":{}}