Quick Overview
This workflow receives a VNTANA product publish webhook, downloads the product’s renders, uses Google Gemini to create a studio-style re-render and generate catalog tags, then uploads the new render back to VNTANA and updates the product’s tags via the VNTANA API.
How it works
- Receives a POST webhook from VNTANA containing the published product UUID.
- Downloads all existing renders for the product from VNTANA and filters out any files already named like previously generated studio renders.
- Converts each remaining render to base64 and sends it to Google Gemini (gemini-2.5-flash) to generate 10–15 JSON-formatted e-commerce tags.
- Creates missing tags (or searches for existing ones) in VNTANA and updates the product with up to 10 merged tag UUIDs.
- Sends the render image to Google Gemini (gemini-2.5-flash-image) with a strict studio photography prompt to generate a new re-rendered image.
- Extracts the returned image from the Gemini response and uploads it to VNTANA as a new render on the same product.
Setup
- Add a Google Gemini API key as an HTTP Query Auth credential and assign it to both Gemini HTTP Request steps.
- Install and configure the VNTANA community node with a VNTANA API credential, and set your workspace UUID (YOUR_WORKSPACE_UUID) in the VNTANA download/upload steps.
- In the tagging/update code step, set your org-scoped VNTANA API token (X-AUTH-TOKEN bearer) and workspace UUID, and confirm it can read and update products and manage tags.
- Register the workflow’s webhook URL in VNTANA for product/asset publish events and send the product UUID in the request body as expected by the workflow.