LLM

3 posts

Designing an AI Agent for Filling Contracts

Built on official Chinese model contracts: AI pulls facts out of IDs, screenshots and chat with a source for each, code fills the fixed clauses, writes amounts in words and checks every rule, and people fill the gaps and settle conflicts before the contract is generated. With an interactive demo.

  • AI
  • Agent
  • LLM
  • Contracts
November 13, 2026 · 4 min · 1609 words · Sam Peng
Facts from an ID card, a title deed and a chat screenshot flow into a contract clause and then through checks

Designing a Template Reply Agent with Classification and Routing

Classify each incoming message, route it by priority to exactly one standard template, let the model only fill the blanks, check the draft in code, and have staff review and send. Shown with export sales inquiries, with an interactive demo.

  • AI
  • Agent
  • LLM
  • Templates
November 13, 2026 · 7 min · 1450 words · Sam Peng
A message is classified, routed to a single template, filled and checked, producing a draft for staff to send

An Email-Driven Business Processing Model: A Near-Real-Time Architecture

A general architecture for business processes driven by a shared mailbox — near-real-time processing with Lambda + SQS, decision separated from execution, the mailbox as the source of truth, idempotency and graceful degradation, plus LLM-based intent classification.

  • Architecture
  • Email Processing
  • AWS
  • Lambda
November 13, 2026 · 11 min · 2125 words · Sam Peng
Email-driven business processing model — ingest, SQS and worker