On this page
Preparing documents for AI knowledge ingestion requires four non-negotiable sanitization steps before clicking upload: verifying an embedded PDF text layer via a copy-paste check, flattening merged spreadsheet cells into one SKU variant per row, stamping unambiguous YYYY-MM-DD effective and expiry dates while pruning legacy promos, and passing a 12-prompt pre-live evaluation chat audit so customer-facing AI never fabricates discounts or drops scanned brochure details.
Editorial disclosure: Published by TrolyPage, one of the omnichannel AI inbox and knowledge-base platforms documented in this operational guide. Technical workflow details, plan quotas, and platform limitations below are grounded strictly in TrolyPage documentation and primary external specifications, without fabricated benchmark numbers.
Why Raw Business Files Fail Inside AI Knowledge Bases
Customer operations teams rarely suffer from a lack of documentation; they suffer from documents built for human eyes rather than deterministic chunk retrieval. A glossy seasonal catalog exported as a flattened raster PDF looks sharp on screen, yet contains zero selectable characters. Because TrolyPage has no OCR pipeline for image-only scanned PDFs—its PDF parser reads embedded text layers—uploading an un-OCR'd scan yields empty retrieval chunks while consuming setup time and leaving live agents scrambling to answer basic product questions.
Spreadsheets and policy memos fail for a different structural reason. When a pricing workbook uses merged headers, color-coded footnotes, or multiple sizes packed into one cell (M / L: $49 / $89), vector chunking splits row boundaries from column headers. As IETF RFC 4180 defines for standard tabular exchange, reliable parsing requires uniform comma-delimited fields with one record per row. Similarly, Google Cloud Document AI documentation highlights that extracting key-value pairs and tables from raw business documents depends either on explicit OCR digitization or consistent layout structure, and W3C WCAG 2.0 Technique PDF6 specifies tagged table markup inside PDFs so parsers preserve row-and-column associations.
Before selecting a prep workflow, support leads should weigh three preparation architectures against their real operational constraints—especially monthly AI token quotas (where TrolyPage plans estimate roughly 4,000 tokens per exchange across Lite at $8/mo for 4M tokens, Starter at $16/mo for 16M tokens, Pro at $32/mo for 40M tokens, and Scale at $104/mo for 200M tokens, plus a one-time time-limited $0 Free trial) and live handoff load.
| Decision Dimension | Option A: Raw Upload ("As-Is" PDFs & Merged Sheets) | Option B: Manual Hybrid Prep (Text-Layer PDF + Flat Google Sheets OAuth) | Option C: External OCR + Automated Sync (Document AI + Webhooks / MCP) |
|---|---|---|---|
| Best Operational Fit | Not recommended for live customer traffic; sandbox experiments only. | SMBs and multi-shift teams managing 20–500 SKUs and weekly promo updates. | High-turnover catalogs (>500 SKUs) or teams receiving image-only supplier PDFs daily. |
| Prep Time & Thresholds | 0–5 min upfront; triggers recurring manual inbox corrections on every shift. | 15–25 min initial cleanup; <5 min per price update via Google Sheets OAuth sync. | 2–4 hrs initial webhook or MCP pipeline setup; <2 min automated ingestion per batch. |
| Underlying Technical Mechanism | RAG chunks ingest broken layout noise, blank raster pages, and conflicting promo dates; bloated context inflates tokens per ~4k-token exchange. | Embedded PDF text plus flat one-SKU-per-row records bound to a stable Google Sheets spreadsheetId yield compact, deterministic retrieval chunks. | External OCR converts scans into clean text/JSON before pushing normalized rows through Zapier Webhooks or the TrolyPage MCP gateway (291 tools across 11 domain servers; note /pricing still lists legacy 86 tools). |
| Platform & Sync Constraints | No OCR on image scans; knowledge_web fails silently on blocked or auth-gated URLs. |
Requires manual local OCR if suppliers send scanned PDFs; no native two-way Shopify/WooCommerce/ERP refund sync. | Requires external OCR billing and webhook maintenance; TrolyPage has no native two-way HubSpot/Salesforce CRM app or public REST API yet. |
| Failure Cost When Chosen Wrong | AI quotes expired discounts, mismatches variant prices, triggers urgent handoff spikes, and burns monthly token allowances on vague follow-up loops. |
Low failure cost if 15-point QA runs before sync; skipping QA on a single merged row shifts prices across adjacent SKUs. | Over-engineering small catalogs (<100 SKUs) wastes setup hours when a clean Google Sheet solves sync natively. |
Printable 1-Page Document Prep SOP (Sanitization Gate)
Print or pin this one-page workflow at the knowledge owner's desk. Every catalog revision, seasonal policy update, or help-center URL addition must clear all five steps before touching a live TrolyPage AI Assistant connected to Messenger, Instagram DM, WhatsApp Cloud API, Zalo OA, or your Website Chat widget.

