Breadcrumbs

Google Product Studio Overview

Overview

These templates use the google product studio API to either Generate a background, or remove a background from an image/images. It will then return a url to the processed image in a csv


Generate Background:

Variables

Name

Reference

Type

Required

Options

Description

Client Slug

GPS_CLIENT_SLUG

alphanumeric

True


Authentication to use Google Product Studio

Workflows File Name or Pattern

GPS_FILENAME_OR_PATTERN

Alphanumeric

True


CSV File that holds the image paths (see below)

Workflows Folder Name

GPS_SOURCE_FOLDER_NAME

Alphanumeric

False


Folder that contains Workflows File Name

Output File Name

GPS_OUTPUT_FILE_NAME

Alphanumeric

True


Output file name

Match Type

GPS_MATCH_TYPE

Select

True

Regex, Exact Match

How to search for the workflows File Name

Image Column Name

GPS_IMAGE_COLUMN_NAME

Alphanumeric

True


Name of the Column that contains the paths to the image(s) to process

Product Description Column

GPS_PRODUCT_DESCRIPTION_COLUMN

Alphanumeric

True


Name of column that contains the product description

Background Description Column

GPS_BACKGROUND_DESCRIPTION

Alphanumeric

True


Name of the column that contains the prompt used to generate the background for the image

Test first row

GPS_TEST_ONE_ROW

Boolean

False

False, True

Option to only process the first row of the csv. Can be useful for debugging quickly

Output Column Name

GPS_OUTPUT_COLUMN_NAME

Alphanumeric

True


Name of the column to write the processed image link to

CSV Formatting

This is an example of how the csv for Generate Background should be formatted

The ID and Title are not used in the processing for this template. In this case, the mappings would go as follows:

  • Image Column Name: image_link

  • Product Description Column: description

  • Background Description Column: background_description

id

image_link

title

description

background_description

345abc

https://www.therabody.com/cdn/shop/files/Theragun-Prime-G6-PLP-Thumbnail-1.webp?v=1758755086&width=1920

Theragun Prime 6th Gen

Theragun Prime is our most durable massage gun yet, built for reliable recovery that relieves pain, increases flexibility and speeds up recovery. With deep percussive massage and a rugged, impact-resistant design, it’s built to power through intense training, outdoor adventures and demanding lifestyles.

Product photography of a massage gun placed on a gym floor. The product is surrounded by free weights and gym equipment. Dramatic backlighting highlights the silhouette and texture of the device. lifestyle photography style.


Remove Background

Variables

Name

Reference

Type

Required

Options

Description

Client Slug

GPS_CLIENT_SLUG

alphanumeric

True


Authentication to use Google Product Studio

Workflows File Name or Pattern

GPS_FILENAME_OR_PATTERN

Alphanumeric

True


CSV File that holds the image paths (see below)

Workflows Folder Name

GPS_SOURCE_FOLDER_NAME

Alphanumeric

False


Folder that contains Workflows File Name

Output File Name

GPS_OUTPUT_FILE_NAME

Alphanumeric

True


Output file name

Match Type

GPS_MATCH_TYPE

Select

True

Regex, Exact Match

How to search for the workflows File Name

Image Column Name

GPS_IMAGE_COLUMN_NAME

Alphanumeric

True


Name of the Column that contains the paths to the image(s) to process

Test first row

GPS_TEST_ONE_ROW

Boolean

False

False, True

Option to only process the first row of the csv. Can be useful for debugging quickly

Output Column Name

GPS_OUTPUT_COLUMN_NAME

Alphanumeric

True


Name of the column to write the processed image link to

CSV Format

Only the Image Column will be processed here, a new column with the Output Column Name will be added in the output