· 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.

Summarize with AI:
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:

0 SrCzsCWRLvvhzDMl

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:

1 59yD0JIps0uF1ZQN1I57CA

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:

1 3eGxHY6Nyg5CfhXZvpO28Q

The platform used to bind these tools together is n8n.

To show this automation working, I have created a pseudo-business account.

1 C7NgNHvVFMhhaZnWUZeizw

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:

1 yW2l85EL1XDf-KQ8EDKOGw

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.

1 SsJn-OOuAZjF7LpVaPQLow

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.

1 jO55X0PT1ajx-MXnMQFmPA

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:

1 9LEcymT17DLUoaLrdkG UA

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.

1 U9o4mcyPAhjA9C2sskqj0A

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.

1 17CgPmNgo0jr7am2Zunm8g

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.

1 ItWaeaM em1ZdqhiEHsePg

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

1 U70wsqcyS6dY3mOngw0C3Q

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.

1 IRhpEQFTVMjFb2g6edQQpQ

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

1 I7wGtzSqdGw 8kHlLRVROQ

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

Automation to Repurpose Your Content

Automate Facebook Posts Image Generation using Templated

    Share:
    Automate your images, videos and PDFs with a powerful API

    Automate your marketing, social media visuals, banners, videos, 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 Create Beautiful Video Thumbnails for Instagram (2026 Guide)

    How to Create Beautiful Video Thumbnails for Instagram (2026 Guide)

    Learn how to design scroll-stopping Instagram video thumbnails and how to automate the process with Templated's editor and API.

    Build vs Third-Party API: Things You Need to Know Before Adding Image Automation to Your Stack

    Build vs Third-Party API: Things You Need to Know Before Adding Image Automation to Your Stack

    Choosing between building an in-house image automation system and using a third-party API isn’t just about speed, it’s about scale, maintenance, and long-term cost. Here’s a practical breakdown to help you decide what actually works for your situation.

    FFmpeg in Python: A Practical Guide with Code Examples

    FFmpeg in Python: A Practical Guide with Code Examples

    Learn how to use FFmpeg in Python with the ffmpeg-python library. Covers format conversion, audio extraction, video trimming, frame extraction, thumbnails, and a simpler API-based alternative with Templated.

    3 Quick Ways To Generate Templates for Your Automation

    3 Quick Ways To Generate Templates for Your Automation

    Create automation templates faster using three smart methods: import Canva designs, generate layouts with Templated’s AI Template Generator, or leverage MCP integration for AI-powered creation.