SOP Header: Trigger, Ownership & Scope
- Trigger: Any new product launch, price revision, shipping rate change, seasonal promotion, return-policy edit, or new help-center URL queued for
knowledge_web. - Primary Owner: Knowledge Operations Lead (or designated Senior Shift Supervisor).
- Secondary Verifier: On-duty Shift Lead running the 12-prompt
evaluationsandbox check. - Completion Target: 15 minutes for standard weekly updates; mandatory completion at least 30 minutes before shift handover (coordinate with your opening and closing shift handoff SOP).
5-Step Sanitization & Ingestion Gate
- [ ] Step 1 — Run the PDF Text-Layer & Lock Test (2 min): Open every PDF locally, press
Ctrl+A(orCmd+A), copy, and paste into a plain-text editor. Confirm headings, currency digits, and SKU codes paste cleanly in reading order with zero password restrictions. If zero text copies—or characters scramble—run external OCR or re-export from the source DOCX/sheet before uploading, because TrolyPage does not run OCR on image-only scanned PDFs. - [ ] Step 2 — Flatten Price Sheets to One-SKU-Per-Row (4 min): Open pricing tabs in Excel or Google Sheets. Unmerge every cell, delete decorative subtotals and color-only legends, repeat the parent category and product name on every variant row, separate currency codes (
USDorVND) from numeric amounts, and keep one price per cell. When syncing via TrolyPage Google Sheets OAuth, verify the connection targets the stablespreadsheetIdrather than relying on file renames. - [ ] Step 3 — Stamp ISO Dates & Prune Superseded Policies (3 min): Following IETF RFC 3339 four-digit year conventions, add explicit metadata lines at the top of every policy and promo sheet:
Effective: YYYY-MM-DD,Expires: YYYY-MM-DD(orExpires: None), andSupersedes: [Filename]. Archive or delete expired promo files from the knowledge folder—never leave "Summer 2026" and "Holiday 2026" discount rules active side by side. - [ ] Step 4 — Audit
knowledge_webURLs & Strip Sensitive PII (3 min): Check every webpage queued forknowledge_webcrawling to confirm it returns HTTP 200 without login walls, JavaScript-only pricing modals, orrobots.txtexclusions (Google Search Central robots.txt guide). Remove internal supplier margins, staff personal emails, and private API keys before upload, and verify TrolyPage Data Safety PII masking rules are active (noting Data Safety filters active rules rather than purging historical chat logs). - [ ] Step 5 — Execute the 12-Prompt
evaluationSandbox Probe (3 min): Before pushing live, test the AI Assistant in TrolyPage's pre-liveevaluationchat using 12 standardized probes: 4 exact SKU/variant price queries, 3 boundary/expired promo traps, 3 return/shipping cutoff edge cases, and 2 deliberatehandoffescalation triggers. Only switch live replies on after 12/12 responses match approved ground truth.
Escalation Exceptions & Shift Sign-Off
- Exception A — Scanned Vendor Catalog Without Source File: Quarantine the PDF, tag the ticket
#kb-blocked-ocr, and paste a temporarySaved Replyholding price confirmation for human review until OCR output is verified. - Exception B — Channel Window or Live Support Boundary: Automated AI replies run 24/7, but Meta/WhatsApp 24-hour messaging windows still restrict outbound replies after window expiry, and live TrolyPage vendor support operates during Vietnam business hours (
UTC+7). - Sign-Off Block: Knowledge Owner:
[Name]| Sandbox Reviewer:[Name]| Sync Timestamp (UTC):[YYYY-MM-DD HH:MM]|evaluationScore:[12/12].
12 Copy-Paste Micro-Templates for Guardrails, Saved Replies & Internal Notes
Keep these micro-templates inside TrolyPage Saved Replies, Internal Team Notes, and AI Assistant system instructions. Every template uses explicit bracketed variables so agents and AI guardrails never improvise unverified pricing or policy promises.
Group A: AI Assistant System Guardrails (Paste into AI Instructions)
- Active-Date & Promo Priority Rule:
Always check the Effective: YYYY-MM-DD and Expires: YYYY-MM-DD header before quoting any promotion. Never apply or mention discounts past their Expires date, and never stack promotions unless explicitly marked Stackable: Yes in the [Price_Sheet_Name] tab. - Missing Price or Unreadable Variant Guardrail:
If a customer asks about [SKU] or variant [Variant_Option] and the exact price row is missing, outdated, or marked TBD, do not estimate. Reply that a specialist will confirm current pricing and trigger handoff immediately. - No-OCR Image / Attachment Escalation Rule:
When a customer sends a screenshot, scanned invoice, or unreadable attachment requiring line-item pricing verification, acknowledge receipt without guessing totals, summarize what is visible, and trigger handoff to an on-duty agent. - Policy Cutoff Precision Guardrail:
Quote return, warranty, and same-day dispatch cutoffs strictly using the stated timezone ([Timezone]) and window in [Policy_Doc_Name]. Do not promise exception refunds outside written terms; escalate exceptions via handoff.
Group B: Saved Replies for Agents & Copilot Verification (Paste into Saved Replies)
- Variant Price Verification Holding Reply (During Sheet Resync):
Hi [Customer Name], thanks for checking on [Product Name] ([SKU] - [Variant]). Our team is confirming the current [Currency] rate and stock allocation for today ([YYYY-MM-DD]) and will share your exact quote within [SLA Minutes] minutes. - Expired Promo Clarification Reply:
Hi [Customer Name], the [Promo Name] offer ended on [Expiry Date YYYY-MM-DD] and is no longer active. Today's verified rate for [SKU] is [Current Price] [Currency], or I can check if your order qualifies for [Active Promo Name] valid through [Active Expiry YYYY-MM-DD]. - B2B / Bulk Quote Escalation Holding Reply:
Hi [Customer Name], orders above [Quantity Threshold] units of [SKU] use our tiered wholesale schedule rather than standard retail pricing. I've routed your request with reference [Ticket/Order ID] to [Owner Role] to send a formal [Currency] breakdown. - Out-of-Window Follow-Up Disclaimer (24h Channel Compliance):
Hi [Customer Name], following up on your [SKU] inquiry from [Inquiry Date YYYY-MM-DD]—our updated price sheet effective [Effective Date YYYY-MM-DD] is now live. Reply here if you'd like us to lock a [Quote Validity Days]-day quote for [Quantity] units.
Group C: Internal Team Notes & Handoff Records (Paste into Internal Team Notes)
- Knowledge Sync Pre-Flight Note:
[KB SYNC] Source: [Filename / knowledge_web URL / Spreadsheet ID] | Effective: [YYYY-MM-DD] | Expires: [YYYY-MM-DD] | Text-layer verified: [Yes/No] | Merged cells: [0] | Evaluation 12/12: [Pass] | Owner: [Name]. - AI Hallucination Quarantine Note:
[KB INCIDENT] Thread: [Conversation URL] | Channel: [Messenger/IG/WA/WebChat] | Bad claim: "[Quoted AI Text]" | Suspected source doc: [Filename] | Action: AI paused via handoff; doc flagged for [Owner] cleanup. - Google Sheets OAuth Drift Note:
[SHEET SYNC ALERT] Spreadsheet ID: [Spreadsheet ID] | Tab: [Tab Name] | Issue: [Renamed column / blank price cell on SKU] | Temporary fallback: Agents use Saved Reply #5 until [Owner] confirms clean resync. - Supplier Scanned PDF Block Note:
[OCR BLOCKED] Received image-only PDF: [Filename] from [Vendor/Team]. TrolyPage has no OCR pipeline for scanned PDFs; routed to [Owner] for local OCR + flat CSV conversion before AI ingestion.
5-Minute Troubleshooting Matrix for Broken AI Retrieval
When live inbox alerts or Agent Copilot suggestions reveal wrong prices, blank answers, or stale terms, follow this five-minute triage table before editing prompts. Most retrieval failures trace back to source formatting rather than model instructions.

