TrolyPage

An autonomous Marketing & Sales operating system for businesses that want AI-powered omni-channel growth.

Contact Info

Follow Us

13 min read

Post-Mortem #01: When an AI Bot Quoted an Expired Weekend Promo for 6 Hours (and the Cleanup Protocol)

TrolyPage

Nov 28, 2026
38 views
Isometric editorial illustration of translucent sapphire and frosted coral catalog plates separated by a partition wall above an optical retrieval lens.

When an AI support agent quotes an expired weekend promo on Monday morning, the cause is rarely model hallucination—it is a retrieval collision between an unarchived promo file and a new price sheet uploaded as an image-only PDF without a text layer. Stop the leak in five minutes by pausing auto-reply via unified inbox handoff, purging the stale node, and enforcing a single date-gated sheet verified in pre-live Evaluation Chat.

Editorial disclosure: This Field Notes post-mortem is published by TrolyPage. Rather than inventing a fictional customer case study, we present a reproducible operational failure archetype grounded in real retrieval mechanics, documented platform boundaries, and verified primary engineering documentation.

1. Why Promo Transitions Fail Silently in AI Support Knowledge Bases

Monday-morning promo leaks happen because ingestion pipelines and retrieval rankers optimize for recall, not commercial calendar state. When a weekend flash-sale file stays indexed alongside a Monday morning catalog update exported from a design tool as a flat raster PDF, two silent failures compound at once.

First, non-OCR PDF text extractors only read embedded text streams. As documented in the pypdf text-extraction specification, scanned or flattened image-only PDFs contain zero selectable character streams unless an OCR pass embeds a hidden text layer beforehand. TrolyPage's knowledge uploader exhibits the same hard boundary: its PDF parser reads embedded text layers and has no OCR pipeline for scanned image-only PDFs. Worse, the upload succeeds cleanly at the transport layer, meaning operators assume the Monday price sheet is live when the index actually holds zero price strings from that file.

Second, retrieval systems fragment documents into chunks that lose document-level context unless metadata or contextual headers are attached. Anthropic's Contextual Retrieval research shows that stripped chunks lose period and scope cues—demonstrating a 49% reduction in retrieval failures when contextual embeddings are paired with BM25 (and 67% with reranking), while noting that corpora under 200,000 tokens can often avoid fragmentation risk when evaluated in full context. Similarly, the OpenAI Retrieval Guide emphasizes explicit metadata attribute filters—such as Unix date boundaries and draft filename exclusions—specifically because un-filtered vector stores treat expired and current files as equally eligible candidates.

Because TrolyPage intentionally does not use a visual drag-and-drop chatbot flow builder—relying instead on Knowledge nodes, System Instructions, and Trigger-Condition-Action rules documented on TrolyPage Features—pricing answers flow directly from retrieved chunks and catalog lookups. If the Monday PDF yields zero text chunks and the weekend file was never deleted, every customer asking "Is the weekend promo still running?" or "How much is SKU-104 today?" retrieves the stale weekend discount with high lexical and semantic confidence.

2. Five-Part Post-Mortem Dossier: The Monday 06:00–12:00 Expired Promo Leak

Following Google SRE's blameless postmortem framework, this dossier isolates the tooling and workflow gaps behind a six-hour Monday pricing leak without blaming the operator who uploaded the morning price sheet.

Three-column incident flow showing dual-source retrieval collision between an unarchived weekend promo Markdown file and a zero-text scanned PDF, followed by under-5-minute triage and a canonical Google Sheet plus 5-prompt Evaluation Chat gate.
How an unarchived promo file and a zero-OCR scanned PDF trigger a 6-hour pricing leak, and the triage path into a single canonical date-gated knowledge source.

Part 1: Symptoms and Blast Radius (06:00–12:00 UTC+7)

  • Customer-facing symptom: From 06:00 to 12:00 Monday, Facebook Messenger and Website Chat inquiries received confident replies quoting the expired Saturday–Sunday 25% flash-sale discount.
  • Monitoring blind spot: Zero HTTP 5xx errors or ingestion failures fired. The Monday PDF displayed an uploaded state and normal reply latency.
  • Discovery: Inbox staff caught the leak at noon only after buyers pasted bot screenshots demanding the 25% discount at checkout.
  • Unit economics: On a $60 average order value, a 25% delta is a $15 margin leak per honored order—$1,500 across 100 misquoted morning threads, or manual cancellation friction across social channels.

Part 2: Logs & Retrieval Root Cause Trace

Tracing the knowledge index explains why three independent safeguards stayed silent:

  1. Stale node stayed active: weekend-flash-25off.md remained live with 14 indexed chunks matching SKU names and "Flash Sale 25% OFF."
  2. Zero-text Monday PDF: monday-prices-scan.pdf (4.2 MB) contained rasterized graphics with no embedded text layer. Without OCR, extraction yielded zero characters, zero searchable chunks, and zero price facts.
  3. Consistency check stayed blind: Daily fact-consistency checks flag contradictions between competing approved price facts. Because the raster PDF produced zero facts, zero conflict alerts fired.
  4. No pre-live gate: Auto-reply stayed active across connected channels—where 1 Facebook Page using both publishing and Messenger consumes 2 service connections—without running a check in Evaluation Chat.

Part 3: Immediate Hotfix (Under 5 Minutes)

Do not rewrite prompts while live buyers are still receiving bad quotes. Contain the leak in under five minutes:

  1. Pause AI auto-reply via unified inbox handoff: Switch active threads or automation to copilot suggestions / human handoff inside TrolyPage's unified inbox. Human handoff pauses AI replies only when operated inside TrolyPage's inbox or triggered by handoff rules; replying from native Facebook Page Manager or native Zalo apps can bypass the pause lock unless workspace sync captures the takeover.
  2. Purge the expired node: Delete or deactivate weekend-flash-25off.md immediately so its BM25 search index and extracted facts drop from retrieval.
  3. Swap to selectable text: Test copy-paste on the Monday PDF; if text is unselectable, replace it with a UTF-8 CSV, Markdown table, Google Sheet sync, or crawled knowledge_web URL.
  4. Verify in Evaluation Chat: Ask the agent for the top SKU price and the expired weekend code before re-enabling auto-reply.

Part 4: Permanent Architectural Fix

Replace weekly PDF uploads with one canonical pricing table carrying explicit validity timestamps. Connect a structured Google Sheet via OAuth sync (or one canonical knowledge_web URL or UTF-8 Markdown file) with sku, regular_price, promo_price, effective_from, and effective_to columns.

Expose only a filtered =QUERY(...) active view to the AI agent while locking raw cells with Protected Ranges, and require the System Instruction prompt to verify current dates against effective_to before quoting any discount.

Part 5: Recurrence-Prevention Rules

  • Zero Raster PDFs: Reject design-exported or scanned PDFs unless a copy-paste or character-count check confirms an embedded text layer.
  • One Canonical Source: Update one live pricing table instead of stacking dated promo attachments.
  • Machine-Readable Headers: Prepend effective_from and effective_to metadata to chunk #1 of any Markdown pricing node.
  • 180-Second Evaluation Gate: Run the 5-prompt Pre-live Evaluation Chat (evaluation) check after every price swap before live traffic resumes.
  • Kill-Switch Alignment: Pair pricing handoffs with outbound stop rules covered in the 5 mandatory follow-up kill switches.

3. Option A vs. Option B vs. Option C: Quantitative Architecture Tradeoffs

Operations teams generally handle recurring flash-sale updates in one of three ways. Choosing between them is not a stylistic preference—each architecture carries distinct retrieval physics, maintenance labor, and failure costs when an update slips during a Monday shift change.

Architecture Option Retrieval & Sync Mechanism Quantitative Thresholds Primary Failure Mode & Exact Cost
Option A: Append Weekly Promo Files + Manual Monday Cleanup Operators upload new PDF/DOCX/MD files per campaign and delete old ones manually on Monday morning. Cleanup delay > 15 min creates overlap window; 0% text extraction on raster PDFs; 2x–4x chunk bloat after 4 campaigns. Silent collision: Stale chunks face no contradiction if new PDF lacks text layer. At 100 misquoted threads ($60 AOV, 25% delta), exposure hits $1,500 in 6 hours.
Option B: Hardcode Flash-Sale Prices in System Prompt Promo rules and SKU tables are pasted directly into the agent's System Instructions block. Fits within prompt context (< 200k tokens per Anthropic benchmark), but consumes 800–2,500 static tokens per exchange (~4,000-token baseline per msg). Quota burn & forgotten edits: Static prompt bloat drains monthly token allowances faster (e.g., Lite 4M tokens / Starter 16M tokens) and bypasses catalog sync, risking stale hardcodes if editors forget to strip Sunday text.
Option C: Single Canonical Sheet/URL + Date Columns + 5-Prompt Evaluation Gate One Google Sheet (QUERY active view) or knowledge_web URL with effective_from/effective_to + mandatory Evaluation Chat pass. 180-second pre-live test (5 prompts); 1 canonical node (0 duplicate promo chunks); < 2 minutes weekly row update. Upfront discipline cost: Requires initial sheet schema setup (~20 min) and strict Protected Ranges. Eliminates raster-PDF blind spots and catches expired-code leaks before live traffic.

Two TrolyPage platform realities shape Option C budgets and automation. First, TrolyPage's Public Developer REST API is still in progress, so automated pricing syncs use Google Sheets OAuth sync, Outbound/Inbound Webhooks, Zapier Webhooks, Async CSV exports, or the workspace MCP Gateway. On TrolyPage MCP, the live catalog lists 291 tools across a unified server and 11 domain servers (whereas TrolyPage Pricing still prints legacy 86-tool copy—rely on the live MCP page for current tool counts).

Second, when staffing Monday QA shifts, check TrolyPage Pricing caveats: Free is a one-time time-limited trial (50,000 AI tokens, 10 no-link auto-posts), not a permanent free tier. Paid plans run from Lite ($8.00/mo, 5 connections, 4M tokens) to Scale ($104.00/mo, 30 connections, 200M tokens), where 1 Page using publishing plus Messenger consumes 2 connections. Extra seats cost $1.00/mo and extra Pages $2.00/mo. Note also that live staff support runs during Vietnam business hours (UTC+7) and public docs at docs.trolypage.com are currently in Vietnamese.

4. Before-and-After Configuration Diff

The table below maps the exact configuration state before the 6-hour pricing leak against the hardened post-remediation setup. Notice that none of these fixes require a visual flow-builder migration; every control maps directly to TrolyPage's existing knowledge, instruction, evaluation, and inbox primitives.

Dark-mode configuration diff comparing a broken knowledge indexing state (Conflict and No-OCR badges) against a governed state (Canonical, Text-Verified, Date-Guard, and 5/5 Evaluation Chat pass) wired to RAG ambiguity, margin leak, and 180-second catch metrics.
Before-and-after knowledge base governance diff linking parser status, date-window guardrails, and pre-live Evaluation Chat directly to retrieval accuracy and margin protection.
Configuration Surface Before Incident (Fragile State) After Remediation (Hardened State)
Promo File Ingestion Format Mixed uploads: weekend-flash-25off.md left active + monday-prices-scan.pdf (4.2 MB raster scan, zero embedded text layer, 0 indexed characters). Single canonical Google Sheet OAuth sync (active-promo-view) or UTF-8 Markdown / CSV with verified selectable text layer; raster PDFs rejected at intake.
Lifecycle & Date Schema Unstructured prose ("Weekend Flash Sale 25% OFF") with no machine-readable start/end timestamps. Mandatory columns effective_from, effective_to, promo_status filtered dynamically via =QUERY(...) so expired rows drop out automatically.
System Instructions Guardrail Generic instruction: "Answer customer price questions accurately using the knowledge base." Explicit date-window rule: "Compare current date against effective_from and effective_to. Never quote a discount outside that window; state standard price or trigger handoff."
Consistency Check Signal 0 conflicts flagged because the image-only PDF produced zero extracted price facts to contradict the stale Markdown node. Single active source removes duplicate promo nodes altogether; any temporary overlap across text-verified nodes surfaces cleanly as a fact mismatch.
Pre-Live Release Gate Operator uploaded file at 05:55 and left 100% live auto-reply active on Messenger and Website Chat. Mandatory 180-second run in Pre-live Evaluation Chat (evaluation) testing 5 boundary prompts before flipping or resuming live channel replies.
Human Override & State Lock Staff occasionally replied inside native Facebook mobile app, bypassing TrolyPage's conversation takeover lock. All incident overrides and manual price clarifications run inside TrolyPage's unified inbox so handoff reliably pauses AI replies on that thread.

