2024-06-19 22:25:59 +02:00
|
|
|
{"createdAt":"2024-06-19T11:54:41.835Z","updatedAt":"2024-06-19T20:10:10.107Z","id":"zbKzY2ohQyhp0wxC","name":"Twitter publication submit","active":true,"nodes":[{"parameters":{"rule":{"interval":[{"field":"cronExpression","expression":"45 12 * * 1-6"}]}},"id":"436fd5af-9451-414d-a710-421be651d11d","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-800,660],"notesInFlow":true,"notes":"Déclenche tout les jours 12h45"},{"parameters":{"docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","limit":1,"additionalOptions":{"filter":{"filterProperties":[{"field":"Twitter","values":"En attente"}]},"sort":{"sortProperties":[{"field":"Date_soumission"}]}}},"id":"f10c25d0-b004-433b-b1bc-5295a86f4215","name":"GristSearch","type":"n8n-nodes-base.grist","typeVersion":1,"position":[-440,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Recupère articles préparés IA"},{"parameters":{"operation":"update","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","rowId":"={{ $node[\"GristSearch\"].json[\"id\"] }}","fieldsToSend":{"properties":[{"fieldId":"Date_publication_Twitter","fieldValue":"={{ $node[\"DateTime\"].json[\"currentDate\"] }}"},{"fieldId":"Twitter","fieldValue":"Publié"}]}},"id":"0e7eff31-aa6e-4626-bac5-85e2e00e6f23","name":"GristUpdate","type":"n8n-nodes-base.grist","typeVersion":1,"position":[280,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Mettre à jour Sheet"},{"parameters":{"options":{}},"id":"31813f58-ece9-4582-85fe-3f76fe83db9c","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[-620,660],"notesInFlow":true,"notes":"Récupère heure actuelle"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[N8N-TWITTER] Publication {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}","html":"=<h1>Article {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}</h1>\n<h2>Informations</h2>\nDate de publication: {{ $node[\"DateTime\"].json[\"currentDate\"] }}\n<h2>Contenu</h2>\n{{ $('GristSearch').item.json.Twitt }} ","options":{"replyTo":"noreply@n8n.ia86.cc"}},"id":"1ba85ef6-5436-4d21-84fe-4ed264448983","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[440,660],"notesInFlow":true,"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}},"notes":"Notification courriel"},{"parameters":{"text":"={{ $node[\"GristSearch\"].json[\"Twitt\"] }}","additionalFields":{}},"id":"255599f6-3662-4537-99d5-b2f5aa52e661","name":"X","type":"n8n-nodes-base.twitter","typeVersion":2,"position":[-80,660],"credentials":{"twitterOAuth2Api":{"id":"8YpX1E0OKTFb7Odm","name":"X account"}}}],"connections":{"Schedule Trigger":{"main":[[{"node":"DateTime","type":"main","index":0}]]},"GristUpdate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"GristSearch","type":"main","index":0}]]},"X":{"main":[[{"node":"GristUpdate","type":"main","index":0}]]},"GristSearch":{"main":[[{"node":"X","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Europe/Paris","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"870acd16-312b-456a-8531-31c9d7801111","triggerCount":1,"tags":[]}
|