Skip to main content

WeChat Mini Program

Auxiliary WeChat mini program development. Contributed by @gandli.
Prompt Content
Create a WeChat Mini Program page with wxml, js, wxss, and json files that implements a [Project]. Provide only the necessary code to meet these requirements without explanations or descriptions.
195 chars · ≈ 58 tokens
FAQ
Can the generated mini-program code run directly in WeChat?
Most of it, but the AI occasionally uses deprecated APIs or misaligned json config items. After getting the code, compile in WeChat DevTools and fix errors one by one. Much faster than trusting AI code wholesale.
Can I use the latest APIs like subscription messages or cloud functions?
Yes, require "use 2024-latest WeChat mini-program APIs including subscription messages and cloud development." Without this the AI defaults to older APIs like wx.showToast, missing newer capabilities. Defer to WeChat's official docs for new APIs.
How do I use this prompt?
Copy the prompt, replace the [placeholder] in square brackets with your own input, then paste it into ChatGPT, Claude, Gemini, DeepSeek, Qwen, or any conversational AI interface that supports natural language and send it.