Log inStart Free Trial
easyCoexistence Official APIs

Auto-post Shopify products to Instagram, TikTok and Facebook

Shopify Flow can auto-post each new product to Instagram, TikTok, Facebook and more channels through easyCoexistence: on Product created, a Send HTTP request action sends the product's title, photo and link to easyCoexistence's posts API, which publishes on each network's official API, now or later. Stores without that action send a Shopify webhook to n8n instead, and Claude posts products on request.

Grow, Advanced, Plus

The Shopify plans that include Flow's Send HTTP request action.

30 seconds

How long Flow waits for an HTTP response before closing the connection and retrying later.

5 seconds

How long Shopify waits for a webhook endpoint to answer; a failed delivery is retried up to 8 times in 4 hours.

onlineStoreUrl

The product's Online Store address in Shopify's Admin API; null means the product is not published to that sales channel.

15 a day

Photo posts TikTok's API publishes per account, at most six a minute; video posts have the same caps.

How does Shopify Flow post a new product?

With a workflow of four steps. Product created starts it when a product is added, from the admin or through the API, whether or not it is on the Online Store. A Wait step gives the photo time to process, since Shopify returns no preview image until the media is ready. A condition lets the run continue only when the product's status is ACTIVE and its onlineStoreUrl has a value, so shoppers can open the page. Then a Send HTTP request action posts the product to easyCoexistence.

Add one Send HTTP request per account, since each Instagram account, TikTok account and Facebook Page is its own channel. Store the ec_live_ key as a Flow secret and reference it in the header as {{secrets.easycoexistence}}; Flow never shows a secret's value and redacts it from run logs.

1Product createdA new product, from the admin or the API
2WaitTime for the photo to process
3ConditionStatus ACTIVE and onlineStoreUrl set
4Send HTTP requestOne per account, to the posts API

What does the Send HTTP request action send?

A JSON body built with Flow's Liquid variables, which follow the Admin API's names in camel case. product.title is the name, product.onlineStoreUrl the page shoppers open, and product.featuredMedia.preview.image.url the main photo, in the format it was uploaded in. Set the Content-Type header to application/json and Authorization to Bearer with the secret. Leave publish_at out to post at once, or set one with its offset to queue the post for a better hour.

Instagram and TikTok take the photo and a caption and carry no link field, so the shop's address goes in the text. For Facebook, a link post shows a preview that Facebook builds from the product page itself.

Send HTTP request: an Instagram photo post and a Facebook link post
POST https://easycoexistence.com/api/v1/channels/<INSTAGRAM_ACCOUNT_ID>/posts
Authorization: Bearer {{secrets.easycoexistence}}
Content-Type: application/json

{
  "text": "New in the shop: {{product.title}}",
  "media": [{ "url": "{{product.featuredMedia.preview.image.url}}", "type": "image" }]
}

POST https://easycoexistence.com/api/v1/channels/<FACEBOOK_PAGE_ACCOUNT_ID>/posts

{
  "text": "New in the shop: {{product.title}}",
  "link": { "url": "{{product.onlineStoreUrl}}" }
}

How does n8n post products when Flow cannot send HTTP requests?

From a webhook Shopify sends by itself. In the Shopify admin, open Settings, then Notifications, choose Webhooks and Create webhook, and pick the Product creation event, JSON as the format and the Production URL of an n8n Webhook node. Shopify counts a delivery as failed when no answer arrives within 5 seconds, retries it up to 8 times in 4 hours and deletes the subscription after repeated failures, so leave the node's Respond setting on Immediately.

The payload is the product in Shopify's REST format, with title, handle, status, published_at, variants and their price, and images with their src. An If node continues when status is active and published_at is set, an AI Agent node can write the captions, and an HTTP Request node calls the posts API for each account.

1Shopify webhookProduct creation, in JSON
2Webhook nodeRespond: Immediately
3Ifstatus active, published_at set
4HTTP RequestPOST /api/v1/channels/:id/posts

How does Claude post products on request?

With Shopify's own connector beside easyCoexistence's. Claude's connector directory lists a Shopify connector made by Shopify, whose tools search and read the store's products. Ask, for example: "Post our three newest products to Instagram and TikTok tomorrow from 10am New York time, an hour apart." Claude looks the products up, writes a caption for each network and schedules each post with publish_instagram_post or publish_tiktok_post and scheduled_at. For the store's LinkedIn Page, ask for a draft: Claude publishes it with publish_linkedin_post once you approve it.

A product's link works too: with web search on, Claude reads a page from a URL you give it. Claude acts when asked and does not watch the store between chats, which is why products that launch overnight go out through Flow or n8n.

What do the networks require of a product post?

Each network's rules, with easyCoexistence's checks on top, apply before anything is queued, so a product that cannot go out is refused straight away:

  • Instagram: JPEG images only, so a product photo uploaded as PNG is refused; several photos make a carousel of 2 to 10. Up to 100 API-published posts per account in a moving 24 hours.
  • TikTok: photo posts of 1 to 35 JPEG or WebP images with a title of up to 90 characters, and up to 15 photo posts per account a day.
  • Facebook: one photo, one video or a link per post, with the product page's own preview for a link.
  • LinkedIn, posted by Claude once you approve the draft: text of up to 3,000 characters with one JPG, PNG or GIF image, or a link with its title, since LinkedIn does not read the page.
  • Media: a public HTTPS link, such as the cdn.shopify.com address of a product image; a scheduled post's photo is copied when it is queued.

How to set it up

  1. Connect the store's accountsIn the easyCoexistence dashboard, connect the Instagram account, TikTok account and Facebook Page the store posts to, and note each account_id.
  2. Keep the key in FlowCreate a Partner API key under Profile, Developers, and save it as a Flow secret.
  3. Build the workflowProduct created, Wait, a condition on status and onlineStoreUrl, then one Send HTTP request per account.

Common mistakes

  • Posting on Product created with no condition. The trigger fires whether or not the product is on the Online Store, so check that onlineStoreUrl has a value, or the post sends shoppers to a page they cannot open.
  • Reading the photo the moment the product is created. Shopify's preview image stays null until the media is ready, so without a Wait step the request goes out with no picture and is refused.
  • Leaving On client error set to Retry. A post easyCoexistence refuses, such as a PNG for Instagram, gets the same 4XX answer for 24 hours; choose Fail there and keep Retry for 5XX and 429.
  • Making Shopify wait while n8n posts. Shopify counts a delivery as failed after 5 seconds and sends it again, which can post the same product twice; answer at once and post afterwards.
Doing this with EasyCoexistence

easyCoexistence gives your store, and the AI agents that run it, reach to customers on Instagram, TikTok, Facebook and more channels, each through its official API: a posts API that Shopify Flow and n8n call, one MCP connector for Claude and ChatGPT, and a queue that publishes when you choose, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

What about products created as drafts?

Run the same steps from Flow's Product status updated trigger, which starts when a product's status changes, so the post goes out when the draft becomes active.

Can it post a product again when it is back in stock?

Yes. Flow's Product variant back in stock trigger can start the same Send HTTP request action, with a caption saying the product is available again.

Can the store's WhatsApp number send order updates too?

Yes, as approved templates from the store's own number, sent by Flow or by a webhook receiver when an order is created. The Shopify guide for WhatsApp covers it.

How much does easyCoexistence cost for posting Shopify products?

US$ 9 to US$ 0.75 per connection per month, falling as you add connections, the same on each network. The posts API and the MCP connector are included, with the first 3 days free.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on