Building Deterministic Reports with AI | Amazon X AI Working Sessions

29 Jun 2026 · 44 min
44:14

In this live Amazon X AI Working Session, co‑founder and CEO of Reason Automation, Andrew Hamada, hosts Jacob Mattson, Developer Advocate at Motherduck, to explore why AI‑driven data queries are often non‑deterministic and how to make them trustworthy for business decision‑making. The conversation begins with a concrete business problem – repeatedly getting different net‑profit numbers from an LLM – and moves through a live demo of a custom chat interface (DataChat Mini) that injects business‑specific context derived from sample SQL queries. By parsing good queries into reusable context fragments (e.g., join logic, metric definitions), the system can converge on a consistent answer. The speakers then introduce a three‑part architecture for deterministic reporting: a context layer (semantic store of business knowledge), an agent that runs against the data using LLMs (via OpenRouter, Gemini, Claude), and an evaluation layer that performs invariant testing to detect drift. They discuss practical concerns such as token costs, model selection, security (Motherduck’s hyper‑tenancy and role‑based access), and how to operationalize context in production (harnesses, Airtable dictionaries, hierarchical storage). The session also surveys the emerging landscape (Hex, Golden Analytics, Probably.dev) and highlights the need for repeatable visual artifacts (“Dives”) that turn conversational insights into refreshable BI reports. Throughout, the presenters stress the importance of deterministic answers for reliable business reporting and share lessons from their own implementations at Reason and Motherduck.

Chapters

More from Andrew

0:41
youtube.com

Nathan Grimm

3mo ago
44:39
youtube.com

Using AI to navigate public Amazon data | Amazon X AI Working Sessions

3mo ago
55:14
youtube.com

Beyond Chatbots: AI for Cross-Channel Media Optimization | Amazon X AI Working Sessions

3mo ago
54:46
youtube.com

Enterprise AI architecture on Snowflake | Amazon X AI Working Sessions

3mo ago
youtube.com

Using AI for big, strategic Amazon projects | Amazon X AI Working Sessions

3mo ago
youtube.com

How we scaled 2M+ Amazon content updates without losing control | Amazon X AI Working Sessions

3mo ago
youtube.com

Connecting to Amazon’s APIs with MCP servers and Skills | Amazon X AI Working Sessions

3mo ago
youtube.com

Working directly with LLMs, code, and your Amazon data | Amazon X AI Working Sessions

3mo ago
youtube.com

Training AI Into a Useful Team Member | Amazon X AI Working Sessions

3mo ago
youtube.com

Amazon Vendor Negotiation Q&A - Week 9 with Trav Chappell

8mo ago
youtube.com

Amazon Vendor Negotiation Q&A - Week 10 with Bernard Bolisig

8mo ago
See all content