{"id":22184,"date":"2025-03-25T18:30:44","date_gmt":"2025-03-25T11:30:44","guid":{"rendered":"https:\/\/gudjob.net\/?p=22184"},"modified":"2026-08-18T08:32:41","modified_gmt":"2026-08-18T01:32:41","slug":"cong-thuc-vang-viet-cau-lenh-cho-ai","status":"publish","type":"post","link":"https:\/\/gudjob.net\/en\/blog\/cong-thuc-vang-viet-cau-lenh-cho-ai\/","title":{"rendered":"\u201cGolden formula\u201d writing commands for AI"},"content":{"rendered":"<h3 id=\"d%C3%B9ng-ai-x%E1%BB%8Bn-nh%C6%B0ng-k%E1%BA%BFt-qu%E1%BA%A3-tr%E1%BA%A3-v%E1%BB%81-v%E1%BA%ABn-kh%C3%B4ng-%C6%B0ng-%C3%BD-v%E1%BA%A5n-%C4%91%E1%BB%81-c%C3%B3-th%E1%BB%83-n%E1%BA%B1m-%E1%BB%9F-c%C3%A1ch-%C4%91%E1%BA%B7t-c%C3%A2u-l%E1%BB%87nh\">Using a powerful AI but still getting disappointing results? The problem may lie in how you write the prompt.<\/h3>\n<p>Having used AI for a long time, in fact many users still do not know how to write effective prompts.<\/p>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/1-7.webp\" class=\"kg-image\" alt=\"|\" width=\"2000\" height=\"1333\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/1-8.webp 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/1-9.webp 1000w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/1-10.webp 1600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/1-11.webp 2400w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<h4 id=\"v%C3%AC-sao-ai-b%E1%BA%A1n-d%C3%B9ng-kh%C3%B4ng-th%C3%B4ng-minh\">Why is the AI \u200b\u200byou use \"not smart\"?<\/h4>\n<p>Prompt (command) is simply understood as a command or request that the user gives to the AI \u200b\u200bwith the hope of receiving appropriate results.<\/p>\n<p>For example, if you give the AI \u200b\u200ba request \"Create a short story about a lost cat\", this sentence is a prompt.<\/p>\n<p>In addition to being imperative, a good prompt needs to have clear, specific instructions about the user's wishes.<\/p>\n<p>A good prompt also needs to be logical, easy to understand, and have clear directions, like a \"detailed map\" guiding the AI.<\/p>\n<p>For example, the prompt \u201cWrite about fog\u201d is a rather vague prompt, lacking instructions for the AI \u200b\u200bto clearly understand what you want. As for the prompt \"Create a short 10-line poem about a foggy morning in Da Lat, with a romantic, emotional tone, for nature lovers - make it like a vivid poetic picture!\" is a complete, detailed prompt.<\/p>\n<p>According to experts, when writing prompts, users often encounter errors such as not determining the purpose or desire for the answer that the AI \u200b\u200bcreates, or writing too general, vague, not providing enough information or context, causing the AI \u200b\u200bto misunderstand and give incorrect answers.<\/p>\n<p>In addition, some important details such as length limits, style or content format are often forgotten by many users.<\/p>\n<p>Besides, most users have not yet identified the strengths and weaknesses of each AI tool to choose the appropriate tool for each purpose.<\/p>\n<h4 id=\"c%C3%B4ng-th%E1%BB%A9c-v%C3%A0ng-%C4%91%E1%BB%83-tr%C3%B2-chuy%E1%BB%87n-v%E1%BB%9Bi-ai\">The golden formula for chatting with AI<\/h4>\n<p>When writing prompts, there are a number of effective methods you can apply.<\/p>\n<ul>\n<li>First, readers can use frameworks, also known as \"golden formulas\", to write prompts.<\/li>\n<\/ul>\n<p>5W - 1H in which 5W includes What, Who, When, Where, Why and 1H includes How.<\/p>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/2.webp\" class=\"kg-image\" alt=\"|\" width=\"747\" height=\"601\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/2-2.webp 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/2.webp 747w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>You can refer to the CO-STAR formula created by Data Science &amp; AI of GovTech Singapore.<\/p>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/4.webp\" class=\"kg-image\" alt=\"|\" width=\"1920\" height=\"1066\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/4-1.webp 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/4-2.webp 1000w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/4-3.webp 1600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/4.webp 1920w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<ul>\n<li>Second, readers can also use the \"Role Playing\" method, or simply put commands for the AI \u200b\u200bto play the role of a specific character, from which the results will have the style, tone and perspective of that character.<\/li>\n<\/ul>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/5.webp\" class=\"kg-image\" alt=\"|\" width=\"753\" height=\"273\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/5-1.webp 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/5.webp 753w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>\u2013 Third, readers can break down the problem so that the results are more in-depth and get more data. You can separate each factor to get a detailed answer, or instead of getting a general response, we can ask the AI \u200b\u200bto provide many different perspectives.<\/p>\n<p>Examples instead of giving commands&nbsp;<strong>\u201cThe impact of social networks on student learning\u201d<\/strong>&nbsp;you can divide it into&nbsp;<strong>\u201cThe impact of social networks on students' ability to concentrate on studying\u201d<\/strong>,&nbsp;<strong>\"Benefits of social networks on student learning\"<\/strong>.<\/p>\n<p>\u2013 Finally, testing and tweaking is an effective method. Users will actively check the results and then adjust the prompt to achieve the best results. Currently, most AI tools have the ability to edit prompts.<\/p>\n<h4 id=\"t%E1%BB%91i-%C6%B0u-prompt-hi%E1%BB%87u-qu%E1%BA%A3-cho-t%E1%BB%ABng-lo%E1%BA%A1i-n%E1%BB%99i-dung\">Optimize effective prompts for each type of content<\/h4>\n<p>Writing prompts does not just stop at conveying requirements, but also needs to be flexibly adjusted depending on the type of content you want AI to create: text, photos or videos.<\/p>\n<p>\u2013 First, for text formatting, some general notes include clearly defining the purpose of creating the content and what the desired result is. Next, provide detailed input data, especially context, with important data written first.<\/p>\n<p>When writing a prompt for a document, it is necessary to ensure a number of criteria such as writing style (formal, informal, humorous,...), format (paragraph, list, table), length (150 words, 1000 words,...), target audience (students, experts,...).<\/p>\n<p>After AI has returned results, it is necessary to carefully check and edit to ensure the accuracy of the content.<\/p>\n<p>\u2013 For photo formats, the most important thing for users is to determine what they want to achieve, such as wanting to create product photos, portrait photos, historical photos, real-life photos, etc.<\/p>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/7-5.png\" class=\"kg-image\" alt=\"|\" width=\"980\" height=\"320\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/7-6.png 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/7-5.png 980w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>Prompts to create images can be written according to the process starting from determining the content you want to convey, then determining the main and secondary subjects.<\/p>\n<p>Once you have entered the above elements, the reader continues to provide information about the context, depth of the photo, color and mood, costume details and props.<\/p>\n<p>The prompt to create an image will be flexible depending on the user's purpose.<\/p>\n<figure class=\"kg-card kg-image-card\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/8.png\" class=\"kg-image\" alt=\"|\" width=\"978\" height=\"336\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/8-1.png 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/8.png 978w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>It's important to note that AI-generated photos can belong to you or the AI \u200b\u200bplatform depending on the tool's usage policy.<\/p>\n<p>Many AI platforms today also advise against creating images related to national flags, political or religious symbols to avoid violating culture, law or causing controversy.<\/p>\n<p>\u2013 For video formats, the first criterion is to focus on a main character or topic, ensuring the AI \u200b\u200bunderstands the focus correctly.<\/p>\n<p>Video differs from photos in its motion.<\/p>\n<figure class=\"kg-card kg-image-card kg-card-hascaption\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/9.webp\" class=\"kg-image\" alt=\"|\" width=\"1720\" height=\"851\" srcset=\"https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/9-1.webp 600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/9-2.webp 1000w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/9-3.webp 1600w, https:\/\/gudjob.net\/wp-content\/uploads\/2026\/08\/9.webp 1720w\" sizes=\"auto, (min-width: 720px) 720px\"><figcaption><i><em class=\"italic\" style=\"white-space: pre-wrap;\">Writing a prompt to create a video requires attention to character descriptions, movements, and postures (Photo: Screenshot).<\/em><\/i><\/figcaption><\/figure>\n<p>With video, users need to choose the appropriate style such as animated, realistic, or hand-drawn.<\/p>\n<p>Prompts for videos should not be too lengthy, nor should the requirements be too complex such as describing too many characters and actions at the same time because the nature of AI cannot handle multi-layer layouts well.<\/p>\n<p>Finally, users need to avoid making sensitive content to comply with AI regulations, ensuring that commands do not exceed the AI's current capabilities.<\/p>\n<p>Prompt is an important bridge between humans and AI.<\/p>\n<p><strong><em>According to Viet Anh &amp; Minh Nhat - Dan Tri<\/em><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>D\u00f9ng AI &#8220;x\u1ecbn&#8221;, nh\u01b0ng k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 v\u1eabn kh\u00f4ng \u01b0ng \u00fd, v\u1ea5n \u0111\u1ec1 c\u00f3 th\u1ec3 n\u1eb1m \u1edf c\u00e1ch \u0111\u1eb7t c\u00e2u l\u1ec7nh. S\u1eed d\u1ee5ng AI \u0111\u00e3 l\u00e2u nh\u01b0ng tr\u00ean th\u1ef1c t\u1ebf nhi\u1ec1u ng\u01b0\u1eddi d\u00f9ng v\u1eabn ch\u01b0a bi\u1ebft c\u00e1ch vi\u1ebft Prompt (c\u00e2u l\u1ec7nh) hi\u1ec7u qu\u1ea3. B\u00e0i vi\u1ebft d\u01b0\u1edbi \u0111\u00e2y s\u1ebd gi\u00fap b\u1ea1n n\u00e2ng cao k\u1ef9 n\u0103ng [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22301,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wpai_generated_summary":"","footnotes":""},"categories":[174],"tags":[179,182],"class_list":["post-22184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-cong-nghe","tag-ai","tag-cong-nghe"],"acf":[],"_links":{"self":[{"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/posts\/22184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/comments?post=22184"}],"version-history":[{"count":1,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/posts\/22184\/revisions"}],"predecessor-version":[{"id":22678,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/posts\/22184\/revisions\/22678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/media\/22301"}],"wp:attachment":[{"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/media?parent=22184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/categories?post=22184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gudjob.net\/en\/wp-json\/wp\/v2\/tags?post=22184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}