Awesome idea and something I’m really interested in, but I couldn’t get it to work with either my data or the template builders sample data. Below is the log data from the sample data.
Dec 28, 2023, 5:36:39 PM Info Found 29 transactions to categorize
Dec 28, 2023, 5:36:39 PM Info Looking for historical similar transactions…
Dec 28, 2023, 5:36:39 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “amazon” OR lower(C) contains “amazon”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:39 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “new york times” OR lower(C) contains “new york times”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:39 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “lifewise” OR lower(C) contains “lifewise”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:40 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “lioness life coach” OR lower(C) contains “lioness life coach”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:40 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “appletv” OR lower(C) contains “appletv”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:40 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “flying fish” OR lower(C) contains “flying fish”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:40 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “aaa” OR lower(C) contains “aaa”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:41 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “albertsons” OR lower(C) contains “albertsons”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:41 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “amazon” OR lower(C) contains “amazon”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:41 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “roto rooter” OR lower(C) contains “roto rooter”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:41 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “capitol hill apartments” OR lower(C) contains “capitol hill apartments”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:42 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “shell” OR lower(C) contains “shell”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:42 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “seattle sehawks” OR lower(C) contains “seattle sehawks”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:42 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “new york times” OR lower(C) contains “new york times”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:43 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “the paramount” OR lower(C) contains “the paramount”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:43 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “new yorker” OR lower(C) contains “new yorker”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:43 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “albertsons” OR lower(C) contains “albertsons”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:43 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “centurylink” OR lower(C) contains “centurylink”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:44 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “credit card payment” OR lower(C) contains “credit card payment”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:44 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “amazon” OR lower(C) contains “amazon”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:44 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “ups” OR lower(C) contains “ups”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:44 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “monsoon” OR lower(C) contains “monsoon”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:45 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “feathered friends” OR lower(C) contains “feathered friends”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:45 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “credit card payment” OR lower(C) contains “credit card payment”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:46 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “nordstrom” OR lower(C) contains “nordstrom”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:46 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “safeway” OR lower(C) contains “safeway”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:46 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “7 limbs yoga” OR lower(C) contains “7 limbs yoga”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:46 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “starbucks” OR lower(C) contains “starbucks”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:47 PM Info Looking for previous transactions with query: SELECT C, D, N WHERE D is not null AND (lower(N) contains “the paramount” OR lower(C) contains “the paramount”) ORDER BY B DESC LIMIT 3
Dec 28, 2023, 5:36:47 PM Info Processing this set of transactions and similar transactions with Open AI:
Dec 28, 2023, 5:36:47 PM Info Logging output too large. Truncating output. [{previous_transactions=[{updated_description=Amazon, original_description=Amazon, category=Clothes/Gear}, {original_description=Amazon, category=Clothes/Gear, updated_description=Amazon}, {original_description=Amazon, category=Clothes/Gear, updated_description=Amazon}], transaction_id=bd5bcg136c4127c85egdca8f, original_description=Amazon xxx-xxx-7407}, {original_description=New York Times, previous_transactions=[{updated_description=New York Times, category=Subscriptions, original_description=New York Times xxx-xxx-1396}, {updated_description=New York Times, original_description=New York Times, category=Subscriptions}, {category=Subscriptions, original_description=New York Times, updated_description=New York Times}], transaction_id=ega1dfba03feg54a18ecc1ge}, {previous_transactions=[{category=Insurance, updated_description=Lifewise, original_description=Lifewise}, {category=Insurance, original_description=Lifewise, updated_description=Lifewise}, {original_description=Lifewise xxx-xxx-2198, updated_description=Lifewise, category=Insurance}], original_description=Lifewise, transaction_id=aadacfe8dffgd8c35e1cc6c6}, {previous_transactions=[{updated_description=Lioness Life Coach, original_description=Lioness Life Coach xxx-xxx-4239, category=Guidance}, {updated_description=Lioness Life Coach, original_description=Lioness Life Coach, category=Guidance}, {updated_description=Lioness Life Coach, original_description=Lioness Life Coach, category=Guidance}], transaction_id=a0a51dg18ccf2cc9d6cdb7ed, original_description=Lioness Life Coach xxx-xxx-9990}, {previous_transactions=[{category=Streaming, original_description=AppleTv xxx-xxx-8979, updated_description=AppleTv}, {category=Streaming, updated_description=AppleTv, original_description=AppleTv xxx-xxx-1418}, {category=Streaming, original_description=AppleTv xxx-xxx-6703, updated_description=AppleTv}], transaction_id=gd3gda4gacc8cb1eca26ccfg, original_description=AppleTv}, {transaction_id=a6cbab70b9437ad1ab11f8fe, original_description=Flying Fish, previous_transactions=[{category=Restaurants, original_description=Flying Fish xxx-xxx-4455, updated_description=Flying Fish}, {original_description=Flying Fish xxx-xxx-4482, updated_description=Flying Fish, category=Restaurants}, {category=Restaurants, updated_description=Flying Fish, original_description=Flying Fish xxx-xxx-3974}]}, {transaction_id=d2fdc55cgec8f1adcffb247d, previous_transactions=[{original_description=AAA, category=Fees/Repairs/Maint., updated_description=AAA}, {original_description=AAA xxx-xxx-1408, category=Fees/Repairs/Maint., updated_description=AAA}, {updated_description=AAA, category=Fees/Repairs/Maint., original_description=AAA xxx-xxx-3033}], original_description=AAA xxx-xxx-3232}, {previous_transactions=[{original_description=Albertsons, updated_description=Albertsons, category=Groceries}, {original_description=Albertsons, category=Groceries, updated_description=Albertsons}, {original_description=Albertsons, category=Groceries, updated_description=Albertsons}], original_description=Albertsons xxx-xxx-2112, transaction_id=0c9de311bb4c7baedf7cbf6a}, {transaction_id=dbfbfecacb20gfdfg55b9cbd, original_description=Amazon xxx-xxx-7000, previous_transactions=[{original_description=Amazon, updated_description=Amazon, category=Clothes/Gear}, {category=Clothes/Gear, original_description=Amazon, updated_description=Amazon}, {updated_description=Amazon, category=Clothes/Gear, original_description=Amazon}]}, {previous_transactions=[{original_description=Roto Rooter, category=Household, updated_description=Roto Rooter}, {category=Household, updated_description=Roto Rooter, original_description=Roto Rooter}, {original_description=Roto Rooter xxx-xxx-5797, updated_description=Roto Rooter, category=Household}], transaction_id=0dd7bag642ebe3g3d9dc029d, original_description=Roto Rooter xxx-xxx-4766}, {previous_transactions=[{updated_description=Capitol Hill Apartments, original_description=Capitol Hill Apartments xxx-xxx-7055, category=Rent}, {updated_description=Capitol Hill Apartments, category=Rent, original_description=Capitol Hill Apartments xxx-xxx-6387}, {category=Rent, original_description=Capitol Hill Apartments xxx-xxx-6945, updated_description=Capitol Hill Apartments}], original_description=Capitol Hill Apartments, transaction_id=ffbgb806ebgc5gfd56f3acbd}, {previous_transactions=[{original_description=Shell xxx-xxx-9954, updated_description=Shell, category=Gas}, {category=Gas, original_description=Shell, updated_description=Shell}, {original_description=Shell xxx-xxx-6952, updated_description=Shell, category=Gas}], original_description=Shell, transaction_id=f51ga8dd08ef0d0842fb2c8b}, {previous_transactions=[{category=Fun, updated_description=Seattle Sehawks, original_description=Seattle Sehawks}, {updated_description=Seattle Sehawks, category=Fun, original_description=Seattle Sehawks xxx-xxx-6128}, {category=Fun, updated_description=Seattle Sehawks, original_description=Seattle Sehawks xxx-xxx-4231}], original_description=Seattle Sehawks, transaction_id=3cdg1gf93ba8a5gcf423a151}, {original_description=New York Times xxx-xxx-7399, previous_transactions=[{updated_description=New York Times, category=Subscriptions, original_description=New York Times xxx-xxx-1396}, {original_description=New York Times, category=Subscriptions, updated_description=New York Times}, {updated_description=New York Times, original_description=New York Times, category=Subscriptions}], transaction_id=de33381040e2aaf58627eace}, {original_description=The Paramount, transaction_id=6b2gag25bdaabedb0gfff0bd, previous_transactions=[{updated_description=The Paramount, category=Fun, original_description=The Paramount}, {original_description=The Paramount, category=Fun, updated_description=The Paramount}, {updated_description=The Paramount, category=Fun, original_description=The Paramount}]}, {transaction_id=9f9906cba0bfe3e7gefg6f6d, original_description=New Yorker, previous_transactions=[{category=Subscriptions, updated_description=New Yorker, original_description=New Yorker xxx-xxx-9557}, {updated_description=New Yorker, category=Subscriptions, original_description=New Yorker}, {updated_description=New Yorker, category=Subscriptions, original_description=New Yorker}]}, {transaction_id=01ed0aag3cdcgddc27346f97, original_description=Albertsons xxx-xxx-3899, previous_transactions=[{original_description=Albertsons, updated_description=Albertsons, category=Groceries}, {category=Groceries, updated_description=Albertsons, original_description=Albertsons}, {original_description=Albertsons, updated_description=Albertsons, category=Groceries}]}, {transaction_id=f432bf8fg7ecfc138de39bc5, original_description=CenturyLink, previous_transactions=[{updated_description=CenturyLink, category=Internet, original_description=CenturyLink}, {updated_description=CenturyLink, original_description=CenturyLink xxx-xxx-8153, category=Internet}, {original_description=CenturyLink, updated_description=CenturyLink, category=Internet}]}, {transaction_id=fcca7c2cee97deabg945bbaf, previous_transactions=[{original_description=Credit Card Payment Received xxx-xxx-7443, updated_description=Credit Card Payment Received, category=Transfer}, {updated_description=Credit Card Payment, category=Transfer, original_description=Credit Card Payment xxx-xxx-3138}, {original_description=Credit Card Payment Received, updated_description=Credit Card Payment Received, category=Transfer}], original_description=Credit Card Payment Received}, {original_description=Amazon xxx-xxx-2078, previous_transactions=[{category=Clothes/Gear, original_description=Amazon, updated_description=Amazon}, {updated_description=Amazon, category=Clothes/Gear, original_description=Amazon}, {category=Clothes/Gear, original_description=Amazon, updated_description=Amazon}], transaction_id=9286gb680b10aeedfcfcgdbb}, {previous_transactions=[{original_description=UPS xxx-xxx-4554, category=Misc, updated_description=UPS}, {original_description=UPS xxx-xxx-9271, catego
Dec 28, 2023, 5:36:48 PM Error TypeError: Cannot read properties of undefined (reading ‘0’)
at lookupDescAndCategory(ai_autocat:321:76)
at categorizeUncategorizedTransactions(ai_autocat:50:29)