Deploy
From an idea to a live website
1. Managed hosting
Describe the pages, business logic and data structure. The agent creates a multi-file project, runs db.sql, bundles the Worker, deploys it and returns a preview. The default address is <space-id>.uuni.cc.
Managed hosting is free during the launch period and does not require a Cloudflare account or API token. To use your own domain, deploy to your own Cloudflare account or contact support on WeChat/WhatsApp at +86 155 2940 6364.
2. Deploy with Cloudflare OAuth
R2 subscription required
Cloudflare R2 requires a separate subscription even when usage stays within the free tier. Add a payment method, then enable R2 under Storage & databases → R2 → Overview before deploying.
CF Deploy
OAuth creates or reuses D1 and R2, executes db.sql, uploads the Worker and returns a workers.dev address.
3. Custom domain
A workers.dev address is suitable for testing, but it may be unavailable from mainland China. For production, buy a domain and bind it to the Worker in the same Cloudflare account.
- Register or transfer a domain to Cloudflare.
- Open the Worker → Settings → Domains & Routes.
- Add a custom domain and wait for DNS and the TLS certificate.
Mini programs
UniApp, device preview and publishing
Mini programs use a UniApp frontend and a Worker JSON API. Provide the WeChat AppID, AppSecret and upload key to the agent. The platform can bind them, build the project, generate a device preview QR code and upload a version.
- Frontend code lives in
src/; backend APIs live inserver/routes/. - Use the full HTTPS API base URL at runtime, not a relative
/apipath. - Add the API hostname under WeChat Development Settings → Server Domains.
- The backend uses native D1 bindings and does not create tables at runtime.
AI model development
Bailian keys, endpoints and AIGC prompts
AI features require the user's own Alibaba Cloud Bailian API key. Keys must stay on the server as DASHSCOPE_API_KEY or c.env.DASHSCOPE_API_KEY. Never place a key in HTML, client JavaScript, URLs or logs.
DASHSCOPE_API_KEY=sk-...
DASHSCOPE_BASE=https://dashscope.aliyuncs.com
COMPATIBLE_BASE=https://dashscope.aliyuncs.com/compatible-mode/v1
Use Qwen for writing, analysis, tool calling and structured output.
Embed knowledge, store vectors in D1 and rank with cosine similarity.
Generate voiceover MP3 and synchronized SRT subtitles.
Generate storyboard images, then compose a timed GSAP recording.
Cross-border commerce
Storefronts, PayPal, sourcing and fulfilment
A storefront needs real product data, inventory, shipping rules, refund terms, privacy policy and contact details. Do not launch with placeholder prices or unsupported delivery promises.
- Configure products, variants, currency and stock.
- Connect the seller's own PayPal account and test with Sandbox first.
- Choose suppliers and confirm stock, shipping regions and delivery times.
- Use a custom domain and test the complete checkout and refund flow.
Membership monetization
Three tiers, expiry and PayPal
Use one orders table. The order title identifies the membership tier; quota is a universal balance for usage-based charging; expires_at controls entitlement.
- Calculate the active tier from the highest valid paid order in the last year.
- Add remaining quotas from all valid orders to one balance pool.
- Every usage event writes a separate ledger row.
- Payment callbacks must be verified, idempotent and checked against the order amount.
Advertising revenue
AdSense, affiliate links and content sites
Advertising works best after a site has original content and stable organic traffic. Keep ads clearly separated from navigation and avoid layouts that encourage accidental clicks.
- Publish useful original pages before applying to ad networks.
- Use affiliate links only for products relevant to the article.
- Disclose affiliate relationships and sponsored content.
- Measure page speed, Core Web Vitals and mobile usability.
Traffic
SEO, AI search, Google indexing and third-party platforms
Build a clear URL structure, unique titles and descriptions, internal links, structured data and a sitemap. Localized pages should use stable URLs, canonical tags and hreflang.
- Submit the sitemap to Google Search Console and Bing Webmaster Tools.
- Make key answers readable without JavaScript when possible.
- Use Organization, Product, FAQPage and Article structured data when relevant.
- Reuse content across short video, social and community channels.
IoT and scan-to-pay
MQTT devices, merchant payments, generated checkout pages and device dispatch
A future platform version can store device configuration and bind it to a merchant payment product. A QR code should carry only the order ID; the payment webhook verifies and settles the order before the server publishes an MQTT command.
pending → paid → dispatched → acknowledged → active → finished
paid → dispatch_failed → refunding → refunded
Use chat and MQTT commands without generating a checkout flow.
Generate products, orders, QR codes, payment callbacks and device status.
Generate WeChat or Alipay authorization, checkout and device control.
- The agent reads the saved device commands and payment mode to generate the customer flow.
- Merchant payment credentials must be bound in the platform secret store, never in the browser or model context.
- Payment callbacks must be signature-verified, amount-checked and idempotent.
- Device offline or failed acknowledgements should trigger timeout, refund or balance release rules.
Payment integration
WeChat Pay, Alipay, PayPal, MoR and digital currencies
Keep one unified order table. Use channel for the provider and store the provider transaction ID, amount, currency, status and raw response separately.
- Implement create, capture, webhook verification and refund adapters.
- Verify signatures, amount and currency before marking an order paid.
- Use an idempotency key such as
channel + order number. - Start PayPal and card providers in sandbox mode with test buyers.
- Store all secrets in server-side environment variables.