Inspiration

As a BBA student in Bangladesh—one of the world's largest export hubs—I saw a recurring billion-dollar problem: Trade Complexity. In 2026, with shifting reciprocal trade deals like the US-Cambodia and US-BD agreements, businesses are being hit with 19% "nightmare" tariffs simply because they can't navigate the "Rules of Origin." I wanted to build a tool that doesn't just show the tax, but provides the "Golden Route" to eliminate it.

What it does

Origin-Guard AI is an Autonomous Trade Advisor. It allows importers to upload a Bill of Materials (BOM) or Invoice, uses Gemini 2.0 to map HS codes, and fetches real-time 2026 trade laws via You.com.

The Killer Feature: The Smart Sourcing Advisor identifies the exact "1% shift" in sourcing needed to cross the 51% regional value threshold, triggering a 0.0% duty-free status instantly.

Verification: It runs a 3-stage pipeline (PBI, DNA, Blockchain) to ensure every claim is audit-ready for customs.

How we built it

We built a "Glassmorphism 2026" dashboard using React 19 and Tailwind CSS 4.

The Brain: A FastAPI backend that orchestrates Google Gemini 2.0 Flash for reasoning and document extraction.

Live Intelligence: We integrated the You.com Search API to bypass the "static knowledge" limitation of LLMs, allowing the AI to read today's actual trade bulletins.

Storage: SQLAlchemy and SQLite manage the live provenance logs and audit trails.

Challenges we ran into

The biggest hurdle was Cross-Sector Logic. A garment needs a "DNA Fiber Scan," but an EV motor needs a "Conflict Mineral Audit." We had to engineer a dynamic "Verification Pipeline" that changes its entire logic based on the HS code Gemini identifies. Mapping the volatile 2026 legal landscape (like the recent US-Cambodia court challenges) required intense prompt engineering to ensure the AI provides "Protective" legal advice rather than just static numbers.

Accomplishments that we're proud of

Universal Scalability: We successfully moved beyond garments to handle Automotive, Electronics, and Food sectors in a single app.

The 1% Tipping Point: Achieving the logic where the AI accurately calculates the deficit between a 19% tariff and 0% duty-free status.

Multimodal UI: Building a system that can take a blurry photo of a shipping manifest and turn it into a structured compliance passport in seconds.

What we learned

I learned that in global trade, Trust is the real currency. AI can't just give an answer; it must provide a Provenance Log. Building the "AI Audit Trail" taught me how to make LLM reasoning transparent and "Customs-Ready." I also deepened my understanding of USMCA and Reciprocal Trade Agreement (RTA) frameworks.

What's next for Origin-Guard AI

The roadmap for Origin-Guard AI includes:

Live IoT Integration: Connecting with physical warehouse sensors for real-time "Melt-Checks" in the Automotive sector.

Predictive Delay Logic: Using AI to predict port delays based on the optimized trade routes we suggest.

Direct Customs API: Integrating with the "Single Window" systems of global customs authorities for instant, automated duty-free filing.

Built With

Share this project:

Updates