Asking GLM in English: Writing More Precise English Prompts

2026-11-30 · Prompt Optimization

Many people are used to prompting in Chinese, and their English prompts end up loose—one sentence tossed over, hoping the model will guess. GLM itself is solid in both Chinese and English, and a precise English prompt noticeably improves the stability of code, translation, and summarization outputs. Here are a few English templates you can paste directly, plus common pitfalls to avoid.

How English prompts differ from Chinese

In Chinese prompts, vague phrasing often gets smoothed over by context; in English, word order and references are more prone to ambiguity. Three practical principles:

  • Instructions first, material after. English favors command-first style: Summarize the following text in 3 bullet points: then a newline and the text—this beats pasting a big chunk first and adding requirements at the end.
  • Make qualifiers concrete. "short answer" is weaker than "answer in no more than 50 words"; "formal tone" is weaker than "use a neutral professional tone suitable for a business email".
  • Specify the output format. Writing Output format: JSON or Return a markdown table with columns X and Y directly in the prompt—GLM will follow it faithfully.

A general-purpose template

This template fits most everyday tasks: writing, rewriting, explaining, summarizing. Replace everything in angle brackets.

You are a professional English writing assistant.

Task: <rewrite / summarize / explain / translate the text below>
Audience: <e.g. non-technical readers / hiring managers>
Tone: <e.g. neutral, professional, friendly>
Length: <e.g. around 120 words>
Output format: <e.g. plain paragraphs / markdown bullet list>

Constraints:
- Keep the original meaning intact.
- Do not add information that is not in the source.

Text:
<paste your text here>

The key is the "Constraints" section: stating what you don't want to happen controls the model's drift better than only describing what you do want.

A coding task template (playing to GLM's coding strengths)

Coding and tool-calling are widely recognized strengths of the GLM family. Whether you're trying things out in the web playground, calling the BigModel API, or using a Coding Plan inside your editor, this template works:

You are a senior software engineer.

Task: <fix this bug / add a feature / refactor the function>
Language & version: <e.g. Python 3.12 / TypeScript + React>

Requirements:
- Return the complete modified code, not just the diff.
- Add brief inline comments only where logic is non-obvious.
- After the code, list any assumptions you made.

Current code:

<paste code here>

Error message (if any):
<paste error here>

Note the line "list any assumptions you made"—it forces the model to surface unclear premises, so you can spot ambiguous instructions at a glance.

English phrasing for agents and tool calling

GLM supports tool calling and agent capabilities. If you're writing a system prompt, structured English pays off. A reusable skeleton:

You are an agent that helps users <goal>.

Available tools:
- tool_name_1: <one-line description of what it does>
- tool_name_2: <description>

Rules:
1. If the request can be answered without tools, answer directly.
2. Before calling a tool, state in one sentence why you are calling it.
3. If required parameters are missing, ask the user instead of guessing.
4. Final answers must be in <language> and under <N> words.

Rule 2, "state why," is especially useful—you can see the model's decision path while debugging.

Three common pitfalls

1. Don't mix languages in the instructions. A half-English, half-Chinese prompt makes the output language drift. To lock the output to Chinese, add one line: Respond in Simplified Chinese. 2. Turn negative instructions into positive ones. "Don't be verbose" works poorly; "Keep each answer under 80 words" is far more controllable. 3. Give structure before long material. Before pasting a long document, add: The text below is divided into sections by '---'—the model locates information more accurately.

For specifics on parameters, model names, and feature access, refer to the official GLM pages. Save the three templates above, and next time you prompt in English, just paste and swap—the stability of your outputs will improve visibly.

本文为使用方法整理,内容选自网上公开资料,供参考;本站为非官方资讯站,产品能力以官方页面为准。