Blog · AI 使用技巧 · Published
How to Write Prompts: 5 Basic Methods for Making AI Follow Instructions
A prompt is the set of operating instructions you give an AI. Spell out four elements — goal, source material, requirements and tone — and its answers become more consistent and closer to what you expect. This article covers a four-step writing method, techniques for fixed output formats, the order of checks for choosing a model, and a local payment route for readers in Hong Kong and Taiwan who want to subscribe to ChatGPT with Alipay or WeChat.
Information updated 2026-11-24
What a prompt is, and why AI sometimes does not follow instructions
A prompt is the set of operating instructions you send to an AI, and it directly determines the direction, format and tone of the answer. OpenAI's official documentation defines prompt engineering as "the process of writing effective instructions for a model, such that it consistently generates content that meets your requirements" (Prompt engineering is the process of writing effective instructions for a model, such that it consistently generates content that meets your requirements).
So when an AI does not follow instructions, it is usually not a failure of the model but missing information in your instructions. The same documentation notes that model output is non-deterministic — the same sentence can produce a different answer each time — which is why prompt writing is described as a mix of science and art: there is no universal magic phrase, but there are methods that reliably raise the hit rate.
The short answer: to get an AI to follow instructions, spell out three things — what you want it to do, what standard it should meet, and what format it should deliver in. The five questions below each come with wording you can use directly.
The four steps for writing a prompt that works
The short answer: writing goal, source material, requirements and tone as four separate parts is the lowest-cost, fastest-acting approach. Follow these four steps:
- State the goal: say in one sentence what needs to be done. For example, "turn the meeting notes below into 5 action items".
- Paste the source material: put the text, data or background to be processed directly in the prompt; do not make the model guess which document you mean.
- List the requirements: state the format, length, audience and anything to avoid. For example, "output as a table, no more than 20 characters per row, action items only".
- Set the tone: specify a role or voice. For example, "use a formal business tone, written for a senior manager".
The difference is clear when you compare two versions: "take a look at this data" versus "summarize this sales table by month into a table, identify the three months with the largest year-over-year increase, in Chinese". The second is far more usable. The first leaves all the judgment to the model; the second draws the boundaries.
This method applies to ChatGPT, Gemini and other chat tools. If, for example, you want Gemini to generate a character figure (a doll-like figure), specifying the subject, material, style and background is more reliable than writing only "draw a figure" — the same principle as the separate image prompt guidance in the official documentation: give enough information and the output is stable. For more detailed ChatGPT-specific guidance, see the existing How to write ChatGPT prompts on this site.
How to keep one rule in force across a multi-turn conversation
The short answer: put the rule in the system instruction or developer message position, not in a single turn's question.
The official documentation explains the priority of message roles: the instructions parameter gives the model high-level instructions covering tone, goals and examples of correct answers, and these take priority over user messages. It further recommends that a rule meant to be reused across turns be placed in the first developer message of the input.
This means that if you have a fixed writing standard, a fixed table template or fixed banned words, you should hand them over at the start as a role setup rather than repeating them every turn. A role setup at the beginning is treated as the highest-priority rule; one dropped into a mid-conversation "by the way" is easily diluted by the ever-growing conversation that follows.
For example, to have the model always answer conclusion first, reasoning second, write in the first sentence: "You are my writing assistant; every answer uses the three-part structure conclusion, reasoning, recommendation, in Simplified Chinese." Do not paste the rule again at the end of every question.
How to request fixed formats such as tables or JSON
The short answer: specify the output format directly; when a machine will read the output, ask for JSON explicitly.
The official documentation notes that beyond plain text, the model can return structured data in JSON format, a capability called Structured Outputs — having the AI produce structured data a machine can read directly. In everyday practice, this means writing the format requirement into the instruction instead of expecting the model to guess.
Write format requirements along these three lines:
- Specify the type: table, list, paragraph or JSON — pick one and say so.
- Specify the fields: name the columns for a table and the field names for JSON; do not stop at "tidy it up".
- Specify the constraints: maximum length, whether to number items, language and units — write them whenever you can.
Should the wording change with the model?
The short answer: yes. Reasoning models and general-purpose models take instructions differently, and the wrong wording wastes time or quota.
The official documentation sets out the two model types clearly: reasoning models generate an internal chain of thought — reasoning through the problem before answering — to analyze the input, and excel at complex tasks and multi-step planning, but are usually slower and more expensive; general-purpose GPT models are fast, low-cost and capable, but need more explicit execution instructions. The table below summarizes this:
| Model type | Characteristics per the official documentation | Prompt-writing advice | Suited to |
|---|---|---|---|
| Reasoning models | Generate an internal chain of thought; strong at complex tasks and multi-step planning; usually slower and more expensive | State the task and acceptance criteria; no need to teach every step | Complex reasoning, weighing multiple conditions, long-chain planning |
| General-purpose GPT models | Fast, low-cost and capable, but need more explicit execution instructions | Write out every step and every format; the more explicit the instruction the better | Everyday writing, formatted output, quick Q&A |
| Large / small models | Large models understand more; small models are faster and cheaper | With a small model, specify requirements in more detail; do not rely on it to figure things out | Trade-offs between speed and cost |
Once you have a task, decide in this order:
- First ask whether the task needs step-by-step reasoning or weighing multiple conditions — if yes, use a reasoning model; if not, a general-purpose model.
- Then ask whether you need a fixed format or machine-readable output — if yes, write the table or JSON requirement into the instruction.
- Finally check whether the output is stable — if not, move the rules forward into a role or system instruction and, where possible, pin the same model version (the documentation recommends pinning to a specific model snapshot for consistent behavior).
For readers in Hong Kong and Taiwan: how to subscribe locally for steady access
The short answer: an official subscription requires a foreign-currency card; paying on this site by Alipay or WeChat in RMB is the simpler route for readers in Hong Kong and Taiwan.
You can practice prompt writing on the free tier, but the free tier has limits on quota, models and tools; for steady access to stronger models and higher quotas you need a paid membership. Official subscriptions are billed through Stripe and renew monthly by default, and require a usable foreign-currency credit card. As explained on this site's home page, most local Hong Kong cards can pay but the charge is recorded as a foreign-currency transaction, and some banks apply extra risk checks to subscription merchants; without a usable foreign-currency card you get stuck at the payment page. This site's ChatGPT top-up page switches payment to an Alipay or WeChat QR code settled in RMB, with no overseas credit card and no account password — you submit a login session once at checkout so the account can be verified.
This site's four ChatGPT top-up tiers (final prices in RMB; information updated 2026-11-24; these are this site's prices and are not a conversion comparison against OpenAI's official USD list prices):
| Tier | Price on this site | Best for |
|---|---|---|
| Go | ¥69 / month | Light everyday Q&A and research |
| Plus | ¥149 / month | Writing, office work, light to moderate programming (Codex, OpenAI's programming assistant) |
| Pro 100 | ¥779 / month | Programming-focused use needing Pro-only models |
| Pro 200 | ¥1490 / month | Heavy use with multiple projects in parallel |
Each top-up covers 1 month with no automatic renewal charge; unsuccessful orders are fully refunded, and successful orders carry a 30-day guarantee. Prices, account requirements and the purchase process for all four tiers are on the ChatGPT top-up page; the five-step ordering tutorial is in the top-up guide.
One last note: this site's prices are final RMB prices that include processing costs. To judge value, compare the total RMB you actually pay, not a direct size comparison against the official USD price.