{"name":"Airtable records to social graphics (Templated)","nodes":[{"parameters":{"content":"## Airtable records to social graphics\nEach new record gets a branded graphic, saved back to the record as an attachment.\n\n**Table fields:** `Name`, `Date`, `Image URL`, `Graphic` (attachment) and `Created` (created time, used by the trigger).\n\n**Template layers:** `title`, `date`, `photo`.\n\n**Airtable:** replace `YOUR_BASE_ID` and `YOUR_TABLE_ID` in the trigger and in the update node.\n\n**Templated node:** install it from the nodes panel (search \"Templated\"), add your API key from [app.templated.io/api-key](https://app.templated.io/api-key) as the credential, and replace `YOUR_TEMPLATE_ID` with your template ID.\n\n[Step-by-step guide](https://templated.io/workflows/airtable-records-to-social-graphics/)","height":560,"width":420},"id":"0e875f13-470d-5588-aeeb-392538d91ca7","name":"Setup","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-460,-200]},{"parameters":{"pollTimes":{"item":[{"mode":"everyMinute"}]},"authentication":"airtableTokenApi","baseId":{"__rl":true,"mode":"id","value":"YOUR_BASE_ID"},"tableId":{"__rl":true,"mode":"id","value":"YOUR_TABLE_ID"},"triggerField":"Created","additionalFields":{}},"id":"8929369b-1c37-54ab-add4-52049ff7bec8","name":"Airtable Trigger","type":"n8n-nodes-base.airtableTrigger","typeVersion":1,"position":[0,0]},{"parameters":{"operation":"createRender","template":{"__rl":true,"mode":"id","value":"YOUR_TEMPLATE_ID"},"format":"jpg","layersMode":"json","layersJson":"={{ JSON.stringify(Object.assign({ title: { text: $json.fields['Name'] }, date: { text: $json.fields['Date'] || '' } }, $json.fields['Image URL'] ? { photo: { image_url: $json.fields['Image URL'] } } : {})) }}"},"id":"2656366b-7387-5bac-9f43-b558a3746fb1","name":"Templated: Create a Render","type":"n8n-nodes-templated.templated","typeVersion":1,"position":[240,0]},{"parameters":{"assignments":{"assignments":[{"id":"a5a8edd8-088e-5d64-800e-ae936e7bbcfe","name":"id","value":"={{ $('Airtable Trigger').item.json.id }}","type":"string"},{"id":"78adaae0-d06e-5aab-9e36-cc1db5c6a90c","name":"Graphic","value":"={{ [{ url: $json.url }] }}","type":"array"}]},"options":{}},"id":"8ad2cc16-9004-5ea0-a98e-169536c451e1","name":"Prepare record update","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[480,0]},{"parameters":{"operation":"update","base":{"__rl":true,"mode":"id","value":"YOUR_BASE_ID"},"table":{"__rl":true,"mode":"id","value":"YOUR_TABLE_ID"},"columns":{"mappingMode":"autoMapInputData","value":{},"matchingColumns":["id"],"schema":[]},"options":{}},"id":"a350ba23-cd77-5268-be37-395d9d987974","name":"Save graphic to Airtable","type":"n8n-nodes-base.airtable","typeVersion":2.1,"position":[720,0]}],"pinData":{},"connections":{"Airtable Trigger":{"main":[[{"node":"Templated: Create a Render","type":"main","index":0}]]},"Templated: Create a Render":{"main":[[{"node":"Prepare record update","type":"main","index":0}]]},"Prepare record update":{"main":[[{"node":"Save graphic to Airtable","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1"},"meta":{"templateCredsSetupCompleted":false,"templated":{"recipe":"https://templated.io/workflows/airtable-records-to-social-graphics/"}},"tags":[]}