SourceToDocs: a document generation platform we built and run
Our own product. Rows from Airtable or Google Sheets become finished Google Slides and Docs files on templates a designer built, delivered to Google Drive with a PDF beside every file.
- 2data sources: Airtable and Google Sheets
- 2template types: Google Slides and Google Docs
- 7column types, classified on discovery
- 11filter operators on subsets
SourceToDocs is our own product. We designed it, built it and run it, and we use it inside client work. The client numbers here come from the conference program work, where the platform did the document step.
The problem
Almost every workflow we build for a client ends in a document: a monthly report, a proposal, a conference program, a quarterly deck. The automation would run to the last step, and then a person would open a template, paste in the numbers, fix the layout and export a PDF.
We closed that gap the way most agencies do: a script per client. Each had its own field mapping, its own quirks, and one owner who could change it. When a client’s template changed, the script changed with it.
The fix was to keep design and data apart. A designer owns the template. The team owns the data. The generator puts one inside the other, the same way every time.
What we built
A platform with a user interface, so the person who owns the data can set up a document without an engineer. Templates stay in Google Slides and Google Docs. Data stays in Airtable or Google Sheets.
- Connect a source. A workspace connects an Airtable base or a Google Sheets spreadsheet. Access is checked at setup.
- Build datasets. One table plus the columns the document needs. Columns are classified into seven types (text, number, date, select, bool, file and relation), each with a stable alias, so renaming a column in Airtable does not break the template.
- Filter with subsets. Each subset has its own filters and sort order. Eleven filter operators cover the usual cases. Linked records can be filtered through one level.
- Mark up the template. In Google Slides the outline marks slides as static, repeating over rows, or repeating per parent row, nested up to five levels. In Google Docs the template uses Twig-style tags: variables, conditions and nested loops.
- Split. One file per distinct value in a column, with a child run per file.
- Run and deliver. Each run ends Succeeded, Failed or Partial. Every file lands in a Google Drive folder with a PDF beside it, and a webhook fires on the outcome, which is how an n8n workflow picks up the finished document.
How it went
The first version was a program generator for conference teams: Airtable in, a Google Slides program out, as a PDF. That tool proved the model on real events. SourceToDocs is the general version of it.
The application is Laravel with a Filament admin layer, on PostgreSQL. Generation runs on queue workers, so a 400-session program does not hold a web request open. Slides and Docs have separate renderers that read the same datasets. A placeholder that cannot resolve is recorded as a warning and the file still ships; only a broken template structure fails a run. Workspaces, projects, users and monthly document limits are enforced in the app. It runs on a free plan and self-serve paid plans.
The result
The platform’s first serious workload was four large international conferences, each with 400 or more sessions across parallel stages. n8n handled the trigger and the routing, and SourceToDocs filled the template and delivered the file. Part of that conference work also ran directly in n8n.
- 1 week to 2 hours to produce a 78-page program, checks included
- 11 document versions from a single form
- 4 large international conferences
Before, a template change meant a code change. Now the designer edits the template, the team edits the data, and the next run picks both up.
Stack
Laravel, Filament, PostgreSQL, queue workers, Google Slides, Docs and Drive APIs.
More client cases
A custom portal for coaches, customers, sales reps, plants and admins, with communication and order processing automated around it. Built for a ring maker that was running a $5M business on spreadsheets.
Signature Champions →A multi-storefront Magento platform that issues warranty contracts from the order itself, syncs every order to HubSpot every 15 minutes, and automates card holds, refunds and contract retries.
OnPoint Warranty → Brainie Education, exam preparation 0 staff steps between signing up and studyingStudy plans, practice questions, payments and tutor support in one product. A student signs up, pays, studies and reviews answers without anyone at Brainie touching it.
Brainie →Find out what a week of your team’s time is worth.
One week inside your operations, $2,000 for a team of 1 to 20. You keep the map and the costed plan whether you build with us, with someone else, or not at all.