evanaImport Intelligence
All articles
Case Study9 min read

How Evana Taught Claude to Read U.S. Customs Data with Contextflo

How Evana connected Claude to 28 million rows of customs, order and document data in Snowflake with Contextflo, and the data traps the AI had to learn.

MS

Michael Sacks

CTO

November 25, 2026

Engineering case study

The short version

Evana, duty drawback software and an import duty dashboard for brands and manufacturers, connected Claude to its Snowflake warehouse through Contextflo. Claude now answers questions about roughly 28 million rows of customs, order, warehouse and document data with live, read-only SQL, instead of the CSV exports the team used to upload by hand. The switch saves about 20 hours a week.

Background

What Evana does, and why it's a data problem

Duty drawback is a refund of up to 99% of the duties paid on imported goods that are later exported or destroyed. Evana finds the eligible exports, matches each one to the import it came from, and its licensed customs broker files the claim with U.S. Customs and Border Protection (CBP). Evana also files IEEPA tariff refunds and runs an import duty dashboard for each client.

Every one of those jobs is a join across systems that were never designed to meet: Customs' record of what was imported and what duty was paid, the store and warehouse record of what shipped where, the carrier tracking that proves a package left the country, and the invoices and bills of lading behind each shipment.

Where the data comes from
SourceHow it arrivesWhat it's used for
Customs (ACE) reports: entry summaries, cargo release, drawback claims, refundsScheduled reports that CBP emails to Evana, loaded automaticallyDuty paid on each entry line, drawback matching, refund tracking
ShopifyThe Evana Shopify app, synced on a scheduleInternational orders, which are the exports
Warehouse and fulfillment systemsTrackStar connections and a direct Nimble connectionShipments, inventory, inbound receipts and returns
Carrier trackingChecked automatically for each exportProof that each package left the United States
Invoices, bills of lading, entry summary formsRead by AI extraction, then reviewed by Evana's teamValues, quantities and product codes behind each claim

The warehouse

28 million rows, five areas, two databases

Everything lands in Snowflake, grouped into five areas: Customs reports, scanned documents, Shopify, the warehouse systems, and Nimble. Together those areas hold about 28.4 million rows; the document tables alone hold 9.7 million. Since February 2026, 25,932 Customs report files for 52 companies have loaded without anyone touching them, and 19,125 documents have been read. The status of every sync and every document review lives separately, in Evana's own Postgres app database.

Contextflo connects to both databases, with 98 tables registered. ACE, the Automated Commercial Environment, is CBP's system of record for imports, and our ACE data sync page explains how those reports reach the warehouse.

Before Contextflo

The CSV loop

Answering a client question used to mean pulling CSV files out of Snowflake, trimming them to fit, and uploading them into a Claude chat. Claude could do the analysis, but only on what fit in the upload, and every follow-up question started the export over.

Questions like how much drawback-eligible duty a client paid last quarter, or which products had the most recoverable duty, took hours to answer consistently. About 20 hours a week went to preparing data rather than finding refunds.

The hard part

What an AI gets wrong about customs data

Pointing an AI at the warehouse was the easy part. Getting correct answers meant teaching it the traps a new analyst falls into during their first month. These cost us the most.

Traps in customs data

  • •A row isn't a line. The entry summary report repeats each line once for every tariff number applied to it, and Section 301, Section 232 and IEEPA tariffs each arrive as extra tariff numbers stacked on the product's own. In one client's data, 245,689 rows described 154,834 actual entry lines, so counting rows overstated the volume by more than half.
  • •Numbers stored as text. Many Customs columns, including dates, quantities and dollar values, arrive as text. Summing or comparing them without converting first gives wrong answers or errors.
  • •Big reports arrive in pieces. A large client's report comes as several files, so the latest data has to be assembled from the newest copy of every piece. Read only the newest file and most of the history disappears.
  • •Refunds rewrite history. When CBP reliquidates an entry to refund IEEPA tariffs, the IEEPA lines drop out of the latest version of the report. How much IEEPA duty a client paid and how much is still unrefunded come from different versions of the same data.
  • •Placeholder dates. One entry dated January 1 of year 1 pushed a client's filing-speed figure to 22 days. The real per-entry median was 11.
  • •Time zones. Load timestamps are stored in UTC while the team works in Pacific time, so yesterday's loads are off by seven or eight hours unless the query converts.
  • •Data inside raw payloads. One warehouse system puts inventory quantities only inside each record's raw JSON, per facility, rather than in a column.
  • •Case-sensitive names. The app database uses mixed-case table and column names, which Postgres folds to lowercase unless they're quoted.

With Contextflo

Where the context lives

