September 2, 2025
AI Data Transformation for Square Payment activity to NetSuite Bank Rec Import

September 2, 2025

Lots of creative and technical folks are showcasing really amazing examples for how AI can be used to create really amazing outputs. And that’s great! But I find that the average business leader is still having a hard time figuring out practical applications of AI tools to build legitimate points of efficiency beyond some written copy. To that end, I’ve been creating a series of small posts to highlight some small, practical ways that we’ve leveraged AI for ourselves and our clients to earn some incremental wins in the AI space. To be a success the tool doesn’t have to be revolutionary. But if we’re able to incorporate AI and automation as a habit in an organization, those savings of a couple hours here and a couple hours there, over time, add up to organization wide productivity gains.
This example comes from an internal use case we built for ourselves.
We have a lot of excess office space as a result of our hiring shifting from Portland-only to anywhere in the US through Covid. Partly to help bring some energy to the office, and partly to get more involved in the community, we started a co-working space in half our office, targeted at startups and solopreneurs who needed a comfortable place to work for a low amount of money (we call it Upstart Collective). Recurring payments for our Upstart members are managed through Stripe, as are a number of other one-off charges that happen in that business. We use NetSuite as our ERP, and so we needed to find a way to get all that data into NetSuite so we could do our normal accounting and reporting functions.
Stripe provides a handy export of data in a CSV file format, but there’s quite a bit of massaging that’s required to tease out the actual transactions to be created from that file. Example: One of the files has a column to delineate Credits and Debits, and the Amount is always listed as a positive number; dollar amounts are listed with the dollar sign, but NetSuite only accepts the CSV import with decimal numbers (no currency characters), etc. Ultimately this means that every column of the file needs some data transformation to happen to support NetSuite’s Bank Reconciliation CSV data import template.
Historically we’ve taken one of two different approaches in these situations:
We wanted to see if we could automate this by using a ChatGPT Project. Sneak peek: It was a great success!

As always with an AI Initiative, we started by gathering all of the relevant data:
The first big task was to understand and map the Stripe Export File data to our NetSuite template needs. In this process we started by evaluating each column in the NetSuite template, and determining how we would get that information from the Stripe export file. A part of this understanding was to document how we would have to change the data from the Stripe export file to meet the standards of the NetSuite import template. Each of these evaluations became the rules that we would apply in our ChatGPT project.
Our next step was to build out the ChatGPT project. In keeping with the “easy, practical application” spirit of things, we’re using the first tier of paid ChatGPT account, and the Project you can create through the user interface on the web. It increases the amount of memory allocated to evaluation, and helps keep continuity and consistency better than happens within the regular chat. It also lets us pair a normal prompt with (1) stored instructions, and (2) uploaded files. All together, it presents a handy way to create saved, repeatable automation tools for a user.
For the uploaded Files, the only one we provided was the NetSuite CSV import template for Bank Reconciliation data. This is our keystone for our OUTPUT, so it was a really important set of data to be able to consistently reference.
In the Instructions section, we stored all of our mapping rules to transform the data from the Stipe export file into the NetSuite import template.
Here are the shared instructions we created:
We’re going to upload a CSV file, and I’d like to have the data from that file made into a CSV file using the Bank Rec Import Template csv file as the template. Please make sure the resulting CSV file includes all of the columns that are present in the Bank Rec Import Template csv file, even if no data is mapped to those columns.
Column Mapping:
Column F (Arrival Date (UTC)) from the uploaded file should be mapped to Column A (Date (MM/DD/YYYY)) in the Bank Rec Import Template csv file. We should use the date format MM/DD/YYYY for this column.
Column T (Destination Name) from the uploaded file should be mapped to Column B (Payer/Payee Name) in the Bank Rec Import Template csv file.
Column A (id) from the uploaded file should be mapped to Column C (Transaction Id) in the Bank Rec Import Template csv file.
Column L (Description) and Column R (Trace ID) from the uploaded file should be concatenated with a “-” character as the delimiter, and the resulting value should be mapped to Column F (Memo) in the Bank Rec Import Template csv file.
* Example of how to populate Column F (Memo) in the Bank Rec Import Template csv file: If Column L (Description) from the uploaded file has the value “Grasshopper” and column R (Trace ID) from the uploaded file has the value “910000154534345” we would make a concatenated value of “Grasshopper-910000154534345” and use that value to populate Column F (Memo) in the Bank Rec Import Template csv file.
In the file that is created using the Bank Rec Import Template csv file, Column D (Transaction Type) should be populated using these rule:
Column B (Amount) from the uploaded file should map to Column E (Amount) in the Bank Rec Import Template csv file.
The output file should be a CSV file. Please note: There are three columns in the Bank Rec Import Template CSV file that will never have data, but still need to be included in columns G, H, and I.
Column G: Header should be “NS Internal Customer Id”
Column H: Header should be “NS Customer Name”
Column I: Header should be “Invoice Number(s)”
Here are a few things to note that we found were important to generate consistent results:
The final step was to come up with a consistent prompt for when we run this project. We landed on something simple and consistent that reinforced the instructions:
Using the instructions and template file below, could you please create a CSV file using the data from this payouts 3.15.csv file?
The end result is that this solution allows us to download the file from Stipe, upload the file to our Project, and ask it to process the file using this prompt. The Project evaluates the file through the lens of the instructions, and outputs a downloadable CSV file that conforms to the format instructions. A process that would have taken a couple hours per month, or maybe 12 hours of a developer’s time, was completed in about 4 hours and runs as consistently as if it were done via code. Each month it takes the user about 3 minutes to complete the entire process.
Beyond just the efficiency side of things, there are a couple of really valuable aspects to this solution: