Agent and build
The planned agent turns a request into a verifiable site version; a chat response alone is not enough.
First materials and files, then checks, and only then a link to the result.
Input
The request, photos, reference, facts about the offer and selected project. The agent does not invent missing prices, specifications or reviews. Reference content is material to analyze, not permission to change platform settings.
Existing reading and editing tools can be reused after checking them against a site created from scratch. Current foundation.
Proposed first format
Start with a bounded set of HTML, CSS, images and necessary client JavaScript. A published landing page does not need a server process per project. Its button leads to an agreed action; a cart and payment backend are not implicitly added to the generator.
This is an implementation proposal. The choice between a structured section model and file editing remains open. It needs a prototype: create a page, change one block and verify the rest is preserved. Predictable edits determine the choice, not the number of technologies.
Worker execution
The worker receives a source version and a limited working directory. The agent prepares files; builds and checks run in a separate environment. The model receives no database keys or shared storage credentials.
If packages and build commands are needed, the platform controls their list and versions. Generated scripts do not run inside the API process or get unrestricted network access. Isolation.
Checks before readiness
The page opens in a browser, primary images load, local links target existing files, and there are no critical runtime errors or mobile overflow. The call to action has an agreed working destination. Preview checks the result but does not prove business facts; the author confirms them.
On failure, keep the request and a clear reason. Limited repair can happen within the same job; an endless “agent fixes agent” loop is not allowed. Time, size and cost limits come from measurements, not invented values.
Success records a ready version status. A public link appears only after publication.
Agentfy's role
The product direction clarified on October 5 is to use Agentfy as the infrastructure for provisioning and running agents, with Bonsite managing and using them through an API. This identifies the intended service boundary, not a verified integration lifecycle. Integration and usage-cost measurement are work in the two-week plan. Bonsite remains responsible for the customer project, publication and access controls.
Agentfy integration contract
Bonsite connects to one Agentfy organization with one server key of that organization (orgk_…), set in admin → Settings → Agentfy as "Organization key" (AGENTFY_ORG_KEY for the development env source). The same key creates the agents and runs the chat, so it needs both permission sets in Agentfy:
| What | Permissions |
|---|---|
| Agent creation | provision:create, provision:read |
| Chat | chat:membership, chat:create, chat:read, chat:run, chat:context |
"Test connection" tries the key on a provisioning route and on a chat route. It is green only when the API, provisioning, chat and the MCP URL all pass. A refusal names the permissions the key is missing.
A key works only in its own organization and environment (test or production); anywhere else Agentfy answers 401 CREDENTIAL_REJECTED. An organization's environment cannot change after it is created, so production needs its own organization. Changing the API URL, organization, environment or mode re-creates every agent and loses the chat history.