Project Project

Knowledge Base & SOP ProductionSystem

Spec-Driven Branded Documents for Terrafina AI, Vivid POS and PIVOT

← Back to Projects
Python (python-docx, Pillow, PyMuPDF)Brand files per companyMicrosoft Word + Google Docs API

Overview

Terrafina AI knowledge base guide, page 1, in the Terrafina brand.
Terrafina AI knowledge base guide, page 1, in the Terrafina brand.
Vivid POS knowledge base article VIVID-KB-AB-001, page 1.
Vivid POS knowledge base article VIVID-KB-AB-001, page 1.

A builder that turns one JSON spec into matching .docx, .txt and .pdf documents in the owning company’s brand, used to produce knowledge base articles, SOPs, audits and plans for several companies.

Problem Solved

Each company needed documents in its own brand and format, and hand-built documents kept splitting table rows, drifting from the facts and taking many versions.

Solution

The builder applies a brand file (colors, fonts, logo, table style) and fixed rules: summary box first, tables for anything side by side, flowcharts with standard symbols, steps written in full, rows that never split across pages, and every page rendered and inspected before delivery. It produced Terrafina AI’s GHL chat widget A2P verification guide and SOP (also as a tab in their master Google Doc, built by script), Vivid POS knowledge base articles and SOPs in the VIVID-KB format, PIVOT and Pool-Doctor website audits, refresh plans, photo guides and checklists, and LEKKER Studios’ copyright plan and sync SOPs.

Tech Stack

  • Python (python-docx, Pillow, PyMuPDF): Builder, flowchart renderer, page render for review
  • Brand files per company: Colors, fonts, logos, document style
  • Microsoft Word + Google Docs API: PDF export and Google Doc tab builds

Key Features

  • One spec, three matching formats
  • Brand-correct output for six companies
  • Tables that never split rows; flowcharts with standard symbols
  • Page-by-page visual check before delivery

Impact

Documents that used to take a dozen versions now come out right the first time, in the right brand.

Book a Free 30-Min Discovery Call

Want something like this for your business? The discovery call is free and takes 30 minutes.