Contextflo sits between Claude and our databases and holds everything Claude needs to know about our data before it writes a line of SQL. It's built from a few building blocks:

Organization instructions that every question starts from. Ours say, for example, that analytics run on Snowflake while sync status lives in the app database, and which Shopify stores and warehouse connections belong to each client, so a question about one client's orders reads the right stores.

Table and column descriptions, which is where the traps go. The description of our cargo release table ends: "Most columns are stored as text, including dates, quantities and values; convert with TRY_TO_DATE / TRY_TO_NUMBER before comparing or summing."

Saved queries, metrics and business definitions: the SQL and the meaning we've agreed on, written once. Claude checks these first and reuses them instead of re-deriving the logic each time. This is where our hardest traps belong: counting distinct entry lines, assembling the latest copy of every report file, and reading IEEPA amounts from the right version of an entry.

Descriptions tell Claude how to read the data. Saved queries and definitions make sure two people asking the same question get the same number.

Need an expert?

Schedule a free consultation with our import duty refund specialists.

Book a Call

How a question becomes an answer

  • •Someone asks Claude a question, in the Claude app or from a coding session.
  • •Claude asks Contextflo for the organization's instructions and any saved queries or definitions that match the question.
  • •Claude reads the descriptions and columns of the tables it plans to use.
  • •Claude writes one read-only query, and Contextflo runs it against Snowflake or Postgres, recording why the AI ran it so Evana's admins can review.
  • •Claude answers with the numbers and the query it ran, so anyone can check the work.

In practice

What the team uses it for

The operations team asks client questions in plain English and gets answers in seconds from live data.

Engineering uses the same connection from coding sessions. When a document sync seems stuck, Claude compares live row counts a minute or two apart. When a client's scheduled Customs report stops arriving, Claude checks the load history.

Questions Evana's team asks Claude

  • •How much drawback-eligible duty did this client pay last quarter?
  • •Which products have the most recoverable duty?
  • •Which entries carried IEEPA duty, and where does each refund stand?
  • •Which international orders still need proof of export?
  • •Have any of this client's scheduled Customs reports stopped arriving?
  • •How many documents did the review team process this week?

Guardrails

Read-only by design

Contextflo connects to Snowflake as its own service user with a read-only role, signs in with a key pair rather than a password, and can't see every schema. Its query tool accepts only read statements such as SELECT, SHOW and DESCRIBE.

Changes to the data happen in Evana's own pipelines and reviewed code, not through the AI's connection. The AI can find a problem; it can't quietly rewrite a customs record.

“If you're not seeing 'Using Contextflo' in Claude, you are going to get left behind.”
Michael Sacks · CTO, Evana

Results

What changed

About 20 hours a week that used to go into exporting, trimming and uploading data now goes into the work clients pay for: matching exports to imports, building claims, and catching refunds before their deadlines.

Answers come from live data instead of last week's export, and two people asking the same question get the same number because the same instructions and table notes apply to everyone. Engineering diagnoses pipeline problems without leaving a coding session to open a SQL console. All of it feeds the same data behind Evana's duty drawback software.

If you're doing this with your own data

  • •Write down the traps, not just the column names. The most useful table descriptions say what will go wrong.
  • •Keep client-to-source mappings in one place, so a question about one client reads the same stores and warehouses every time.
  • •Decide what you're counting. In line-level data, a question about rows, lines and entries can have three different answers.
  • •Watch for partial loads. One stopped file can hide behind others that are still arriving.
  • •Keep the AI read-only, and let changes go through code.
  • •Save the queries you trust. That's what makes answers repeatable.

About Contextflo

Contextflo gives a team's AI tools, such as Claude and ChatGPT, access to the company's business data and the context to understand it, so everyone gets the same answers. Read Contextflo's side of the Evana story.

Questions about this story

What is Contextflo?

Contextflo connects AI tools like Claude and ChatGPT to a company's data warehouse and databases, and adds table descriptions, organization instructions, saved queries and metrics so the AI answers with the company's own definitions.

What does Evana do?

Evana is duty drawback software with the filing done for you, plus an import duty dashboard. Evana syncs import records from ACE, matches exports to the imports they came from, and its licensed customs broker files unused merchandise and manufacturing drawback claims. Evana also files IEEPA tariff refunds.

Can Claude change Evana's data through Contextflo?

No. The connection is read-only: Contextflo signs in with a read-only role and its query tool runs only read statements. Changes to Evana's data go through Evana's code.

How much time did Contextflo save Evana?

About 20 hours a week that used to go into exporting, trimming and uploading data before each analysis.

Ready to reclaim more?

Get started with Evana.

Talk through your import duty refund opportunity with one of our customs specialists.

Back to all articles