# Generate Instagram Post from WooCommerce

Your online store using WooCommerce is doing very well but you still think you could do better. You had built a good number of followers in social media like Instagram and you wonder if you could capitalize on them. Maybe you should cross sell your product in Instagram and drive more traffics from there to your online store.

Then it hits you, it's a lot of work to post *quality* content on Instagram.

If this sounds like a problem you're having, then read on. We will show you how to turn your product listing in WooCommerce store to Instagram posts - complete with description of product, price and everything else you need.&#x20;

The best part is, you only need to set this up once and it runs autonomously after.&#x20;

<div align="center"><img src="/files/-MhMng7CKVyK9cLentVv" alt="Turn your WooCommerce product listing into..."></div>

![attractive Instagram posts to drive more traffic to your online store.](/files/-MhMo-M5bw76NWg5grly)

## Guide

### 1. Create an image template

You can create your own custom template complete with your branding and everything, or you could also choose one from our list of presets. In this tutorial we are going to use our custom template.

![Our custom template that matches our surfing apparel items we are selling](/files/-MhMpQ2sFwQ9x0dU3372)

For this template, we will have four layers that can be overridden - product, description, price and product image.

### 2. Create your product in WooCommerce

To ensure that our template has the correct data to fill in, you need to have appropriate information about your listing. In this case, we need to add product price, short product description and have at least one product image.

View the short clip below to see how we set this up.

{% embed url="<https://youtu.be/1ohhIXSHyEI>" %}

### 3. Connect your WooCommerce store to Integromat

Before you can integrate your store with Integromat, you need to create WooCommerce API Key.&#x20;

Simply go to your WooCommerce Settings > Advanced, and click on the REST API. You should see an option to create an API Key.

Take note on these values. If you're unclear on how to do this, please see the below clip.

{% embed url="<https://youtu.be/Bv8MId3J5Cg>" %}

{% hint style="warning" %}
Your API Key must remains a secret. Anyone can access your store data given the API Key.
{% endhint %}

### 4. Automating the workflow

Once you have set up Integromat connection to your WooCommerce, you can now start building automation workflow to tie everything together.

In general, here are the steps we need to do.

1. Watch for new products being listed in WooCommerce store
2. Generate image variations with Stencil using the information we get from above
3. Post those images to Instagram

Watch the video for full walk-through on how each of these steps are set up. They are very easy to follow.

{% embed url="<https://youtu.be/mjkRnYe1Po4>" %}

Once this is set up properly, whenever a new product is listed it will automatically generate an Instagram post with a caption to the product page. How cool is that?

Now you've got yourself a fully automated marketing bot 🦾

## Final result

![Final result](/files/-MhMvIwBkKR8RahgzrRS)

## More?

Since WooCommerce is built on top of WordPress, you can create similar image variations as preview image. This is called open graph image.

So when you share your product page link on Facebook, Twitter, etc they will see a link with image as preview instead of just text. Creating an appealing image can then help in driving more traffic to your site.

![You can customize this image preview](/files/-MhMx0OD2VXXJ5TPHKUF)

If you're interested to know more about this, read our tutorial on [generating open graph image for WordPress](/integrations/case-studies/generate-open-graph-image-for-wordpress.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usestencil.com/integrations/case-studies/generate-instagram-post-from-woocommerce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
