From deterministic drafts to documents worth reviewing

Today we worked on a project that sounds simple from the outside: generate a draft for a funding call. The interesting part is not the final PDF. It is the process that gets us there.

We started with a deliberately deterministic structure. The document was split into sections: need, objectives, methodology, activities, indicators, team, budget, sustainability, and the final narrative. Each block has a job. That first design gave us an ordered output and made failures visible without breaking the rest of the flow.

The first generation did exactly that. It was not ready to send. It was a map of what the process still did not know how to do well.

A better reference changed the work

Then the client shared a stronger draft. The comparison changed the question. We were no longer trying to make the system write more pages. We were trying to understand what made that document useful: a real organisation, a recognisable project, a territory, a target group, activities, a theory of change, and a clear boundary between evidence, proposals, and missing information.

At that point, the job stopped being “improve the prompt”. We started iterating on the whole pipeline.

We added a persistent organisation record so every proposal could use the selected organisation’s information. Then we found a very ordinary bug: the organisation was being created in MongoDB, but only its identifier was being saved. The workflow got an ID and the model filled the gap with generic copy. Fixing that did not improve a sentence. It changed the factual base available to every section.

Generation and review are different jobs

We also learned that generating a block and reviewing it are different jobs. The workflow now uses HEP as a quality decision model for each section. It does not write the proposal. It checks whether a block fits the opportunity, invents something, or needs another pass.

That is the practical advantage of working section by section. We can correct indicators without touching the methodology, or review the budget without disturbing the narrative around it.

The latest iteration exposed another less glamorous requirement: internal machinery cannot leak into a client-facing document. Workflow states, JSON payloads, evaluator scores, and debugging notes are useful inside the process. In a final PDF, they are just noise. The assembly stage has to remove them before the document is generated.

A useful system admits what it does not know

We are not yet at the point of calling this draft ready to submit. It still needs evidence, a baseline, accountable people, a real budget, and eligibility confirmation. But the process now has something more valuable than a polished output: it can state what it knows, what it does not know, and what it needs before it claims anything.

That is the goal. Not to automate convincing fiction. To build a system that can iterate until it returns a valid document against the parameters each client defines.

← Back to Blog