{
  "format": "ai-knowledge-map/tutorial-v1",
  "canonical": "https://ai-knowledge-map.com/en/software/conversation-basics/",
  "language": "en",
  "title": "Conversation and basic tasks",
  "summary": "Learn to describe tasks, provide necessary context, set constraints and give actionable requirements, then revise prompts based on results. Continue with the interactive workflow, examples and FAQ.",
  "questions": [
    {
      "question": "Are longer prompts always better?",
      "answer": "No. A prompt needs a clear task and necessary conditions; repetition, contradictions and irrelevant instructions do not make it better.",
      "sections": [
        {
          "id": "prompt-foundations",
          "title": "Prompt foundations",
          "url": "https://ai-knowledge-map.com/en/software/conversation-basics/#prompt-foundations"
        }
      ]
    },
    {
      "question": "What context, constraints and actionable requirements should an AI prompt include?",
      "answer": "Provide the material needed for the task, applicable rules, information the AI must not invent, and output requirements you can check.",
      "sections": [
        {
          "id": "prompt-foundations",
          "title": "Prompt foundations",
          "url": "https://ai-knowledge-map.com/en/software/conversation-basics/#prompt-foundations"
        }
      ]
    },
    {
      "question": "How can I diagnose an unsatisfactory AI response and revise my prompt?",
      "answer": "Check the result against the task, distinguish missing context, unclear requirements and execution errors, then revise the relevant conditions or instructions.",
      "sections": [
        {
          "id": "prompt-foundations",
          "title": "Prompt foundations",
          "url": "https://ai-knowledge-map.com/en/software/conversation-basics/#prompt-foundations"
        }
      ]
    }
  ],
  "scope": "Summary and short answers are derived from the canonical chapter. Original source labels, setup details, version context and testing limitations are retained in the complete sections below. This is a public reading format, not an independent review or test result.",
  "sources": [],
  "sections": [
    {
      "id": "prompt-foundations",
      "title": "Prompt foundations",
      "url": "https://ai-knowledge-map.com/en/software/conversation-basics/#prompt-foundations",
      "html": "<section class=\"dd-sec course-reading\" id=\"course-introduction\" aria-labelledby=\"course-introduction-title\"><h2 id=\"course-introduction-title\" tabindex=\"-1\">Introduction</h2>\n<p>For most AI users, prompts are the foundation of their work and the starting point for AI-generated content. But what does a good prompt look like? Are rigid, mechanical-sounding templates the best approach? Or will advances in AI mean we no longer need to think about prompting? In practice, many AI developers have not mastered prompting techniques, which costs them time and tokens. How should we write prompts? What do prompt engineers study? Learning how to ask AI for what we need is a prerequisite for exploring any field of AI use.</p>\n</section>\n<section class=\"dd-sec course-reading\" id=\"course-prompt-selection\" aria-labelledby=\"course-prompt-selection-title\"><h2 id=\"course-prompt-selection-title\" tabindex=\"-1\">I Choosing a prompt</h2>\n<p>Here are three prompts for the same task:</p>\n<h3>A Short version</h3>\n<blockquote class=\"course-prompt-example\">\n<p>Write a customer service reply under the store rules. State whether the customer can apply, whether a refund is guaranteed, and how long review takes. Do not add shipping or refund-arrival promises. One paragraph, no more than 120 Chinese characters.</p>\n</blockquote>\n<h3>B Concise and precise version</h3>\n<blockquote class=\"course-prompt-example\">\n<p>A customer asks whether applying now guarantees a refund. Using the store rules below, reply in a friendly, direct tone. Explain whether they can apply, whether applying guarantees a refund, and how long review usually takes. Shipping costs and refund-arrival times are not provided, so do not make promises about them. Keep the reply to one paragraph of no more than 120 Chinese characters.</p>\n</blockquote>\n<h3>C Detailed template</h3>\n<blockquote class=\"course-prompt-example\">\n<p><strong>1 Goal and purpose</strong></p>\n<p>Clearly explain the customer's eligibility to apply and the uncertainty of the outcome.</p>\n<p><strong>2 Evidence and conditions</strong></p>\n<p>The following materials and agreements apply to this task. Distinguish facts, the request to handle, and rules, and use each for its intended purpose.</p>\n<p>Fictional store return rules: Customers may apply for a return within seven days of receipt if the product is unused. Refund approval depends on review. Review usually takes two business days.</p>\n<p>Customer: It is day five since I received the product, and I have not used it. If I apply now, am I guaranteed a refund?</p>\n<p><strong>3 What to preserve and boundaries</strong></p>\n<p>Explain only the fictional store rules provided. Do not introduce external law or additional return policies. Distinguish eligibility to apply from a guaranteed refund, and preserve “usually” when stating the review time.</p>\n<p><strong>4 Delivery and collaboration</strong></p>\n<p>One friendly, direct customer service paragraph, no more than 120 Chinese characters, covering eligibility, refund conditions, and review time.</p>\n<p><strong>5 Check before delivery</strong></p>\n<p>Check that the result meets the goal, factual scope, limits, and delivery requirements above. Correct any discrepancies before delivering. Do not show each check, add a self-assessment, or append a checking report; keep the requested output format.</p>\n</blockquote>\n<p>Which of these three prompts produces a better answer? Many beginners may assume C must be best: with such detailed goals and materials, surely AI will follow everything carefully. A universal template would then produce the best result for any question. In practice, C is not necessarily best.</p>\n<p>Could B be best? Modern AI understands natural language. Perhaps C restricts its creativity, and only concise, precise prompts produce the best results.</p>\n<p>Or perhaps A is best: many high-scoring prompts are short. A is also easy to write and can be improved later.</p>\n<p>What is the answer? A, B, and C each have strengths and limits. For most questions, B and C tend to do slightly better than A, while B and C remain close. On a smaller number of questions, A can lead. What does each version get right, and where does it fall short? That is what the following sections explore. First, recognize that no perfect universal template can generate good results for every task in one attempt.</p>\n<h3 id=\"course-topic-1\">1 Is longer better?</h3>\n<p>Why do C and B perform similarly? The context window and attention mechanism work together. Suppose your prompt has five requirements: two that must be met, and three to meet if possible. In C, the three less important requirements may draw attention away from the two more important ones, or the AI may fail to fully follow any of them. The concise, precise B retains the key information and lets AI focus on the two most important requirements, reducing errors. New requirements that conflict with earlier ones or introduce irrelevant content can also make execution harder. A longer prompt is therefore not necessarily better.</p>\n<p>This raises another question: if C has these problems, why can it still perform about as well as B? Shouldn't it make more errors? Look at what C adds and what necessary information B leaves out. Understanding what those additions do, when to include them, and when to leave them out is a central prompting skill.</p>\n<h3 id=\"course-topic-2\">2 Prompting basics</h3>\n<p>Before adding useful information to B, start with a concise, precise basic prompt. State the task and purpose, clarify known limits and decision authority where possible, then either finish or iterate based on the result. Consistent quantities, subjects, terminology, and correct punctuation matter. Iteration matters even more. Even a very simple prompt can improve substantially when you inspect results and revise it; you do not need to finish a task with one prompt. For unfamiliar tasks, using earlier results to state explicitly what the next prompt should avoid can greatly improve output.</p>\n<p>If your needs are vague or difficult to describe, let AI ask questions to clarify them. Once settled, consolidate and confirm the final requirements before execution. If earlier discussion contains mistaken assumptions or confusion, correct it or start another conversation. If it contains no mistaken assumptions, you need not worry about that context reducing later output quality. For very simple tasks, saying too much can make results less stable. Today's AI can produce excellent results from short prompts; some prompts that receive full marks are very short.</p>\n<h3 id=\"course-topic-3\">3 Provide necessary materials</h3>\n<p><strong>There are two kinds of materials: task materials and examples.</strong> To have AI revise an article, provide the original. To answer a customer under store rules, provide the rules and the customer's message together. Because AI has context limits, more material is not always better; provide it at the right point. If a task needs a table of delivery dates and product-use status, supply it when AI needs to evaluate that table, rather than at every stage, where it may distract from the current work. Explain how the materials should be used.</p>\n<p><strong>The second kind is examples.</strong> If your desired approach is abstract or hard to describe, such as “write more naturally,” provide a passage you like and explain: “I like its everyday language and the way it states the conclusion before explaining.” Choose examples close to the current task. For classification or rewriting, show both the original input and the processed result so AI can see how to classify or revise. For easily confused cases, compare two examples and explain the difference, including correct and incorrect examples. If the instructions are already clear, adding examples may not help. Poorly chosen examples, conflicts with the instructions, or copying irrelevant details can make results worse. Evaluations of the original DeepSeek R1 included cases where adding examples reduced performance.</p>\n<h3 id=\"course-topic-4\">4 Define boundaries and rules</h3>\n<p>There are many ways to write a friendly customer reply. AI might reassure the customer by explaining the process, or write, “Don't worry, you will definitely get a refund.” The latter sounds reassuring but turns eligibility to apply into a guaranteed refund. State both the effect you want and the approaches or content changes that are prohibited. Boundaries and rules matter because they determine how AI may complete the task and what it must preserve when making trade-offs—things we often overlook on a first attempt. Clarifying them during iteration is especially important and can greatly improve consistency. Include known non-negotiable limits from the start, then add other rules based on actual errors.</p>\n<p>Make boundaries concrete: “You may adjust the tone, but do not change the refund conditions.” When revising an article: “Change only the wording; preserve the arguments and data.” These define the scope of changes. “Don't change things randomly” or “Don't make things up” still leaves unclear which changes you consider inappropriate. Good boundaries and rules must be actionable and assessable, rather than vague adjectives such as “careful,” “professional,” or “advanced.”</p>\n<p>Boundaries and rules also support timely interaction. Even “Ask me directly when you are unsure” can reveal gaps we missed in the prompt. For particular tasks, define what may change and what must be preserved, as well as what AI may decide independently and what needs your confirmation.</p>\n<h3 id=\"course-topic-5\">5 Actionable requirements</h3>\n<p>“Be more careful” and “Write professionally” express expectations without specifying what to do. Professional writing might mean accurate terminology, complete explanations, or a formal tone. If you want better terminology but AI only makes the tone more serious, it has not solved the problem. Actionable requirements translate expectations into concrete actions, so AI knows what to change and you can tell whether it has done so.</p>\n<p>When an actionable requirement is hard to express, use an example and explain what is correct or incorrect about it in that respect. Consider actionable requirements in a strong prompt:<br>Task type: <strong>Meeting notes</strong></p>\n<blockquote class=\"course-prompt-example\"><p>Organize the following notes for people who did not attend the meeting. Extract only decisions and action items explicitly stated in the notes. For each action, include an owner and deadline; if missing, mark it “Not specified.” In Markdown, output three sections—“Decisions,” “Action items,” and “Unresolved questions”—using lists in each section. Keep the total under 200 English words.<br>Meeting notes: [paste notes]</p></blockquote>\n<p>The actionable requirements specify <strong>what to extract, what each item must include, and how to handle missing information. The example also includes boundaries:</strong> use lists in each section and stay under 200 English words. It also includes the example placeholder, “Meeting notes: [paste notes].” The task and purpose need only one sentence in the concise prompt.</p>\n<h3 id=\"course-topic-6\">6 Iteration</h3>\n<p>First identify the cause of the problem, then decide how to revise the prompt. If the return decision is wrong, check whether you provided the receipt date and product-use status. If not, add them. If the materials are complete but AI overlooked a condition, identify it and ask AI to reconsider under that condition. For stronger prompts, iteration more often adds examples of errors and clearer boundaries. Iteration can make a substantial difference, turning a rough prompt into one that produces usable results.</p>\n<p>If AI keeps getting distracted by specific details, ask it to first identify the principles that determine the answer, then work through the details. For example, establish the applicable rules or decision criteria first, then use them to analyze the current problem.</p>\n<p>Iteration cannot solve everything. Sometimes no amount of revision seems to fix a result. Earlier answers may keep influencing later ones, requirements may conflict, or execution may be inconsistent. Try a new conversation, or branch from a point that retains only the context before the mistake.</p>\n<p>A conversation can be restarted, but a project cannot always be rebuilt from scratch, so make sure you can roll back the project with Git.</p>\n</section>"
    }
  ]
}
