The Problem
The client had written the prompts and the behavior they wanted, but the Bubble app had to send the right profile data to OpenAI on every call, keep conversation history, and protect the API key. The report also had to run exactly once, at the moment of payment.
Any placeholder left unfilled would send literal template text to the model and break the output, so the data mapping had to be exact.



