Build an AI‑Powered WeChat Mini Program Using Free CloudBase Resources
This step‑by‑step guide shows WeChat Mini Program developers how to register, join the AI Mini Program Growth Plan, claim free CloudBase cloud and AI token resources, connect CloudBase via CodeBuddy, configure project templates, develop AI‑driven features, and debug the app with the WeChat Developer Tools.
Prerequisites
Register a WeChat Mini Program on the official platform (https://mp.weixin.qq.com/) and complete certification if you have not done so.
Step 1 – Join the AI Mini Program Growth Plan
In the Mini Program backend, open the left‑hand navigation, locate Industry Capability , and click the AI Mini Program Growth Plan entry. Click “Participate”. The button is enabled only for Mini Programs whose category is entertainment, tools, social, deep synthesis, or news and that are classified as a virtual‑tool service.
Step 2 – Claim Free Resources
After joining, the console shows the allocated resources: a 6‑month CloudBase environment, 1 billion Tencent Hunyuan 2.0 token credits, and 10 000 image‑generation quotas.
Step 3 – Connect CloudBase via CodeBuddy
Download CodeBuddy (https://www.codebuddy.ai/). In the IDE choose Configure Integration → CloudBase , log in with your WeChat account, and authorize the CloudBase environment.
Step 4 – Import the AI Mini Program Template
Create a new folder in CodeBuddy (File → New Folder).
Import the AI Mini Program template provided by the growth plan. This creates the required project structure and configuration files.
Step 5 – AI‑Assisted Development
Create a requirements.md file at the project root and describe the app in natural language (e.g., a dream‑recording and inspiration‑capture Mini Program with AI chat and summarisation).
Use the built‑in prompt examples to let the AI generate design specifications, code, and database schemas.
Save the generated files (Ctrl+S). The AI will also create Cloud Functions and CloudBase data tables.
Step 6 – Debug with WeChat Developer Tools
Download the WeChat Developer Tools (https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html), add a new project using the Mini Program AppID, and select the CloudBase environment you configured. Run and debug the UI, test AI API calls, and verify database interactions.
Step 7 – Verify AI Model Usage
In the CloudBase console, check the usage statistics for Hunyuan token consumption and image‑generation quotas to ensure the AI features stay within the free limits.
Key Technical Points
The growth plan provides 6 months of CloudBase, 1 billion Hunyuan 2.0 tokens, and 10 000 image‑generation credits.
CodeBuddy integrates with CloudBase, allowing AI to generate front‑end pages, back‑end Cloud Functions, and database schemas automatically.
All generated code is saved locally; Cloud Functions and data tables are provisioned in CloudBase without manual setup.
WeChat Developer Tools are required for local testing, preview, and submission of the Mini Program.
Resource usage can be monitored in the CloudBase console to avoid exceeding the free quota.
Reference Documentation
CloudBase AI quick‑start: https://docs.cloudbase.net/ai/quickstart
WeChat AI Mini Program Growth Plan details: https://mp.weixin.qq.com/s/P9afhDihY3bAz7NbwrNwmA
Tencent Tech
Tencent's official tech account. Delivering quality technical content to serve developers.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
