# Hermoso: publish_to_shopify_product · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/publish_to_shopify_product/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / publish_to_shopify_product

# `publish_to_shopify_product`

Publish an image or video onto a Shopify product destructive

Area: SHOPIFY: the merchant's own storefront · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Attach a finished IMAGE or VIDEO to one of the merchant's Shopify product listings, as product media. Pass productId (from list_shopify_products, the gid://shopify/Product/… form) and a PUBLIC https mediaUrl, which is what every Hermoso render returns. Whether it is a video is read from the file (.mp4 / .mov / .webm, or the link's content type); pass kind to say so outright. An image is fetched by Shopify directly; a video is uploaded to Shopify for you (MP4, MOV or WEBM, up to Shopify's 1 GB and 10-minute product-video limits; a file over a limit is refused by name, never cut). Shopify processes media asynchronously: the reply is the status read back from Shopify, and READY means it is live on the listing while PROCESSING means it will appear when Shopify finishes. That is success, not a failure. Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on. Free: the render was already paid for.

## Parameters

Parameter Type Description

`productId` required `string` gid://shopify/Product/… from list_shopify_products

`mediaUrl` `string` any public https image or video URL: a Hermoso render works, and so does ANY file of your own brought in with upload_file

`imageUrl` `string` older name for mediaUrl; still accepted

`kind` `"image" | "video"` only when the link does not say (no file extension and no content type)

`alt` `string` alt text for accessibility and SEO; defaults to a generic credit

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/publish_to_shopify_product`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"publish_to_shopify_product","arguments":{"productId":"<string>"}}}`
**CLI**

`hermoso call publish_to_shopify_product --json '{"productId":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_shopify_products](https://hermoso.ai/docs/reference/publish/list_shopify_products/) List the Shopify catalog
- [connect_shopify_store](https://hermoso.ai/docs/reference/publish/connect_shopify_store/) Connect a Shopify store
- [record_shopify_marketing_activity](https://hermoso.ai/docs/reference/publish/record_shopify_marketing_activity/) Record an ad or campaign in Shopify > Marketing
- [list_shopify_stores](https://hermoso.ai/docs/reference/publish/list_shopify_stores/) Which Shopify store this brand works with
- [list_shopify_marketing_activities](https://hermoso.ai/docs/reference/publish/list_shopify_marketing_activities/) List Shopify marketing activities
- [delete_shopify_marketing_activity](https://hermoso.ai/docs/reference/publish/delete_shopify_marketing_activity/) Delete a Shopify marketing activity
- [create_shopify_discount_code](https://hermoso.ai/docs/reference/publish/create_shopify_discount_code/) Create a Shopify discount code
- [list_shopify_discount_codes](https://hermoso.ai/docs/reference/publish/list_shopify_discount_codes/) List Shopify discount codes
- [disable_shopify_discount_code](https://hermoso.ai/docs/reference/publish/disable_shopify_discount_code/) Disable a Shopify discount code
- [list_shopify_orders](https://hermoso.ai/docs/reference/publish/list_shopify_orders/) List Shopify orders

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
