· automation · 4 min read

Updated on

Automate Facebook Image Posts using Templated’s Native n8n Integration

Create stunning Facebook posts in bulk using Templated and n8n. This automation lets you turn spreadsheet data into ready-to-publish images, no design skills or manual effort needed.

Summarize with AI:
Create stunning Facebook posts in bulk using Templated and n8n. This automation lets you turn spreadsheet data into ready-to-publish images, no design skills or manual effort needed.

Templated is an image automation API that can be used to automate your social media images, including Facebook.

In this particular post, we will be automating the image generation for this platform using n8n. Templated now has a native n8n integration, which means you don’t need to use an HTTP node in your workflow.

For this particular tutorial, I will use a template from the Templated’s gallery only; however, if you have the base template already built in some other software (like Canva), you can use that as is in the editor and add layers over it, which you would like to automate.

So, let’s get started!

Tools You Will Need To Programatically Automate Facebook Images

  • Account on Templated (Get 50 Free Credits when You Sign up)
  • Google Sheets to maintain a database
  • Account on n8n

Set Up Your Google Sheets Database

Let’s first hop onto our Google Sheets and create our database. I have already created it as per the template and layers I am automating.

First, let’s see my Spreadsheet, & then I will show you what particular template I am using.

Watch the video walkthrough here:

Vlick to view image in full size. 0 rGJFtZ4-ctjXDwm5 The Spreadsheet for database

As you can see in the tab “Sheet1”, row 1 has all the layers I want to change. These are ‘Blog Headings’, ‘Date of Publishing’ & ‘Min Read’.

Below each particular layer, I have mentioned the text I would like to change.

In tab ‘Sheet2’, I am taking the output, which will be a URL of the image generated

Press enter or click to view image in full size 0 mnrkgS0GFIMfqc g

Choose and Customize a Template in Templated

Now let’s hop to Templated.

As I mentioned earlier, I am using the already present template from this tool.

Press enter or click to view image in full size 0 b3xonHFwrZsR UGj Let’s open up this template, and do some editing (if needed), further let’s see what layers we will automate.

And the layers that we mentioned in our database are: -

Press enter or click to view image in full size 0 FVosh3WFzuJ T4QI You can see there are 3 layers, and they correspond to the columns in our Spreadsheet.

For this tutorial, I am changing just the text of layers; you can do more with Templated. For instance, you can change text_font, text_color, and even the background image.

To understand more about how you can do that, please refer to the documentation.

Create a Workflow in n8n

Now we know what we want to create, let’s go to n8n now.

Step 1: Google Sheets → Row Added

In n8n, create a new workflow. We are taking Google Sheets → Row Added as the first node.

Press enter or click to view image in full size 0 JsxdNSpYoGbLacxU Let’s test this node & see if it gives the right output or not.

Quick Tip — It’s good to keep testing every node you build when working with a workflow. This helps to eliminate the issue same time as it may come.

Press enter or click to view image in full size 0 SyAfeZCBWDZNCi3R This node is working perfectly.

Step 2: Add the Templated Node

Let’s now connect the next node, which will be Templated. If you’re using this node in n8n for the first time, you will have to install it.

Here’s how you do it ⬇️

Press enter or click to view image in full size

0 5zVhkWCyKUU5iDTl Once installed, you will see the node working, the action in it will be ‘create a render’, & below is the mapping you should do. ⬇️

Press enter or click to view image in full size 0 Gob4GcjHAoBSIYz5 In the same way, I am mapping the other layers too.

Press enter or click to view image in full size 0 HGHVCSK4tsxn RAh

Step 3: Test the Render Output

Let’s now test this step also.

Press enter or click to view image in full size

0 Sd1knmHmPuZNqDuT It is working correctly, and we are getting the render_url data point.

Let’s separately check it.

Press enter or click to view image in full size 0 F0j68icOjBjxfaj As you can see, the same data that we were rendering the image for is marked in the image below.

Press enter or click to view image in full size 0 -MwBOgQIhUag4qkY

Step 4: Send the Rendered Image Back to Google Sheets

The final step would be to take them back into our Spreadsheet in tab “Sheet2”. Here’s how we will be mapping our last node ‘Google Sheets → Append row’, taking the blog heading from our first node, and the rendered URL from the Templated node. ↓

Press enter or click to view image in full size 0 97WbVTOzRnzH64tM Let’s execute this one also. Below is a GIF that shows how you get your data into the n8n dashboard. With this final step, our database also gets updated.

Press enter or click to view image in full size 0 GHPL5H3ZiuMMPsbN

Wrapping up

Want to use this as is?

Here is the Blueprint that you can use.

Businesses can use this to scale up this automation to any level as per the use case.

You can use any no-code tool, including Zapier or Make. We already have some of the posts made.

Alright, so if you have read up until here, a little about me, I am Peter, the founder of Templated.

If you need any help connecting the API to your workflows, you can reach out to me on the chat after signing up for an account. Glad to help! ☺️

Share:
Automate your images and PDFs with a powerful API

Automate your marketing, social media visuals, banners, PDFs and more with our
 API and no-code integrations

Learn More
Back to Blog

Ready to automate your images and PDFs?

Sign up to our free trial and try it for yourself

See our latest posts

View all posts »
How To Automate Quotes Images for Posting on Social Platforms using Templated & n8n

How To Automate Quotes Images for Posting on Social Platforms using Templated & n8n

Learn how to automate quote images for social media using Templated & n8n. From setting up templates to connecting Google Sheets and APIs, this step-by-step tutorial shows you how to save time, reduce manual work, and keep your content consistent.

Automate Certificate Generation via Templated’s Built-In Dashboard Spreadsheet Feature

Automate Certificate Generation via Templated’s Built-In Dashboard Spreadsheet Feature

With Templated’s spreadsheet feature, you can automate certificates, banners, or posts in minutes. Just upload your data, map template layers, and generate designs instantly, no coding needed, simple enough for beginners.

Automate Personalized Welcome Email Images with Templated and Make

Automate Personalized Welcome Email Images with Templated and Make

Automate personalized welcome email images in minutes using Templated and Make. Create a template, pull names from Google Sheets, and send unique visuals that boost engagement, stand out in inboxes, and make every “welcome” feel one-of-a-kind.

How to Automate Your Real Estate Template Using Templated and Make

How to Automate Your Real Estate Template Using Templated and Make

Create stunning Real Estate images in bulk using Templated and Make.com. This automation lets you turn spreadsheet data into ready-to-publish images, no design skills or manual effort needed.