MON - FRI : 09:00 AM-18:00 PM
ENGEN

Prompt and prompt engineering

December 04, 2026
0 views

A prompt is the instruction you type into an AI tool such as ChatGPT, Gemini or Claude to get an answer or have it do a task. Prompt engineering is the work of writing and revising prompts until the AI returns output that meets your requirements, and does so consistently.

What is a prompt?

AI writing tools run on a large language model (LLM). Google compares this kind of model to an advanced autocomplete: you supply the beginning and it writes what comes next (Google, Prompt design strategies, accessed December 2026). The prompt is that beginning.

The same prompt run twice can return two different answers (OpenAI, Prompt engineering guide, accessed December 2026). That is why prompt engineering is a loop: write, run, read the output, revise.

Anthropic suggests a simple test: show your prompt to a colleague who knows nothing about the task. If they would be confused, the AI will be too (Anthropic, Prompting best practices, accessed December 2026).

Prompt engineering: how to structure a good prompt

The guides from all three companies revolve around five parts:

  1. Role: who the AI is playing. According to Anthropic, a single sentence of role is enough to change the tone of the answer.
  2. Context: the product, the customer, the channel and the reason behind the request.
  3. Task: a specific verb, a quantity, a length limit.
  4. Output format: a table, a number of sentences, a character count. Anthropic advises telling the AI what to do rather than only listing what not to do.
  5. Examples (few-shot): Google recommends always including examples, and Anthropic suggests 3 to 5 that differ enough from each other. With too many examples, the AI starts copying their pattern.

Example: a prompt for ad copy (hypothetical)

The product: anchovy fish sauce with a 40°N (nitrogen-based protein grade), 500ml bottle, VND 95,000, sold on Shopee. A prompt for Facebook ad primary text:

  • Role: You write ads for a traditional fish sauce brand.
  • Context: The main customers are home cooks aged 28 to 45 in Ho Chi Minh City who worry about fish sauce mixed with additives. The brand calls itself “nhà mình” (our family) and never exaggerates.
  • Task: Write 5 versions, each from one angle: protein level, fish source, fermentation, dishes, cost per meal. Two sentences maximum each.
  • Format: A 3-column table: angle, copy, character count.
  • Examples: paste 2 previously approved ads.
  • Limits: Use only the facts given in the context. If information is missing, ask.

A prompt for a content brief uses the same frame: the context is a keyword list with search volumes, and the task is an H2 outline plus the facts the writer must check. Prompts for ad images also need a set of original product photos; see how to keep AI ad creative on brand.

Common prompt mistakes

  • A one-line prompt like “write a fish sauce ad”. You get generic copy that would work just as well with another brand’s name in it.
  • No facts provided. The AI fills in protein levels, awards and certifications that do not exist.
  • Too many jobs in one prompt. Google suggests splitting it into one prompt per instruction.
  • Switching model versions without testing again. OpenAI notes that results can differ even within the same model family.

Check the output before you use it

  1. Match every number and product claim against your product documentation.
  2. Look for “nhất” (most), “duy nhất” (only), “tốt nhất” (best) and “số một” (number one). Vietnam’s Advertising Law bans these words in ads unless backed by lawful supporting documents (Article 8, Clause 11, Advertising Law No. 16/2012/QH13, accessed December 2026).
  3. Run the same prompt 3 times and score each result against fixed criteria.
  4. Images, video or voices that use AI to recreate real people must be labeled; see Vietnam’s AI content labeling rules.

Prompt vs related terms

Term What it is
System prompt Fixed instructions that apply to every turn and take priority over user messages (OpenAI)
Fine-tuning Further training a model on your own data; few-shot examples steer the model without this step
AI agent A system that plans its own steps and calls tools to reach a goal

FAQ

What is few-shot prompting?

A prompt that includes a few pairs of example inputs and desired outputs (a prompt with no examples is called zero-shot). Keep the examples in the same format, because the AI learns the format from them.

Why does the same prompt give different answers each time?

The model picks words with an element of randomness. For steadier output, add examples and spell out the format.

If you need a set of prompt templates for your content and ads team that matches your brand voice, contact Adtek.