{
  "name": "Automate eCommerce Marketing Images",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw",
          "mode": "list",
          "cachedResultName": "e-Commerce DB",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "85553a03-6fdf-4f02-ae34-7bbb98866e3f",
      "name": "Google Sheets Trigger",
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "bXh7HBMbOy2WfmxD",
          "name": "Google Sheets Trigger account"
        }
      }
    },
    {
      "parameters": {
        "operation": "https://api.orshot.com/v1/studio/render",
        "studioTemplateId": 435,
        "responseType": "url",
        "studioModifications": {
          "modification": [
            {
              "key": "productType",
              "value": "={{ $json['Porduct Type'] }}"
            },
            {
              "key": "beforePrice",
              "value": "={{ $json['Before Price'] }}"
            },
            {
              "key": "discountPrice",
              "value": "={{ $json['Discount Price'] }}"
            },
            {
              "key": "productImageUrl",
              "value": "={{ $json['Product Image'] }}"
            },
            {
              "key": "currency",
              "value": "$"
            }
          ]
        }
      },
      "type": "@thelifeofrishi/n8n-nodes-orshot.orshot",
      "typeVersion": 3,
      "position": [
        208,
        0
      ],
      "id": "7a4bacb5-658c-4412-8276-a0ed72eb29b6",
      "name": "Orshot",
      "credentials": {
        "orshotApi": {
          "id": "gzXCQyDITQUSXUDt",
          "name": "Orshot account"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw",
          "mode": "list",
          "cachedResultName": "e-Commerce DB",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CT4rGhfUTCYLnrkkwJaqrq27LWEKNKXrAA0HgFcHRpw/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Porduct Type": "={{ $('Google Sheets Trigger').item.json['Porduct Type'] }}",
            "Banner Image": "={{ $json.data.data.content }}"
          },
          "matchingColumns": [
            "Porduct Type"
          ],
          "schema": [
            {
              "id": "Porduct Type",
              "displayName": "Porduct Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Product Image",
              "displayName": "Product Image",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Before Price",
              "displayName": "Before Price",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Discount Price",
              "displayName": "Discount Price",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Currency",
              "displayName": "Currency",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Banner Image",
              "displayName": "Banner Image",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.6,
      "position": [
        416,
        0
      ],
      "id": "a5573179-bc7e-42e1-8b9b-0bd40240d1d0",
      "name": "Append or update row in sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "W4hkVzPUKOW7ABm8",
          "name": "Google Sheets account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Orshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Orshot": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4637984c-9c34-42d6-9ed8-b07f594cbe70",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "fe9d9289f08f7b21e6974cbb411f98d4db000e6c38a1560216d7714b5796b0c3"
  },
  "id": "ZdD6dLtVX9JF5QTW",
  "tags": []
}