AI อะไรเนี่ย
คอร์สเรียน และ บทความ AI

AI Foundations

Prompting Basics

5 min read

Good prompts usually do three things:

  1. Assign a role. Tell the model who it is (e.g. "You are a senior engineer reviewing this code.").
  2. Define the goal. What should the output achieve? Who is it for?
  3. Set constraints. Length, tone, format, or things to avoid.

Example: Instead of "Write a post about shoes," try: "You are a product copywriter. Write a short Facebook post for hiking boots aimed at outdoor enthusiasts. Mention grip and durability. Keep it under 80 words."

Clear instructions lead to more useful and consistent results.