Qwen Prompt Builder
Write a prompt in the framework of the official prompt guide on Alibaba Cloud Model Studio, the platform that serves Qwen: background, purpose, style, tone, audience and output.
How to write a Qwen prompt here
Start with the purpose and the background
The purpose is the task you want done; the background is what the model needs to know. In the guide's own example, the same request with background, style, tone and audience added produced output aimed at its readers.
Add style, tone, audience and output
Style can be a kind of expert or a genre; tone is formal, playful, warm and so on; audience says who it is for; output fixes the form, such as a list, JSON or a report. Empty fields stay out of the prompt.
Use the techniques on hard tasks
Steps you list become a numbered #Steps# block; long material is split into paragraphs between ### lines; "reason first" adds an instruction to write the reasoning before the conclusion.
Copy, test, revise
The guide treats prompting as testing and iterating. Run it once, see what is off, and change the field that controls it.
Where the framework comes from
Alibaba Cloud Model Studio's text-generation prompt guide splits a good prompt into six parts: background, purpose, style, tone, audience and output, each written as a labelled block such as #背景#. The guide compares the same promotional request both ways: one sentence gave output it calls too generic, while the framework, with style, tone and audience added, produced copy aimed at its young readers.
The guide adds four techniques: give an example of the output you want; set out the steps; separate units with rare markers such as ### or ===; and have the model reason before it concludes. The last three are optional fields here, and the example has its own field.
This page used to be a generic form (role, task, context, code, tools, format, constraints, examples), the same as eight other builders, with nothing from Alibaba's guide in it.
Alibaba Cloud: text-generation prompt guide · Alibaba Cloud: deep thinking (in Chinese)
Frequently Asked Questions
From the text-generation prompt guide on Alibaba Cloud Model Studio, the platform that serves Qwen and also other models such as Kimi and DeepSeek. The guide speaks of LLMs throughout and does not name Qwen. Its recommended framework has six parts (background, purpose, style, tone, audience, output), each written as a label such as #背景#. Steps, delimiters and asking for reasoning are three more techniques from the same guide.
That is how the guide's own examples are written: each part opens with a #label#. The guide says the framework takes in the aspects that affect how effective and relevant an LLM's output is, and that you can add or drop parts to suit the task, so empty parts are left out.
Model Studio's deep-thinking page (read 18 Nov 2026) sorts models into two kinds: hybrid models, where thinking can be switched on or off per request, and thinking-only models, which always think before replying and cannot be switched off. The thinking comes back in a reasoning_content field, separate from the reply. Every Qwen model from 3.5 on whose mode that page states thinks by default; qwen-plus and qwen-flash do not. Technique 4 asks, inside the prompt, for the reasoning to be written into the reply itself, so on a model that thinks by default it asks for a written-out chain of reasoning in the reply on top of the separate thinking. The prompt guide itself does not mention thinking models.
You can paste it into any chat model. The only guide cited here is the Model Studio one; other vendors' guides are not cited on this page.
No. The prompt is put together in your browser. No model is called and nothing is sent anywhere.
Method & sources
How it computes
In the browser, by code covered by automated tests: the six-part framework of Alibaba Cloud Model Studio's 文生文Prompt指南 (背景, 目的, 风格, 语气, 受众, 输出), each a #label# block, empty ones left out; optional #任务步骤# numbered, material split by ### delimiters (=== or >>> when the material already contains ###), an output example, and an instruction to reason before concluding, all four from the same guide. No model is called.
What this tool implements
- Rebuilt 2026-11-04 in all three languages. The page was a generic role / goal / context / code / tools / format form, the same as eight other builders, with nothing from Alibaba's guide in it. It now writes the framework of the text-generation prompt guide on Alibaba Cloud Model Studio, the platform that serves Qwen, labelled the way the guide labels it (#背景#), with the guide's four techniques as options.
- The code-task and function-calling fields were removed with the copy and titles that advertised them: function calling is an API feature, not a part of a prompt, and the guide cited here does not treat it. The Function calling source was removed with them.
- Merged 2026-11-04: /chinese-llm-prompt-builder/ now redirects here. It was a generic role / goal / context / audience / tone / format / constraints / examples form, and each of those fits one of this page's framework blocks; it held no list or data to port.
- Corrected 2026-11-18: the guide speaks of LLMs throughout and names neither Qwen nor 通义千问, and Model Studio also serves other model families such as Kimi and DeepSeek, so the page no longer says the guide was written for Qwen, and the FAQ gives the guide's own reason for the framework. The 2026-10-21 check, which described the removed function-calling field, was taken off this list.
- Technique 4 ("reason first") now says what it does on a model that already thinks: Model Studio's 深度思考 page lists every Qwen model from 3.5 on whose mode it states as thinking by default (qwen-plus and qwen-flash off), some unable to switch it off, with the thinking returned in reasoning_content apart from the reply. The prompt guide does not mention thinking models. A ### inside the material now moves the delimiter to === or >>>, the guide's other examples, and ticking technique 4 no longer hides the hint that no output form was given.
Sources
- Qwen: Alibaba's assistant site, 「千问是阿里官方AI助手,提供最强Qwen大模型体验的第一入口」. https://www.qianwen.com/
- Tongyi Lab (通义实验室), Alibaba: model family overview. https://tongyi.aliyun.com/
- Alibaba Cloud Model Studio. 文生文Prompt指南: the Prompt 框架 (背景, 目的, 风格, 语气, 受众, 输出) and its four techniques (output examples, task steps, delimiters such as ###, === and >>>, guiding the model to think). https://help.aliyun.com/zh/model-studio/prompt-engineering-guide — read 2026-11-04 and 2026-11-18.
- Alibaba Cloud Model Studio. 深度思考: hybrid models (「可按请求开启或关闭思考」) and thinking-only models (「始终在回复前进行思考,无法关闭」), the reasoning_content field, and the default mode of each listed model. https://help.aliyun.com/zh/model-studio/deep-thinking — read 2026-11-18.