| Observed Symptom | Likely Root Cause | 5-Minute Fix (Step-by-Step) |
|---|---|---|
| AI says "I don't have information on that product" despite uploading a PDF catalog | The PDF is an image-only scan or flattened vector export with no embedded text layer; TrolyPage lacks an OCR pipeline for scanned PDFs. | Open the PDF and press Ctrl+A. If nothing highlights, run desktop/cloud OCR or re-export from the original design/doc file as a searchable text PDF, delete the image-only file, re-upload, and test 2 SKU prompts in evaluation. |
| AI quotes last month's discount code or outdated shipping fee | The expired promo file remains indexed alongside the new sheet, or dates use ambiguous 04/05/26 notation. |
Delete/unpublish all superseded promo documents, insert Effective: YYYY-MM-DD and Expires: YYYY-MM-DD at line 1 of the active policy doc, force knowledge re-sync, and re-test the expired-promo prompt in evaluation. |
| AI assigns Size M's price to Size L or drops currency decimals | Merged category cells, multi-value cells ($49 / $89), or hidden summary rows shifted table columns during chunking. |
Unmerge all cells in Google Sheets/CSV, duplicate the parent SKU name on every row, split variants into dedicated rows, confirm one numeric price per cell, and re-sync the clean sheet. |
knowledge_web crawl finishes with zero or partial product pages |
Target URLs sit behind login auth, return 403/404, block crawlers via robots.txt, or render pricing strictly via client-side JavaScript. |
Verify public HTTP 200 HTML access and inspect robots.txt rules. For gated portals or heavy JS calculators, export clean static Markdown or text-layer PDF and upload directly instead of crawling. |
| Google Sheets updates stop appearing in AI answers | OAuth token expired, worksheet tab was renamed/deleted, or header column names changed after initial mapping. | Check Google Sheets OAuth status in workspace integrations, confirm the active spreadsheetId and exact tab/column headers match your schema, re-authenticate if needed, and verify 1 newly edited SKU in evaluation. |
| AI exposes internal margin notes or staff emails in replies | Wholesale cost columns or internal contact footers were left inside the uploaded sheet, or Data Safety PII rules are incomplete. | Remove internal cost/margin columns and staff emails from source files, re-upload sanitized copies, enable Data Safety PII masking rules for sensitive patterns, and trigger handoff to inspect any affected live threads. |
15-Point Pre-Upload & Pre-Shift Knowledge QA Checklist
Never rely on spot-checking one question after a catalog update. Run this 15-point Pass/Fail gate across your PDFs, spreadsheets, URLs, and evaluation sandbox before enabling live AI replies across Messenger, Instagram DM, WhatsApp, Zalo, Website Chat, or desktop extensions (TrolyFB, TrolyIG, TrolyThreads, TrolyReddit). Remember that on TrolyPage, one Facebook Page using both publishing and messaging counts as 2 service connections, and extra human seats cost $1/seat/mo while extra Pages cost $2/Page/mo—clean knowledge reduces avoidable human escalations and protects both seat bandwidth and monthly token quotas.
| # | Verification Domain | Pass Criteria (Must Be True Before Live Sync) | Status |
|---|---|---|---|
| 01 | PDF Text Layer | Ctrl+A / copy-paste extracts clean, complete text from every page (zero raster-only scans). |
[ ] PASS |
| 02 | Numeric Integrity | Prices, SKU codes, and decimal separators paste accurately without OCR character swaps (e.g., O vs 0). |
[ ] PASS |
| 03 | PDF Table Tagging | Multi-column PDF pricing tables are flattened or WCAG PDF6-tagged so rows never scramble across columns. | [ ] PASS |
| 04 | File Permissions | PDF password locks, copy restrictions, and print-only DRM flags are disabled prior to upload. | [ ] PASS |
| 05 | Canonical Naming | Uploaded filenames follow [DocType]_[Region]_[YYYY-MM-DD] with zero v2_final_FINAL duplicates. |
[ ] PASS |
| 06 | Unmerged Sheet Grid | Price spreadsheets contain zero merged cells and strictly follow 1 row = 1 SKU variant (RFC 4180 structure). | [ ] PASS |
| 07 | Explicit Units | Currency codes (USD, VND) and unit measures (per box, per seat/mo) sit in explicit columns. |
[ ] PASS |
| 08 | ISO Policy Dates | Every promo and policy header declares Effective: YYYY-MM-DD and Expires: YYYY-MM-DD (RFC 3339). |
[ ] PASS |
| 09 | Promo Pruning | Expired discounts, discontinued SKUs, and legacy return policies are deleted from the active AI index. | [ ] PASS |
| 10 | Boundary Exclusions | Non-returnable items, cutoff hours, timezone (e.g., UTC+7), and tax exclusions are written explicitly. |
[ ] PASS |
| 11 | knowledge_web Access |
Every crawled URL returns public HTTP 200 without login walls, JS-only tables, or robots.txt blocks. |
[ ] PASS |
| 12 | Google Sheets OAuth | Live sheet sync points to the active spreadsheetId, authorized account, and locked header row. |
[ ] PASS |
| 13 | PII & Margin Scrub | Wholesale margins, staff personal emails, and customer PII are removed; Data Safety masking rules are active. | [ ] PASS |
| 14 | evaluation 12/12 Gate |
Pre-live evaluation chat passes all 12 test prompts (SKU prices, expired promos, cutoffs, handoff triggers). |
[ ] PASS |
| 15 | Live Shift Readiness | Updated Saved Replies are published, shifts schedule & round-robin routing plus waiting-conversation SLA alerts are armed, and CRM/ERP fallback webhooks are tested (accounting for no native two-way HubSpot, Salesforce, Shopify, or visual drag-and-drop flow builder). |
[ ] PASS |
Operational Limits to Document on Your Team Wiki
Even a spotless knowledge base cannot override platform boundaries. Document four explicit caveats alongside your 1-page SOP so shift supervisors never promise capabilities outside system reality: first, TrolyPage's Free plan is a one-time time-limited trial rather than a permanent free tier, and paid plans govern AI volume by monthly token allowances rather than unlimited messages. Second, TrolyPage uses AI instructions plus trigger-condition-action rules rather than a visual drag-and-drop chatbot flow builder, and lacks native two-way HubSpot, Salesforce, Shopify, WooCommerce, or accounting ERP sync (teams bridge external CRMs and order ledgers via webhooks, Zapier Webhooks, Google Sheets OAuth, or MCP). Third, automated AI assistants answer 24/7, whereas TrolyPage live vendor staff support runs during Vietnam business hours (UTC+7). Fourth, Meta Messenger, Instagram DM, and WhatsApp still enforce 24-hour customer-messaging windows—meaning clean documents paired with disciplined handoff rules remain your fastest safeguard against misquoted orders.
Comments
Your comment will appear after review.
Sign in to commentNo comments to show.