Case 03 · Commodity trading · AI
Traders ask for trade data in plain language inside Microsoft Teams — and every figure comes from the source, never from the AI.
01
The problem
Commodity traders need international trade intelligence fast, for time-sensitive decisions. Getting it meant opening specialised platforms and setting filters by hand for every question.
Filters for every question
Traders wanted to just ask — in plain language, inside Microsoft Teams. The goal was to shrink the time between a question and the answer.
02
The solution
We designed and implemented a conversational trade intelligence assistant inside Microsoft Teams. A large language model turns a trader's request into a structured query against external trade data APIs — but it never supplies the numbers. Every figure comes from the data provider.
Example conversation
Understood as
Follow-ups, without repeating the search
The AI model is responsible for
The backend is responsible for
03
Implementation
Request flow
The model handles intent, parameter extraction and follow-up context through function calling and structured outputs. The .NET backend validates every parameter before it calls the trade API, maps commodities to HS classification codes and does all calculations deterministically.
Stack
04
What went wrong
Issue
Traders use ambiguous names, jargon, abbreviations, partial places and relative dates. “Aluminium” can mean raw metal, alloys, scrap or finished products — each with different classification codes.
Fix
Structured output schemas, controlled function calling, commodity classification mapping and clarifying questions when a request is ambiguous.
Issue
A wrong interpretation still produces a valid API call — just with commercially useless results.
Fix
Every AI-generated parameter is validated and normalised by the backend before anything runs.
Issue
In trading, an invented figure could drive a real decision.
Fix
A hard line between AI interpretation and deterministic retrieval and calculation. Answers are grounded in source data only.
05
Finalisation
Traders get trade intelligence where they already work and can explore it conversationally, without repeating themselves. The same architecture is a reusable base for AI access to other enterprise data.
Estimated impact
Estimates based on typical manual retrieval times.
Impact
Lessons learned
Next case · 04
Engineering360