{"name":"Google Sheets rows to Instagram posts (Templated)","nodes":[{"parameters":{"content":"## Google Sheets rows to Instagram posts\nEach new row becomes a branded image, posted to Instagram with its caption.\n\n**Sheet columns:** `Headline`, `Subtitle`, `Photo URL`, `Caption`.\n\n**Template layers:** `headline`, `subtitle`, `photo`. Different names? Edit the Layers (JSON) field.\n\n**Instagram:** a Business or Creator account linked to a Facebook Page. Replace `YOUR_INSTAGRAM_USER_ID` in both Facebook Graph API nodes.\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/google-sheets-to-instagram-posts/)","height":560,"width":420},"id":"1d9e99e6-e63d-5cdc-9a1a-a1fed19f9440","name":"Setup","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-460,-200]},{"parameters":{"pollTimes":{"item":[{"mode":"everyMinute"}]},"documentId":{"__rl":true,"mode":"id","value":"YOUR_SPREADSHEET_ID"},"sheetName":{"__rl":true,"mode":"list","value":"gid=0","cachedResultName":"Sheet1"},"event":"rowAdded","options":{}},"id":"41bd61a3-25cd-56d5-beb2-0d4a22ef5ded","name":"Google Sheets Trigger","type":"n8n-nodes-base.googleSheetsTrigger","typeVersion":1,"position":[0,0]},{"parameters":{"operation":"createRender","template":{"__rl":true,"mode":"id","value":"YOUR_TEMPLATE_ID"},"format":"jpg","layersMode":"json","layersJson":"={{ JSON.stringify({ headline: { text: $json['Headline'] }, subtitle: { text: $json['Subtitle'] }, photo: { image_url: $json['Photo URL'] } }) }}"},"id":"22e4b119-f25a-57f5-85c2-2a28b9008373","name":"Templated: Create a Render","type":"n8n-nodes-templated.templated","typeVersion":1,"position":[240,0]},{"parameters":{"httpRequestMethod":"POST","graphApiVersion":"v22.0","node":"YOUR_INSTAGRAM_USER_ID","edge":"media","options":{"queryParameters":{"parameter":[{"name":"image_url","value":"={{ $json.url }}"},{"name":"caption","value":"={{ $('Google Sheets Trigger').item.json['Caption'] }}"}]}}},"id":"b5d69604-25c2-5e74-9d9a-dea488d611f0","name":"Create Instagram media","type":"n8n-nodes-base.facebookGraphApi","typeVersion":1,"position":[480,0]},{"parameters":{"httpRequestMethod":"POST","graphApiVersion":"v22.0","node":"YOUR_INSTAGRAM_USER_ID","edge":"media_publish","options":{"queryParameters":{"parameter":[{"name":"creation_id","value":"={{ $json.id }}"}]}}},"id":"5988f609-d839-598e-a543-bc59c7b887b2","name":"Publish to Instagram","type":"n8n-nodes-base.facebookGraphApi","typeVersion":1,"position":[720,0]}],"pinData":{},"connections":{"Google Sheets Trigger":{"main":[[{"node":"Templated: Create a Render","type":"main","index":0}]]},"Templated: Create a Render":{"main":[[{"node":"Create Instagram media","type":"main","index":0}]]},"Create Instagram media":{"main":[[{"node":"Publish to Instagram","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1"},"meta":{"templateCredsSetupCompleted":false,"templated":{"recipe":"https://templated.io/workflows/google-sheets-to-instagram-posts/"}},"tags":[]}