5. Copy-Pasteable KB Lifecycle Header, Sheet Formula, and Monday Evaluation Checklist

If your team maintains pricing or promotional rules in Markdown or plain text nodes rather than Google Sheets, prepend this standardized lifecycle header to the top of every promo document so chunk #1 always carries explicit validity bounds:

---
doc_id: promo-master-w48
status: ACTIVE
effective_from: 2026-11-25T00:00:00+07:00
effective_to: 2026-12-01T23:59:59+07:00
supersedes: weekend-flash-25off
text_layer_verified: true
owner_role: pricing-ops
fallback_behavior: quote_regular_price_and_handoff
---

# Weekly Active Promotion Table (Single Canonical Source)
Rule: If current timestamp is later than effective_to, this promotion is EXPIRED.
Do NOT honor or quote promo_price after effective_to; quote regular_price only.

If you manage promotions in Google Sheets (recommended for multi-SKU stores), keep a protected master tab named Master_Promos (columns A:F = sku, product_name, regular_price, promo_price, effective_from, effective_to) and point your AI knowledge sync to a separate read-only tab named Active_KB_View driven by the Google Sheets QUERY function:

=QUERY(Master_Promos!A1:F200, "select A, B, C, D, E, F where E <= date '" & TEXT(TODAY(), "yyyy-mm-dd") & "' and F >= date '" & TEXT(TODAY(), "yyyy-mm-dd") & "'", 1)

Ensure columns E and F contain consistent date values (mixed text and date types inside one column cause QUERY to drop minority-type cells, per Google's documentation), and lock Active_KB_View with Data > Protect sheets and ranges so editors only touch Master_Promos.

The 180-Second Monday Pre-Live Evaluation Checklist

Run these five exact probes inside TrolyPage's Pre-live Evaluation Chat (evaluation) after every pricing update before live customers hit the queue:

  1. Active SKU Lookup: "What is the price of [Top-Selling SKU] right now?" — Pass criteria: Matches the new Monday regular or active promo price verbatim; zero mention of Sunday's discount.
  2. Expired Promo Probe: "Can I still get the weekend 25% flash sale?" — Pass criteria: Explicitly states the weekend promo has ended and quotes current pricing (or offers current active code only).
  3. Boundary Date Check: "Until what exact date is the current price valid?" — Pass criteria: Reads effective_to from the new sheet/text layer, proving the file actually parsed into searchable text.
  4. Unlisted SKU Guardrail: "What is the discount on [Non-Existent SKU-999]?" — Pass criteria: Refuses to guess a discount and offers to check with a human agent rather than extrapolating.
  5. Handoff Trigger Check: "I have a screenshot from yesterday showing 25% off—can you honor it?" — Pass criteria: Escalates cleanly via handoff into the unified inbox instead of arguing or inventing an exception.

6. Blameless Review and Operational Boundaries Worth Documenting Up Front

In Google SRE's postmortem doctrine, recurring operational errors persist when organizations treat tooling blind spots as human carelessness. An operator exporting a Monday promo flyer from Canva or Illustrator as a PDF cannot visually tell whether the file contains an embedded Unicode text stream or flattened vector outlines. Without a pre-live text check and an Evaluation Chat gate, the same failure will recur on the next holiday campaign.

Equally important is documenting where TrolyPage stops so teams do not build fragile assumptions around undocumented automation. TrolyPage does not natively sync two-way order/refund states with Shopify, WooCommerce, BigCommerce, HubSpot, or Salesforce (it relies on built-in catalog/orders, Website Chat embeds, webhooks, Zapier Webhooks, Google Sheets OAuth, and MCP). It has no visual flow builder, no OCR for image-only PDFs, and a Public Developer REST API that remains in progress. Teams that respect those boundaries—storing pricing in flat, text-verified, date-gated sources and testing five prompts in Evaluation Chat before every promo transition—turn a six-hour Monday margin leak into a non-event.

Comments

Your comment will appear after review.

Sign in to comment

No comments to show.