LocalDeploy for your agent

A clear brief.
A site you can shape.

Connect your editor to the same generation and rendering engine as your workspace.
Your agent works with structured content and six carefully defined themes.

01 / Make the connection

Start with a scoped key.

Sign in and create a key on the API keys page. Professional, Expert, and Unlimited Agency include agent access. Choose read permissions for inspection, then add generation or preview permissions when needed.

Save the secret privately as LOCALDEPLOY_API_KEY. The public guide never needs your key, and your client sends it only in the Authorization header.

02 / Confirm the business

Facts first. Copy follows.

Collect the business’s identity, services, service areas, contact destination, and approved public facts. Include only locations, reviews, hours, and license or insurance badges the merchant has confirmed.

The engine generates 4–25 pages from that inventory. It never fills the page count by inventing services, neighborhoods, branches, or customer claims.

Read the intake JSON Schema
03 / Generate, review, refine

One workflow, two interfaces.

Use the MCP tools below, or call the REST API with your key. Save merchant-confirmed intake as brief.json. This example uses jq to wrap that existing brief; it does not invent customer data.

# brief.json must contain your merchant-confirmed intake.
jq '{brief: .}' brief.json > generation-request.json

curl --fail-with-body --silent --show-error \
  "https://localdeploy.haowenlabs.com/api/v1/sites/generate" \
  -H "Authorization: Bearer $LOCALDEPLOY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: approved-intake-001" \
  --data-binary @generation-request.json

Choose a new 8–100 character request key for each independent operation, and reuse it when retrying the same payload. Generation returns a durable siteId. Poll its status, inspect its saved state, and submit edits against the current revision.

Six small, purposeful tools

Everything your agent needs.

The current plan and key scope are checked on every request.
ToolScopePurpose
list_templatessites:readRead the six themes and the intake JSON Schema.
generate_sitesites:writeQueue a site from a confirmed brief and a stable idempotencyKey.
get_site_statussites:readPoll a durable siteId for status, phase progress, and preview availability.
get_site_schemasites:readRead the saved state, current revision, and full renderer schema.
update_site_statesites:writeSubmit a validated structured patch at expectedRevision with an idempotencyKey.
bulk_generate_leadgen_previewsleadgen:writeQueue up to 100 businesses from CSV; receive batch status and export links.

Keep the state reliable.

Use get_site_schema before an edit. A structured patch merges objects, replaces arrays, and clears nullable fields with null. The complete result must still pass the renderer’s schema and reference checks.

Markup, arbitrary CSS classes, model overrides, provider keys, and changes to the state version or locale are rejected.

Read the complete REST contract

Know what is available.

The REST and MCP implementation supports async generation, saved-state editing, and CSV preview batches. Standard-plan generation uses platform-managed Gemini. Generation requires an eligible active workspace.

Business discovery and Gemini + Serper (or OpenAI + Perplexity) AI visibility checks have separate usage limits. Paid plan checkout for Starter, Professional, and Expert opens plan by plan; its live status is at /api/v1/billing/availability. AI visibility checks record dated API responses and citations; they do not measure every recommendation in consumer AI apps. Managed hosting packs ($12, $49, and $149 per month) attach client domains through sites.haowenlabs.com with automatic SSL; their live status is shown on Billing and at /api/v1/billing/hosting/availability. Agent credits and team collaboration remain planned. Previews currently use the app’s preview routes; wildcard preview domains are not ready.

API base: https://localdeploy.haowenlabs.com. Examples follow the configured public origin.