· Tutorial · 5 min read
How To Automate Pinterest Image Generation & Posting using n8n & Templated
Automate Pinterest image creation and posting using n8n and APIs. This guide shows how to connect tools like Cloudinary, Google Sheets, and Templated to build a scalable workflow that generates and publishes images automatically, saving time and effort.

Pinterest hit 619 million monthly active users in Q4 2025, according to its own investor report, a 12% year-over-year increase. (Source)
And if your business depends on posting on Pinterest, this kind of automation can help you get things done much faster.
While you can do everything manually or rely on fancy front-end tools that cost a lot, there is another way.
You can use APIs and no-code automation tools to build your own system, one that can cost significantly less than those tools.
Hi, I am Pedro, the founder of Templated. It is an API that helps automate image generation for any platform. In this setup, I have used a couple of tools, including Templated.
I am assuming you have a basic understanding of no-code tools and APIs so that you can follow along with this tutorial.
Let's get started building one.
Which Tools Are Used To Build This Automation
First, I have used Cloudinary. It is an API to manage media storage. Via API calls, I have stored images of my product with fashion influencers wearing it.
I will show these on Pinterest using a set template from Templated.
One example image is below:

For the template design, we will use our editor and create a simple template where this image will fit in.
You can also import designs from Canva; every layer gets imported as is in the editor. This is one of the features of our editor; you can read more about it here as well.
Further, we have a Google Spreadsheet that manages all the details of the layers that will go into our template.
Here's the base template that we have used below:

The image in the center changes based on the images that we have saved in the public link of the image stored in Cloudinary.
Here's the Google Sheets screenshot from which we are taking the data:

The platform used to bind these tools together is n8n.
To show this automation working, I have created a pseudo-business account.

To post on Pinterest, we are using a 3rd party API, Postpeer.
Building Our Pinterest Automation
This is how the whole workflow looks in the image below:

Now, let's start building the automation from scratch. The first node in our workflow is a trigger.
The second node is where we fetch all the data from our spreadsheet.
While executing this node, you can also see how the output looks.

Since there are multiple items in our spreadsheet, the Templated API generates images one by one. We will build the rest of the automation keeping this in mind.
The next node is a loop node, which helps process items one by one in the workflow.
Connecting Templated To Workflow
After the loop node, we want to create image-changing layers programmatically using Templated. All of the layers below are mapped programmatically to our spreadsheet.

In n8n, to connect Templated, you can use the dedicated Templated node. To test the Templated API, you can sign up here and get 50 free credits to try it out. You can learn more about how all parameters are used in the documentation.
Here's the configuration of this node:

In the image above, I have shown how one layer is mapped to a field in the data.
In the same way, I have mapped the other layers as well, which then generates a rendered URL as the output from Templated.

Posting The Final Image on Our Pseudo Pinterest Account
After the rendered URL from our previous node, we use a wait node so that our workflow pauses for a short time.
We are doing this to avoid hitting Pinterest posting limits.
Quick Tip - It is always better not to push platform limits, as it can trigger their bot detection and may get your account blocked.
We wait for 60 seconds before moving to the next node.

To post on Pinterest, I am using PostPeer, which helps publish content to the platform.
I am specifically using their Pinterest API. Just a quick note, there are two steps involved before posting on Pinterest, which is to find the account ID and board ID. Their docs explain how to get these using a GET request.
Both IDs are required to post on Pinterest. Broadly speaking, let me show you the configuration of this node where I have used both of these IDs.

This is the full configuration in JSON format, using both IDs, as shown below. ⬇️

After the PostPeer API runs, it returns a live link to the post on Pinterest. Our workflow takes that link and stores it in a dedicated column for URLs.
This way, we have a record of all our Pinterest images in one place.
So we have a record of our Pinterest images in there.

As you can see, the URLs have been updated. Let's check one of them.

This way, we can automate the entire process. Here is the blueprint for this automation that you can use as is in your n8n canvas.
The only thing you need to change is the API keys from the different tools, including Templated.
Conclusion
If Pinterest is a platform you need to post on daily, or where your audience is active, this kind of automation can be very useful.
Templated's API can be used to automate image generation for any platform, just like we did here, across multiple use cases.
You get 50 free credits when you sign up for the first time to spin the API & see if it fits your use case.
Recently, we have also built a front-end tool for those who are not familiar with n8n or APIs. Supapin is a Pinterest automation tool that produces SEO-optimized titles, descriptions, and images just by providing a page URL. This tool uses AI to create images as per your products, and can schedule your pins. Do check our more on the website.
Additional Resources
Automate Social Media Image Generation & Posting using Make & Templated API
Build a Workflow That Automates Quotes Image Generation for Social Media



