Overview
Provide a csv in the format : ex)
id,image_link,title, product_description, background_description 1, <absolute_path_to_file>, This Is a Title, description of the product, description of the background to be generated.
Output:
id,original_image_link,title, image_link, product_description, background_description 1,<absolute_path_to_file>,This is a title, <some_url_with_the_new_file>, product description, background description
Variables
|
Name |
Reference |
Type |
Required |
Default |
Options |
Description |
|---|---|---|---|---|---|---|
|
Client Slug |
GPS_CLIENT_SLUG |
Alphanumeric |
✅ |
- |
- |
Client ID to use |
|
Workflows File Name Or Pattern |
GPS_FILENAME_OR_PATTERN |
Alphanumeric |
✅ |
- |
- |
Name of the file to process or a Regex pattern to use to search for |
|
Workflows Folder Name |
GPS_SOURCE_FOLDER_NAME |
Alphanumeric |
➖ |
- |
- |
Folder name containing CSV to be processed |
|
Output File Name |
GPS_OUTPUT_FILE_NAME |
Alphanumeric |
✅ |
- |
- |
Name of the file to output to |
|
Match Type |
GPS_MATCH_TYPE |
Select |
✅ |
exact_match |
Exact: exact_match
|
Choose between exact match for the file or use regex with a pattern |
|
Image Column Name |
GPS_IMAGE_COLUMN_NAME |
Alphanumeric |
✅ |
- |
- |
Name of the column that has the paths to the images |
|
Product Description Column |
GPS_PRODUCT_DESCRIPTION_COLUMN |
Alphanumeric |
✅ |
- |
- |
Description of the product, used in generating the background |
|
Background Description Column |
GPS_BACKGROUND_DESCRIPTION |
Alphanumeric |
✅ |
- |
- |
Description to use for generating the background of the product image. This can be finicky and should be as descriptive as possible |
|
Test First Row |
GPS_TEST_ONE_ROW |
Boolean |
➖ |
- |
- |
If TRUE, process only the first row for testing |
|
Output Column Name |
GPS_OUTPUT_COLUMN_NAME |
Alphanumeric |
✅ |
- |
- |
Name of the column to store the results in |
YAML
Below is the YAML template
source:
template: Google Product Studio - Generate Background
inputs:
GPS_CLIENT_SLUG:
GPS_FILENAME_OR_PATTERN:
GPS_SOURCE_FOLDER_NAME:
GPS_OUTPUT_FILE_NAME:
GPS_MATCH_TYPE: exact_match
GPS_IMAGE_COLUMN_NAME:
GPS_PRODUCT_DESCRIPTION_COLUMN:
GPS_BACKGROUND_DESCRIPTION:
GPS_TEST_ONE_ROW:
GPS_OUTPUT_COLUMN_NAME:
type: TEMPLATE
guardrails:
retry_count: 0
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 200