# Create a social image for every new WooCommerce product

> Generate a branded social image each time a WooCommerce product is created, using a native WooCommerce webhook or n8n. Product photo, name and price filled in for you.

- **URL**: https://templated.io/workflows/woocommerce-new-products-to-social/

---

WooCommerce tells Templated about each new product and gets back a branded image, ready to post, without a plugin.

[Start free](https://app.templated.io/signup) · [See the setup](https://templated.io/workflows/woocommerce-new-products-to-social/#how-to-run)

50 free credits. No credit card required.

1. When

   WooCommerce

   Product created

2. Templated

   Render PNG

   1080 × 1080 product image

3. Then

   Social channels

   Post or send for review

## At a glance

WooCommerce already knows how to call a URL when something happens in your store. Point its "Product created" webhook at Templated and every new product comes back as a finished image, without installing another plugin on your WordPress site.

Use the webhook alone when you only need the images, or run it through n8n to post them on Facebook and LinkedIn, or send them to Slack for a quick look first.

- Trigger

  WooCommerce: Product created

- Output

  PNG, 1080 × 1080 product image

- Delivered to

  Social channels: Post or send for review

- Run it with

  Inbound webhooks, n8n, REST API

- Cost

  1 credit per image (each page of a multi-page template counts as one)

- Free plan

  50 credits, no credit card required

## How it works

Three steps, from the event to the finished file.

1. ### WooCommerce sends the new product

   A native WooCommerce webhook (or the n8n WooCommerce Trigger) posts the product JSON: name, price, images and permalink.

2. ### Templated renders the image

   Your inbound webhook maps `name`, `price` and `images[0].src` to the template layers and renders a PNG.

3. ### The image goes where you need it

   Templated returns the render URL and can forward it to a callback URL, such as an n8n or Make webhook that posts it.

## Map your data to the template

Each dynamic layer in your template gets its value from one field. Name your layers like this, or map whatever names you use.

| Template layer | Comes from | Example |
| - | - | - |
| product-image | images\[0].src | https\://shop.com/wp-content/uploads/lamp.jpg |
| product-name | name | Brass Desk Lamp |
| price | price | 64.00 |
| url | permalink | shop.com/product/brass-desk-lamp |

Text layers take `text`, image layers take `image_url`. You can also change colors, hide layers or swap fonts per render. [See every layer property](https://templated.io/docs/renders/create/).

## Templates for this workflow

Start from one of these and make it yours in the editor, import a Canva design, or describe one to the AI template generator.

- ![Sale E-commerce with Photo Template preview](https://templated-assets.s3.amazonaws.com/public/thumbnail/08125b7e-723c-4f25-b443-5e78a60a717f.webp)

  ### [Sale E-commerce with Photo Template](https://templated.io/templates/e-commerce-marketing/sale-e-commerce-with-photo-template/)

- ![Post UI and UX Purple preview](https://templated-assets.s3.amazonaws.com/public/thumbnail/23599bf6-56ee-4be7-bd5c-7903b97e9998.webp)

  ### [Post UI and UX Purple](https://templated.io/templates/social-media/post-ui-and-ux-purple/)

- ![Yellow and Pink Social Media preview](https://templated-assets.s3.amazonaws.com/public/thumbnail/cf9cc886-c791-44d1-8a9c-3eb078998c21.webp)

  ### [Yellow and Pink Social Media](https://templated.io/templates/social-media/yellow-and-pink-social-media/)

[Browse all templates](https://templated.io/templates/) · [Generate one with AI](https://templated.io/ai-template-generator/)

## When to use it

- Your store runs on WooCommerce and you would rather not add another WordPress plugin.
- You want an image for every product, even if you post only some of them.
- You already run n8n and want product posts in the same place as your other automations.

## Tips

- Inbound webhook paths read arrays by position, so `images[0].src` picks the main product photo.
- WooCommerce sends prices without a currency symbol. Put the symbol in the template as fixed text next to the price layer.
- Products saved as drafts also fire "Product created". In n8n, add an IF node on `status = publish`.

## How to run it

Pick the tool you already use. The first one is the quickest way to set this up.

### Inbound webhooks

A URL any app can call

1. In Templated, open **Integrations › Webhooks**, create a webhook on your template and map `name`, `price` and `images[0].src` to its layers.
2. Optionally set a **callback URL** so each finished render is sent on to another app.
3. In WordPress, go to **WooCommerce › Settings › Advanced › Webhooks**, add a webhook with the topic **Product created** and paste your Templated webhook URL as the delivery URL.

[More about Inbound webhooks](https://templated.io/integrations/webhooks/)

### n8n

Cloud or self-hosted

1. Add a **WooCommerce Trigger** node on the **product.created** event.
2. Add an **IF** node so only published products continue.
3. Add the **Templated** node (**Create a Render**) and map the product fields to your layers.
4. Post the render URL with the **Facebook Graph API** or **LinkedIn** node, or send it to **Slack** for review.

[More about n8n](https://templated.io/integrations/n8n/)

### REST API

From your own code

1. Listen to WooCommerce's `product.created` webhook in your own code.
2. Call `POST /v1/render` with the product fields (sample below).
3. Store the returned `url` or pass it to your social scheduler.

cURL

```
curl -X POST https://api.templated.io/v1/render \
  -H "Authorization: Bearer $TEMPLATED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "YOUR_TEMPLATE_ID",
  "format": "png",
  "layers": {
    "product-image": {
      "image_url": "https://shop.com/wp-content/uploads/lamp.jpg"
    },
    "product-name": {
      "text": "Brass Desk Lamp"
    },
    "price": {
      "text": "$64"
    }
  }
}'
```

[API documentation](https://templated.io/docs/)

## Step-by-step guides

- [Automate Facebook Image Posts using Templated’s Native n8n Integration](https://templated.io/blog/automate-creating-facebook-posts-using-templated-and-n8n/)

## Related workflows

- ### [Post every new Shopify product to Instagram automatically](https://templated.io/workflows/shopify-new-products-to-instagram/)

  Publish a product in Shopify and a branded post with its photo, name and price goes out on Instagram, no design work in between.

  Run with: Make, Zapier, n8n, REST API

- ### [Turn a product CSV into marketing images for your whole catalog](https://templated.io/workflows/product-images-from-csv/)

  Export your products, upload the file, map the columns once and download an on-brand image for every product in the catalog.

  Spreadsheet generation, REST API, AI agent (MCP)

- ### [Turn 5-star customer reviews into shareable review cards](https://templated.io/workflows/customer-review-cards/)

  Your best reviews become social proof the day they arrive: quote, name, stars and product photo on a branded card.

  Zapier, Make, n8n, Inbound webhooks

[See all workflows](https://templated.io/workflows/)

## Set up your first workflow today

Create a template, connect your tool and render your first image in minutes.

50 free credits. No credit card required.

[Start free](https://app.templated.io/signup)
