English
This page is available in English
The whole page — instructions, buttons and results.
Switch to English按阿里云官方框架写通义千问提示词:背景、目的、风格、语气、受众、输出,附任务步骤、分隔符与先推理再结论。
通义千问提示词生成器
按阿里云为通义千问写的提示词指南,用「背景 / 目的 / 风格 / 语气 / 受众 / 输出」框架写提示词。
怎样写一条通义千问提示词
先写目的和背景
目的是你要模型完成的具体任务,背景是它需要知道的情况。指南的示例里,同一个需求加上背景、风格、语气和受众后,输出更贴近目标读者。
补上风格、语气、受众和输出
风格可以是某类专家或某种文风,语气如正式、诙谐、温馨,受众说明写给谁看,输出规定形式,比如列表、JSON 或报告。空着的栏不会出现在提示词里。
复杂任务用上技巧
写下任务步骤,会自动编号成 #任务步骤#;要处理的长文本按段落用 ### 隔开;勾选「先输出思考过程」,会在输出要求里加上先写推理、再给结论。
复制,测试,再改
指南说提示词需要反复测试和迭代。先用一次,看结果哪里不对,再改对应的那一栏。
这个框架是怎么来的
阿里云百炼的「文生文Prompt指南」把一条好提示词拆成六部分:背景、目的、风格、语气、受众和输出,每部分写成「#背景#」这样的标签段落。指南用同一个微博推广需求做对比:只写一句话时,输出「过于泛化」;按框架补上风格、语气和受众后,内容更贴近年轻读者。
指南还给了四项技巧:给出输出样例,让模型照着规范和语气写;写明任务步骤;用 ###、=== 这类罕见符号把内容分开;以及让模型先写出推理过程再下结论。这一页把后三项做成了可选栏位,样例另放一栏。
这一页以前是一张通用表单(角色、任务、上下文、代码、工具、格式、约束、示例),和另外八个生成器一模一样,跟阿里云的指南没有关系。
常见问题
出自阿里云百炼的「文生文Prompt指南」,它为通义千问等模型推荐的 Prompt 框架由背景、目的、风格、语气、受众、输出六部分组成,并写成 #背景# 这样的标签。任务步骤、分隔符和引导思考是同一份指南里的另外三项技巧。
指南的示例就是这样写的:每部分前加 #标签#。分隔清楚,模型更容易分辨哪部分是背景、哪部分是要求。指南也说框架可以按任务增减,所以空的部分会被省掉。
可以复制到任何对话模型里用,但本页引用的是阿里云为通义千问写的指南,别家的官方指南没有在这里引用。
不会。提示词完全在你的浏览器里拼好,不调用任何模型,也不发送到任何地方。
方法与来源
计算方式
In the browser, by a tested kernel: the six-part framework of Alibaba Cloud's 文生文Prompt指南 (背景, 目的, 风格, 语气, 受众, 输出), each a #label# block, empty ones left out; optional #任务步骤# numbered, material split by ### delimiters, an output example, and an instruction to reason before concluding, all four from the same guide. No model is called.
本工具依据的标准
- Checked 2026-10-21: Qwen is Alibaba's model family (its consumer app is now branded 千问), and Alibaba Cloud Model Studio documents function calling for Qwen, matching the page's function / tool-calling field. No errors found; the prompting advice is general practice, not attributed to Alibaba.
- 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, and its 2026-10-21 check said its prompting advice was general practice, not Alibaba's. It now writes the framework Alibaba's own text-generation guide recommends for 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.
资料来源
- 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 ###, guiding the model to think). https://help.aliyun.com/zh/model-studio/prompt-engineering-guide — read 2026-11-04.
Pick up where you left off
Stored only in this browser — never sent to our servers.