PentagonBrief Platform
A paid AI tool that turns a founder's questionnaire into a positioning and go-to-market brief: WordPress sells and stores it, a Python service writes it.
Minutes of AI work behind a checkout
One brief is a chain of LLM prompts plus screenshots of the customer's competitors. That takes minutes, not a request, it costs money per run, and the result is private customer data. It had to be paid for first, resumable if the tab closes, and archived where it can't expire.
- Python / Flask API and the Celery workflows (AI and screenshot queues)
- pentagon-app-access plugin: pre-purchase sessions, state machine, optimistic locking
- WordPress / WooCommerce theme and its REST bridge to the service
- Svelte questionnaire, prestart and chatbot apps (Vite)
- Manual release runbook: staging first, systemd workers
Three small apps (prestart, questionnaire, chatbot) mounted inside WordPress pages.
Users, payments and the durable record of every paid report.
Prompt workflows and response checks live next to the AI code, not in PHP.
Long jobs leave the request; Redis holds only running state.
Redis state expires, so a finished report is archived into WordPress as a private file tied to the order.
Archiving waits for the next status poll; a run nobody polls stays in Redis until it does.
AI workflows and Chromium screenshots run on separate Celery queues, so a slow page render never blocks paid AI work.
Two more systemd services to deploy and watch.
The pre-purchase questionnaire is a session with explicit states and optimistic locking, so two tabs can't overwrite each other's answers.
More code than saving answers in user meta.
The theme sends an internal token and a request ID; the API rate-limits paid work and rejects replays.
A shared secret to rotate on both servers.