 {
  "tray_export_version": 4,
  "export_type": "workflow",
  "workflows": [
    {
      "id": "c6c45534-df72-4526-9051-441f1f4824b7",
      "created": "2025-03-26T18:51:53.149207Z",
      "workspace_id": "2692efdf-d2f6-4546-b22c-32cdbae16f33",
      "project_id": "31b2f8b5-0cd2-4aac-bc56-9e17f8eaf23f",
      "group": "0444c521-15d0-48e4-ab92-2efb909133d2",
      "creator": "80968988-b965-4bcb-9a54-9bf1fe8f560c",
      "version": {
        "id": "71e70266-1cb6-4f94-8db5-eadd94e5bfe6",
        "created": "2025-05-06T17:18:56.285378Z"
      },
      "title": "Import Snowflake Rows to Salesloft Accounts Signals",
      "description": "This workflow fetches data from Snowflake, checks if accounts exist in Salesloft, creates new accounts or updates existing ones with custom fields based on the Snowflake data. It handles different scenarios through loops and conditional branches.",
      "enabled": false,
      "tags": [],
      "settings": {
        "config": {
          "report_id": "00O4w000008xjHFEAY",
          "node_endpoint": "https://1901-67-172-244-207.ngrok.io/sfdc-data"
        },
        "input_schema": {},
        "output_schema": {}
      },
      "steps_structure": [
        {
          "name": "trigger",
          "type": "normal",
          "content": {}
        },
        {
          "name": "snowflake-1",
          "type": "normal",
          "content": {}
        },
        {
          "name": "loop-1",
          "type": "loop",
          "content": {
            "_loop": [
              {
                "name": "salesloft-1",
                "type": "normal",
                "content": {}
              },
              {
                "name": "boolean-condition-1",
                "type": "branch",
                "content": {
                  "true": [
                    {
                      "name": "text-helpers-3",
                      "type": "normal",
                      "content": {}
                    },
                    {
                      "name": "salesloft-3",
                      "type": "normal",
                      "content": {}
                    }
                  ],
                  "false": [
                    {
                      "name": "loop-2",
                      "type": "loop",
                      "content": {
                        "_loop": [
                          {
                            "name": "text-helpers-2",
                            "type": "normal",
                            "content": {}
                          },
                          {
                            "name": "text-helpers-1",
                            "type": "normal",
                            "content": {}
                          },
                          {
                            "name": "salesloft-2",
                            "type": "normal",
                            "content": {}
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ],
      "steps": {
        "boolean-condition-1": {
          "title": "Account doesn't exist?",
          "connector": {
            "name": "boolean-condition",
            "version": "2.3"
          },
          "operation": "boolean_condition",
          "output_schema": {},
          "error_handling": {},
          "properties": {
            "conditions": {
              "type": "array",
              "value": [
                {
                  "type": "object",
                  "value": {
                    "value1": {
                      "type": "jsonpath",
                      "value": "$.steps.salesloft-1.data"
                    },
                    "comparison_type": {
                      "type": "string",
                      "value": "==="
                    },
                    "value2": {
                      "type": "string",
                      "value": "0"
                    }
                  }
                }
              ]
            },
            "strictness": {
              "type": "string",
              "value": "All"
            }
          }
        },
        "loop-1": {
          "title": "Loop Snowflake Results",
          "description": "Loop trough the \"rows\" array",
          "connector": {
            "name": "loop",
            "version": "1.3"
          },
          "operation": "loop_array",
          "output_schema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-03/schema",
            "id": "http://jsonschema.net",
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "object",
                "properties": {
                  "UNIQUE_ID": {
                    "type": "string"
                  },
                  "ACCOUNT_ID": {
                    "type": "string"
                  },
                  "SFDC_ACCOUNTS_ID_SK": {
                    "type": "string"
                  },
                  "PARTNER_INDICATOR": {
                    "type": "null"
                  },
                  "PARTNER_ACCOUNT_C": {
                    "type": "null"
                  },
                  "FULL_DATE": {
                    "type": "string"
                  },
                  "LICENSE": {
                    "type": "string"
                  },
                  "PRODUCT": {
                    "type": "string"
                  },
                  "TYPE": {
                    "type": "string"
                  },
                  "SOFT_LIMIT": {
                    "type": "boolean"
                  },
                  "SEATS_PURCHASED": {
                    "type": "number"
                  },
                  "GLOW_UP_WAVE": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "USERS_PROVISIONED": {
                    "type": "number"
                  },
                  "USERS_CONFIGURED": {
                    "type": "number"
                  },
                  "USERS_ACTIVE": {
                    "type": "number"
                  },
                  "USERS_ENGAGED": {
                    "type": "number"
                  },
                  "USERS_PROVISIONED_LAST_7_DAYS": {
                    "type": "number"
                  },
                  "USERS_PROVISIONED_LAST_30_DAYS": {
                    "type": "number"
                  },
                  "USERS_CONFIGURED_LAST_7_DAYS": {
                    "type": "number"
                  },
                  "USERS_CONFIGURED_LAST_30_DAYS": {
                    "type": "number"
                  },
                  "USERS_ACTIVE_LAST_7_DAYS": {
                    "type": "number"
                  },
                  "USERS_ACTIVE_LAST_30_DAYS": {
                    "type": "number"
                  },
                  "USERS_ENGAGED_LAST_7_DAYS": {
                    "type": "number"
                  },
                  "USERS_ENGAGED_LAST_30_DAYS": {
                    "type": "number"
                  },
                  "UNUSED_SEATS": {
                    "type": "number"
                  },
                  "UNUSED_SEATS_PERCENTAGE": {
                    "type": "number"
                  }
                },
                "required": [
                  "UNIQUE_ID",
                  "ACCOUNT_ID",
                  "SFDC_ACCOUNTS_ID_SK",
                  "PARTNER_INDICATOR",
                  "PARTNER_ACCOUNT_C",
                  "FULL_DATE",
                  "LICENSE",
                  "PRODUCT",
                  "TYPE",
                  "SOFT_LIMIT",
                  "SEATS_PURCHASED",
                  "GLOW_UP_WAVE",
                  "USERS_PROVISIONED",
                  "USERS_CONFIGURED",
                  "USERS_ACTIVE",
                  "USERS_ENGAGED",
                  "USERS_PROVISIONED_LAST_7_DAYS",
                  "USERS_PROVISIONED_LAST_30_DAYS",
                  "USERS_CONFIGURED_LAST_7_DAYS",
                  "USERS_CONFIGURED_LAST_30_DAYS",
                  "USERS_ACTIVE_LAST_7_DAYS",
                  "USERS_ACTIVE_LAST_30_DAYS",
                  "USERS_ENGAGED_LAST_7_DAYS",
                  "USERS_ENGAGED_LAST_30_DAYS",
                  "UNUSED_SEATS",
                  "UNUSED_SEATS_PERCENTAGE"
                ]
              },
              "count": {
                "type": "number",
                "id": "http://jsonschema.net/total"
              },
              "index": {
                "type": "number",
                "id": "http://jsonschema.net/index"
              },
              "is_first": {
                "type": "boolean",
                "id": "http://jsonschema.net/is_first"
              },
              "is_last": {
                "type": "boolean",
                "id": "http://jsonschema.net/is_last"
              }
            }
          },
          "error_handling": {},
          "properties": {
            "array": {
              "type": "jsonpath",
              "value": "$.steps.snowflake-1.rows"
            }
          }
        },
        "loop-2": {
          "title": "Loop Accounts Results",
          "connector": {
            "name": "loop",
            "version": "1.3"
          },
          "operation": "loop_array",
          "output_schema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-03/schema",
            "id": "http://jsonschema.net",
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "number"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "updated_at": {
                    "type": "string"
                  },
                  "archived_at": {
                    "type": "null"
                  },
                  "name": {
                    "type": "string"
                  },
                  "domain": {
                    "type": "string"
                  },
                  "conversational_name": {
                    "type": "null"
                  },
                  "description": {
                    "type": [
                      "null",
                      "string"
                    ]
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "website": {
                    "type": "null"
                  },
                  "linkedin_url": {
                    "type": "null"
                  },
                  "twitter_handle": {
                    "type": "null"
                  },
                  "street": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "city": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "state": {
                    "type": [
                      "null",
                      "string"
                    ]
                  },
                  "postal_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "country": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "locale": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "industry": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "company_type": {
                    "type": "null"
                  },
                  "founded": {
                    "type": "null"
                  },
                  "revenue_range": {
                    "type": "null"
                  },
                  "size": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "crm_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "crm_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "crm_object_type": {
                    "type": "string"
                  },
                  "owner_crm_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "prospector_engagement_score": {
                    "type": "null"
                  },
                  "prospector_engagement_level": {
                    "type": "null"
                  },
                  "last_contacted_at": {
                    "type": [
                      "null",
                      "string"
                    ]
                  },
                  "last_contacted_type": {
                    "type": [
                      "null",
                      "string"
                    ]
                  },
                  "do_not_contact": {
                    "type": "boolean"
                  },
                  "custom_fields": {
                    "type": "object",
                    "properties": {
                      "UNUSED_SEATS_PERCENTAGE": {
                        "type": "string"
                      }
                    }
                  },
                  "user_relationships": {
                    "type": "array",
                    "items": {}
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "counts": {
                    "type": "object",
                    "properties": {
                      "people": {
                        "type": [
                          "null",
                          "number"
                        ]
                      }
                    }
                  },
                  "owner": {
                    "type": "object",
                    "properties": {
                      "_href": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      }
                    }
                  },
                  "creator": {
                    "type": "object",
                    "properties": {
                      "_href": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      }
                    }
                  },
                  "last_contacted_by": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "_href": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      }
                    }
                  },
                  "last_contacted_person": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "_href": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      }
                    }
                  },
                  "company_stage": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "_href": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      }
                    }
                  },
                  "account_tier": {
                    "type": "null"
                  }
                },
                "required": [
                  "id",
                  "created_at",
                  "updated_at",
                  "archived_at",
                  "name",
                  "domain",
                  "conversational_name",
                  "description",
                  "phone",
                  "website",
                  "linkedin_url",
                  "twitter_handle",
                  "street",
                  "city",
                  "state",
                  "postal_code",
                  "country",
                  "locale",
                  "industry",
                  "company_type",
                  "founded",
                  "revenue_range",
                  "size",
                  "crm_id",
                  "crm_url",
                  "crm_object_type",
                  "owner_crm_id",
                  "prospector_engagement_score",
                  "prospector_engagement_level",
                  "last_contacted_at",
                  "last_contacted_type",
                  "do_not_contact",
                  "custom_fields",
                  "user_relationships",
                  "tags",
                  "counts",
                  "owner",
                  "creator",
                  "last_contacted_by",
                  "last_contacted_person",
                  "company_stage",
                  "account_tier"
                ]
              },
              "count": {
                "type": "number",
                "id": "http://jsonschema.net/total"
              },
              "index": {
                "type": "number",
                "id": "http://jsonschema.net/index"
              },
              "is_first": {
                "type": "boolean",
                "id": "http://jsonschema.net/is_first"
              },
              "is_last": {
                "type": "boolean",
                "id": "http://jsonschema.net/is_last"
              }
            }
          },
          "error_handling": {},
          "properties": {
            "array": {
              "type": "jsonpath",
              "value": "$.steps.salesloft-1.data"
            }
          }
        },
        "salesloft-1": {
          "title": "Search Account with CRM ID",
          "description": "Fetch account from Salesloft using CRM ID",
          "connector": {
            "name": "salesloft",
            "version": "3.0"
          },
          "operation": "list_accounts",
          "output_schema": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object",
            "properties": {
              "metadata": {
                "type": "object",
                "properties": {
                  "filtering": {
                    "type": "object",
                    "properties": {
                      "archived": {
                        "type": "boolean"
                      }
                    }
                  },
                  "paging": {
                    "type": "object",
                    "properties": {
                      "per_page": {
                        "type": "number"
                      },
                      "current_page": {
                        "type": "number"
                      },
                      "next_page": {
                        "type": "null"
                      },
                      "prev_page": {
                        "type": "null"
                      }
                    }
                  },
                  "sorting": {
                    "type": "object",
                    "properties": {
                      "sort_by": {
                        "type": "string"
                      },
                      "sort_direction": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "updated_at": {
                      "type": "string"
                    },
                    "archived_at": {
                      "type": "null"
                    },
                    "name": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "conversational_name": {
                      "type": "null"
                    },
                    "description": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "website": {
                      "type": "null"
                    },
                    "linkedin_url": {
                      "type": "null"
                    },
                    "twitter_handle": {
                      "type": "null"
                    },
                    "street": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "city": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "state": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "postal_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "locale": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "industry": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "company_type": {
                      "type": "null"
                    },
                    "founded": {
                      "type": "null"
                    },
                    "revenue_range": {
                      "type": "null"
                    },
                    "size": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "crm_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "crm_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "crm_object_type": {
                      "type": "string"
                    },
                    "owner_crm_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "prospector_engagement_score": {
                      "type": "null"
                    },
                    "prospector_engagement_level": {
                      "type": "null"
                    },
                    "last_contacted_at": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "last_contacted_type": {
                      "type": [
                        "null",
                        "string"
                      ]
                    },
                    "do_not_contact": {
                      "type": "boolean"
                    },
                    "custom_fields": {
                      "type": "object",
                      "properties": {
                        "UNUSED_SEATS_PERCENTAGE": {
                          "type": "string"
                        }
                      }
                    },
                    "user_relationships": {
                      "type": "array",
                      "items": {}
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "people": {
                          "type": [
                            "null",
                            "number"
                          ]
                        }
                      }
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "_href": {
                          "type": "string"
                        },
                        "id": {
                          "type": "number"
                        }
                      }
                    },
                    "creator": {
                      "type": "object",
                      "properties": {
                        "_href": {
                          "type": "string"
                        },
                        "id": {
                          "type": "number"
                        }
                      }
                    },
                    "last_contacted_by": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "_href": {
                          "type": "string"
                        },
                        "id": {
                          "type": "number"
                        }
                      }
                    },
                    "last_contacted_person": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "_href": {
                          "type": "string"
                        },
                        "id": {
                          "type": "number"
                        }
                      }
                    },
                    "company_stage": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "_href": {
                          "type": "string"
                        },
                        "id": {
                          "type": "number"
                        }
                      }
                    },
                    "account_tier": {
                      "type": "null"
                    }
                  },
                  "required": [
                    "id",
                    "created_at",
                    "updated_at",
                    "archived_at",
                    "name",
                    "domain",
                    "conversational_name",
                    "description",
                    "phone",
                    "website",
                    "linkedin_url",
                    "twitter_handle",
                    "street",
                    "city",
                    "state",
                    "postal_code",
                    "country",
                    "locale",
                    "industry",
                    "company_type",
                    "founded",
                    "revenue_range",
                    "size",
                    "crm_id",
                    "crm_url",
                    "crm_object_type",
                    "owner_crm_id",
                    "prospector_engagement_score",
                    "prospector_engagement_level",
                    "last_contacted_at",
                    "last_contacted_type",
                    "do_not_contact",
                    "custom_fields",
                    "user_relationships",
                    "tags",
                    "counts",
                    "owner",
                    "creator",
                    "last_contacted_by",
                    "last_contacted_person",
                    "company_stage",
                    "account_tier"
                  ]
                }
              }
            }
          },
          "error_handling": {},
          "authentication": {
            "group": "44adcd50-92e3-4d05-a2b5-052e9c27ca6c",
            "title": "David's salesloft account",
            "service_icon": {
              "icon_type": "url",
              "value": "//s3.amazonaws.com/images.tray.io/artisan/icons/4e949938-8c50-47ce-83ea-75d29a2af9ef.png"
            },
            "scopes": [],
            "service_name": "salesloft",
            "service_version": 1
          },
          "properties": {
            "access_token": {
              "type": "jsonpath",
              "value": "$.auth.access_token"
            },
            "archived": {
              "type": "boolean",
              "value": false
            },
            "sort_by": {
              "type": "string",
              "value": "updated_at"
            },
            "sort_direction": {
              "type": "string",
              "value": "DESC"
            },
            "per_page": {
              "type": "integer",
              "value": 25
            },
            "page": {
              "type": "integer",
              "value": 1
            },
            "crm_id": {
              "type": "array",
              "value": [
                {
                  "type": "jsonpath",
                  "value": "$.steps.loop-1.value.ACCOUNT_ID"
                }
              ]
            }
          }
        },
        "salesloft-2": {
          "title": "Update account",
          "connector": {
            "name": "salesloft",
            "version": "3.0"
          },
          "operation": "update_account",
          "output_schema": {},
          "error_handling": {},
          "authentication": {
            "group": "44adcd50-92e3-4d05-a2b5-052e9c27ca6c",
            "title": "David's salesloft account",
            "service_icon": {
              "icon_type": "url",
              "value": "//s3.amazonaws.com/images.tray.io/artisan/icons/4e949938-8c50-47ce-83ea-75d29a2af9ef.png"
            },
            "scopes": [],
            "service_name": "salesloft",
            "service_version": 1
          },
          "properties": {
            "access_token": {
              "type": "jsonpath",
              "value": "$.auth.access_token"
            },
            "fields": {
              "type": "object",
              "value": {
                "do_not_contact": {
                  "type": "boolean",
                  "value": false
                },
                "archived": {
                  "type": "boolean",
                  "value": false
                },
                "account_id": {
                  "type": "jsonpath",
                  "value": "$.steps.text-helpers-2.result"
                },
                "full_name": {
                  "type": "jsonpath",
                  "value": "$.steps.loop-2.value.name"
                },
                "domain": {
                  "type": "jsonpath",
                  "value": "$.steps.loop-2.value.domain"
                },
                "custom_fields": {
                  "type": "array",
                  "value": [
                    {
                      "type": "object",
                      "value": {
                        "key": {
                          "type": "string",
                          "value": "UNUSED_SEATS_PERCENTAGE"
                        },
                        "value": {
                          "type": "jsonpath",
                          "value": "$.steps.text-helpers-1.result"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "salesloft-3": {
          "title": "Create account w Custom Field",
          "description": "Endpoint that creates an Account in Salesloft including the Custom Field.",
          "connector": {
            "name": "salesloft",
            "version": "3.0"
          },
          "operation": "create_account",
          "output_schema": {},
          "error_handling": {},
          "authentication": {
            "group": "44adcd50-92e3-4d05-a2b5-052e9c27ca6c",
            "title": "David's salesloft account",
            "service_icon": {
              "icon_type": "url",
              "value": "//s3.amazonaws.com/images.tray.io/artisan/icons/4e949938-8c50-47ce-83ea-75d29a2af9ef.png"
            },
            "scopes": [],
            "service_name": "salesloft",
            "service_version": 1
          },
          "properties": {
            "access_token": {
              "type": "jsonpath",
              "value": "$.auth.access_token"
            },
            "fields": {
              "type": "object",
              "value": {
                "do_not_contact": {
                  "type": "boolean",
                  "value": false
                },
                "full_name": {
                  "type": "jsonpath",
                  "value": "$.steps.loop-1.value.ACCOUNT_ID"
                },
                "domain": {
                  "type": "string",
                  "value": "{$.steps.loop-1.value.ACCOUNT_ID}.com"
                },
                "custom_fields": {
                  "type": "array",
                  "value": [
                    {
                      "type": "object",
                      "value": {
                        "key": {
                          "type": "string",
                          "value": "UNUSED_SEATS_PERCENTAGE"
                        },
                        "value": {
                          "type": "jsonpath",
                          "value": "$.steps.text-helpers-3.result"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "snowflake-1": {
          "title": "Snowflake Query",
          "description": "SQL Query to retrieve data from Snowflake.\nThis will return a \"rows\" array.",
          "connector": {
            "name": "snowflake",
            "version": "3.0"
          },
          "operation": "custom_query",
          "output_schema": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "UNIQUE_ID": {
                      "type": "string"
                    },
                    "ACCOUNT_ID": {
                      "type": "string"
                    },
                    "SFDC_ACCOUNTS_ID_SK": {
                      "type": "string"
                    },
                    "PARTNER_INDICATOR": {
                      "type": "null"
                    },
                    "PARTNER_ACCOUNT_C": {
                      "type": "null"
                    },
                    "FULL_DATE": {
                      "type": "string"
                    },
                    "LICENSE": {
                      "type": "string"
                    },
                    "PRODUCT": {
                      "type": "string"
                    },
                    "TYPE": {
                      "type": "string"
                    },
                    "SOFT_LIMIT": {
                      "type": "boolean"
                    },
                    "SEATS_PURCHASED": {
                      "type": "number"
                    },
                    "GLOW_UP_WAVE": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "USERS_PROVISIONED": {
                      "type": "number"
                    },
                    "USERS_CONFIGURED": {
                      "type": "number"
                    },
                    "USERS_ACTIVE": {
                      "type": "number"
                    },
                    "USERS_ENGAGED": {
                      "type": "number"
                    },
                    "USERS_PROVISIONED_LAST_7_DAYS": {
                      "type": "number"
                    },
                    "USERS_PROVISIONED_LAST_30_DAYS": {
                      "type": "number"
                    },
                    "USERS_CONFIGURED_LAST_7_DAYS": {
                      "type": "number"
                    },
                    "USERS_CONFIGURED_LAST_30_DAYS": {
                      "type": "number"
                    },
                    "USERS_ACTIVE_LAST_7_DAYS": {
                      "type": "number"
                    },
                    "USERS_ACTIVE_LAST_30_DAYS": {
                      "type": "number"
                    },
                    "USERS_ENGAGED_LAST_7_DAYS": {
                      "type": "number"
                    },
                    "USERS_ENGAGED_LAST_30_DAYS": {
                      "type": "number"
                    },
                    "UNUSED_SEATS": {
                      "type": "number"
                    },
                    "UNUSED_SEATS_PERCENTAGE": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "UNIQUE_ID",
                    "ACCOUNT_ID",
                    "SFDC_ACCOUNTS_ID_SK",
                    "PARTNER_INDICATOR",
                    "PARTNER_ACCOUNT_C",
                    "FULL_DATE",
                    "LICENSE",
                    "PRODUCT",
                    "TYPE",
                    "SOFT_LIMIT",
                    "SEATS_PURCHASED",
                    "GLOW_UP_WAVE",
                    "USERS_PROVISIONED",
                    "USERS_CONFIGURED",
                    "USERS_ACTIVE",
                    "USERS_ENGAGED",
                    "USERS_PROVISIONED_LAST_7_DAYS",
                    "USERS_PROVISIONED_LAST_30_DAYS",
                    "USERS_CONFIGURED_LAST_7_DAYS",
                    "USERS_CONFIGURED_LAST_30_DAYS",
                    "USERS_ACTIVE_LAST_7_DAYS",
                    "USERS_ACTIVE_LAST_30_DAYS",
                    "USERS_ENGAGED_LAST_7_DAYS",
                    "USERS_ENGAGED_LAST_30_DAYS",
                    "UNUSED_SEATS",
                    "UNUSED_SEATS_PERCENTAGE"
                  ]
                }
              }
            }
          },
          "error_handling": {},
          "authentication": {
            "group": "72161c22-dac2-473d-934e-7dbbf498a8d0",
            "title": "TRAY_USER_4",
            "service_icon": {
              "icon_type": "url",
              "value": "//s3.amazonaws.com/images.tray.io/artisan/icons/5f817aca-0dc5-4dfd-b860-1d307592b44c.png"
            },
            "scopes": [],
            "service_name": "snowflake",
            "service_version": 3
          },
          "properties": {
            "auth": {
              "type": "jsonpath",
              "value": "$.auth"
            },
            "warehouse": {
              "type": "jsonpath",
              "value": "$.auth.warehouse"
            },
            "query": {
              "type": "string",
              "value": "SELECT *,\n    (SEATS_PURCHASED - USERS_PROVISIONED) as UNUSED_SEATS,\n    ((SEATS_PURCHASED - USERS_PROVISIONED) * 100.0 / NULLIF(SEATS_PURCHASED, 0)) as UNUSED_SEATS_PERCENTAGE\nFROM DATAWAREHOUSE.DBT_PROD_PRODUCT_ADOPTION.FACT_ACCOUNT_PRODUCT_ADOPTION_V2\nWHERE ((SEATS_PURCHASED - USERS_PROVISIONED) * 100.0 / NULLIF(SEATS_PURCHASED, 0)) <= 10\nAND (SEATS_PURCHASED - USERS_PROVISIONED) >= 0\nLIMIT 5"
            }
          }
        },
        "text-helpers-1": {
          "title": "Change Unused Seat Type",
          "connector": {
            "name": "text-helpers",
            "version": "3.0"
          },
          "operation": "change_type",
          "output_schema": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object",
            "properties": {
              "result": {
                "type": "string"
              }
            }
          },
          "error_handling": {},
          "properties": {
            "value": {
              "type": "jsonpath",
              "value": "$.steps.loop-1.value.UNUSED_SEATS_PERCENTAGE"
            },
            "type2": {
              "type": "string",
              "value": "string"
            }
          }
        },
        "text-helpers-2": {
          "title": "Change Id type to string",
          "connector": {
            "name": "text-helpers",
            "version": "3.0"
          },
          "operation": "change_type",
          "output_schema": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object",
            "properties": {
              "result": {
                "type": "string"
              }
            }
          },
          "error_handling": {},
          "properties": {
            "value": {
              "type": "jsonpath",
              "value": "$.steps.loop-2.value.id"
            },
            "type2": {
              "type": "string",
              "value": "string"
            }
          }
        },
        "text-helpers-3": {
          "title": "Change Unused Seat Type",
          "connector": {
            "name": "text-helpers",
            "version": "3.0"
          },
          "operation": "change_type",
          "output_schema": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "object",
            "properties": {
              "result": {
                "type": "string"
              }
            }
          },
          "error_handling": {},
          "properties": {
            "value": {
              "type": "jsonpath",
              "value": "$.steps.loop-1.value.UNUSED_SEATS_PERCENTAGE"
            },
            "type2": {
              "type": "string",
              "value": "string"
            }
          }
        },
        "trigger": {
          "title": "Scheduled Trigger",
          "connector": {
            "name": "scheduled",
            "version": "3.5"
          },
          "operation": "weekly",
          "output_schema": {},
          "error_handling": {},
          "properties": {
            "synchronous": {
              "type": "boolean",
              "value": false
            },
            "public_url": {
              "type": "jsonpath",
              "value": "$.env.public_url"
            },
            "hour": {
              "type": "string",
              "value": "8"
            },
            "minute": {
              "type": "string",
              "value": "0"
            },
            "start_date": {
              "type": "string",
              "value": "2025-04-08 12:00"
            },
            "tz": {
              "type": "string",
              "value": "UTC"
            },
            "day_of_week": {
              "type": "string",
              "value": "1"
            }
          }
        }
      },
      "legacy_error_handling": true,
      "dependencies": []
    }
  ],
  "projects": []
}