AI prompting: Difference between revisions
imported>Unknown user No edit summary |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
AI prompting is the practice of giving clear instructions or inputs to an AI system to get specific, useful responses. | AI prompting is the practice of giving clear instructions or inputs to an AI system to get specific, useful responses. | ||
= Tips for a good prompt = | = Tips for a good prompt = | ||
== Elaborate a clean and detailed prompt == | |||
== | |||
Be specific about what you need. Include all relevant instructions, constraints, and goals to guide the AI toward the desired outcome. | Be specific about what you need. Include all relevant instructions, constraints, and goals to guide the AI toward the desired outcome. | ||
== Assign AI a Role == | |||
== | |||
Specify the kind of expert or persona the AI should adopt (e.g., “Act as a marketing strategist”). This helps tailor the response with the appropriate tone, knowledge, and perspective. | Specify the kind of expert or persona the AI should adopt (e.g., “Act as a marketing strategist”). This helps tailor the response with the appropriate tone, knowledge, and perspective. | ||
== Request == | |||
= | |||
The specific action it must perform. Avoid requesting multiple different tasks at the same time. | The specific action it must perform. Avoid requesting multiple different tasks at the same time. | ||
== Provide Context == | |||
= | |||
The more context you give, the better the results. Include: | The more context you give, the better the results. Include: | ||
| Line 29: | Line 20: | ||
* '''Attachments''': Upload documents or links if the task depends on them. | * '''Attachments''': Upload documents or links if the task depends on them. | ||
== Add examples == | |||
== | Include samples of the tone, structure, or content style you’re aiming for. Examples help the AI better match your expectations. | ||
== Quality criteria == | |||
Which rules it must follow for a good result: clarity, coherence, etc | |||
== Specify the response format == | |||
Indicate how the response should be structured: bullet points, a report, an email draft, or code. | |||
== Self verification == | |||
Request the AI to review its own work before delivering it. | |||
== Iterative refinement == | |||
Instead of expecting a perfect answer on the first try, iterate: | |||
* Ask follow-up questions | |||
* Request improvements | |||
* Adjust parameters or tone | |||
This allows the AI to improve output progressively based on your feedback. | |||
== Break down complex tasks == | |||
Large or multi-layered tasks should be separated into smaller steps. For example: | |||
* Brainstorm ideas | |||
* Choose one option | |||
* Expand and add details | |||
* Refine tone and format | |||
Step-by-step prompting reduces confusion and hallucination. | |||
== Provide constraints and boundaries == | |||
Defining what NOT to do is as important as defining what TO do. Examples: | |||
* Word/character limits | |||
* Required sources | |||
* Style restrictions | |||
* Forbidden themes | |||
Clear boundaries improve precision. | |||
== Ask the AI to think step-by-step == | |||
Asking the model to explain or reason step-by-step (without revealing chain-of-thought) improves accuracy for: | |||
* Calculations | |||
* Logic | |||
* Decision-making | |||
* Prioritization | |||
Use language like: | |||
* “Explain your reasoning briefly.” | |||
* “List your steps concisely.” | |||
== Ask for multiple alternatives == | |||
Instead of one answer, request: | |||
* 3–5 options | |||
* Pros/cons | |||
* Variation in tone or complexity | |||
This facilitates decision-making. | |||
== Reduce hallucinations == | |||
To minimize invented facts: | |||
* Request “only verifiable information” | |||
* Ask it to answer “Unknown” when uncertain | |||
* Require confidence levels (High/Medium/Low) | |||
== Provide domain knowledge first == | |||
If accuracy relies on internal company data, policies, or context, share them before asking questions. This prevents generic responses. | |||
== Temperature of creativity (conceptual guidance) == | |||
Even if not controlling parameters directly, describe the desired creativity level: | |||
* “Be very creative and speculative” | |||
* “Be conservative and factual” | |||
This impacts tone, risk, and inventiveness. | |||
== Ask for assumptions to be listed == | |||
Useful for planning: | |||
* “List any assumptions you are making before producing the answer.” | |||
This increases transparency and reduces hidden ambiguity. | |||
== Request edge cases or risks == | |||
For technical, product, or marketing prompts, ask: | |||
* “Identify risks, limitations, or edge cases.” | |||
This strengthens critical thinking and planning. | |||
== Ask the AI to ask YOU questions first == | |||
For incomplete tasks: | |||
* “Before answering, ask 5 clarifying questions.” | |||
Better inputs = better outputs. | |||
= Additional prompting patterns = | |||
== Few-shot prompting == | |||
Provide several examples to teach style, tone, or structure. Useful when: | |||
* Emulating a writing voice | |||
* Producing domain-specific answers | |||
== Zero-shot prompting == | |||
Ask the AI to perform a task with no examples. Works well with: | |||
* Simple instructions | |||
* High-level tasks | |||
== COT (structured reasoning requests) == | |||
= | Asking the model to provide brief reasoning improves: | ||
* Accuracy | |||
* Decision clarity | |||
* Analytical tasks | |||
== Style transfer prompting == | |||
Ask the model to rewrite content in a specific style, e.g.: | |||
* “Rewrite formally” | |||
* “Rewrite for teenagers” | |||
== Rewriting for different audiences == | |||
= | Useful for adapting: | ||
* Complexity | |||
* Vocabulary | |||
* Tone | |||
= Prompt anti-patterns (Avoid) = | |||
* Vague goals (“help me with this”) | |||
* Missing context (“write recommendations” without audience) | |||
* Mixing unrelated tasks | |||
* Oversized prompts without structure | |||
* “Do everything for me” without constraints | |||
= Debugging prompts = | |||
If results are poor, try: | |||
# Rewriting instructions more clearly | |||
# Adding or removing examples | |||
# Reducing creativity | |||
# Clarifying constraints | |||
# Requesting assumptions | |||
= Example prompts = | |||
Whenever there is a prompt that has worked for you, add it to a document in order to have it as a template. | Whenever there is a prompt that has worked for you, add it to a document in order to have it as a template. | ||
== Example #1 == | == Example #1 == | ||
<ul> | <ul> | ||
<li><p><u>business email draft</u><br /> | <li><p><u>business email draft</u><br />You are a professional communications specialist.</p> | ||
You are a professional communications specialist.</p> | |||
<p>I need you to write a formal email to a potential client introducing our digital marketing agency and offering a free consultation.</p> | <p>I need you to write a formal email to a potential client introducing our digital marketing agency and offering a free consultation.</p> | ||
<p>'''Context:'''</p> | <p>'''Context:'''</p> | ||
| Line 75: | Line 176: | ||
<li><p>Email structure: greeting, intro, value proposition, CTA, closing</p></li></ul> | <li><p>Email structure: greeting, intro, value proposition, CTA, closing</p></li></ul> | ||
<p>'''Example of tone:'''<br /> | <p>'''Example of tone:'''<br />“We’re passionate about helping businesses grow online.”</p> | ||
“We’re passionate about helping businesses grow online.”</p> | |||
<p>How else could you help with client outreach?<br /> | <p>How else could you help with client outreach?<br /> | ||
</p></li> | </p></li> | ||
<li><p><u>Content Idea Generator</u><br /> | <li><p><u>Content Idea Generator</u><br />Act as a senior content strategist.</p> | ||
Act as a senior content strategist.</p> | |||
<p>I need 10 blog post ideas for a wellness brand that sells organic teas and herbal supplements.</p> | <p>I need 10 blog post ideas for a wellness brand that sells organic teas and herbal supplements.</p> | ||
<p>'''Audience:''' Health-conscious adults, | <p>'''Audience:''' Health-conscious adults, 25-45, primarily in North America.</p> | ||
<p>'''Context:'''</p> | <p>'''Context:'''</p> | ||
<ul> | <ul> | ||
| Line 92: | Line 191: | ||
<ul> | <ul> | ||
<li><p>List format</p></li> | <li><p>List format</p></li> | ||
<li><p>Include a short | <li><p>Include a short 1-2 sentence description per idea</p></li></ul> | ||
<p>'''Example style:'''</p> | <p>'''Example style:'''</p> | ||
| Line 100: | Line 199: | ||
<p>What other content formats do you suggest for this niche?</p></li></ul> | <p>What other content formats do you suggest for this niche?</p></li></ul> | ||
== Example #2 == | == Example #2 == | ||
'''Context and | '''Context and role'''<br />You take on the role of someone who makes clear comparisons between different options to help choose quickly and accurately. Your style is serious and direct, without unnecessary embellishments or complicated explanations. You write in continuous paragraphs, not in lists. | ||
You take on the role of someone who makes clear comparisons between different options to help choose quickly and accurately. Your style is serious and direct, without unnecessary embellishments or complicated explanations. You write in continuous paragraphs, not in lists. | |||
'''Query/Task'''<br /> | '''Query/Task'''<br />You need to prepare a complete comparison of the options provided by the user. The output must include: a short prose summary, a comparative table in Markdown format, a brief recommendation, and a more detailed report on the winning option. Even if information is missing, you always deliver something and complete all sections. In this case, I want you to compare Zoom, Google Meet, and Microsoft Teams for online meetings. | ||
You need to prepare a complete comparison of the options provided by the user. The output must include: a short prose summary, a comparative table in Markdown format, a brief recommendation, and a more detailed report on the winning option. Even if information is missing, you always deliver something and complete all sections. In this case, I want you to compare Zoom, Google Meet, and Microsoft Teams for online meetings. | |||
'''Specifications'''<br /> | '''Specifications'''<br />When researching, you prioritize official pages (pricing websites, help centers, product documentation). If no confirmed data is available, put “N/A” and indicate the confidence level (High, Medium, or Low). If the user writes the word VERIFY, check all claims and include citations at the end. In the table, indicate prices with currency, plan type, and the date you checked it. If you find nothing official, leave N/A. For person comparisons, only mention public information such as achievements or experience. Always complete the work from start to finish. | ||
When researching, you prioritize official pages (pricing websites, help centers, product documentation). If no confirmed data is available, put “N/A” and indicate the confidence level (High, Medium, or Low). If the user writes the word | |||
'''Quality Criteria'''<br /> | '''Quality Criteria'''<br />The work is considered good if you do not invent anything, clearly mark unknown information as N/A, indicate confidence levels for key data, and present advantages and limitations in an easy-to-understand way. The format should be clean, with clear prices and dates, and a practical tone that helps decision-making. Avoid empty phrases or disguised advertising. | ||
The work is considered good if you do not invent anything, clearly mark unknown information as N/A, indicate confidence levels for key data, and present advantages and limitations in an easy-to-understand way. The format should be clean, with clear prices and dates, and a practical tone that helps decision-making. Avoid empty phrases or disguised advertising. | |||
'''How the | '''How the response should be'''<br />You respond in the user’s language (default: neutral English). Always follow this order: | ||
You respond in the user’s language (default: neutral English). Always follow this order: | |||
# A single-paragraph summary of | # A single-paragraph summary of 4-6 sentences explaining the most important differences and which option fits best in each case. | ||
# A Markdown table with these columns: Entity, What it is, What it offers, Price from, Advantages, Limitations, Best for, and Confidence. Each cell written in short sentences separated by semicolons. | # A Markdown table with these columns: Entity, What it is, What it offers, Price from, Advantages, Limitations, Best for, and Confidence. Each cell written in short sentences separated by semicolons. | ||
# A quick recommendation in one or two sentences with the winning option and a next step (such as free trial or demo). | # A quick recommendation in one or two sentences with the winning option and a next step (such as free trial or demo). | ||
# An executive report on the winning option of 350-550 words, divided into sections with clear titles: Context and value proposition, Impact on business metrics, Costs and implementation, Risks and mitigations, Fit and integration, Estimated ROI or payback. Each section with two or three sentences in micro-paragraphs. Use bold for titles and key figures. | # An executive report on the winning option of 350-550 words, divided into sections with clear titles: Context and value proposition, Impact on business metrics, Costs and implementation, Risks and mitigations, Fit and integration, Estimated ROI or payback. Each section with two or three sentences in micro-paragraphs. Use bold for titles and key figures. | ||
'''Verification'''<br /> | '''Verification'''<br />Before delivering, check that no data has been invented, N/A is used where information is missing, and confidence levels are indicated. At the end, add a line with price and plan citations in this format: [source name - YYYY-MM-DD]. If the user requested VERIFY, also include all other relevant citations. | ||
Before delivering, check that no data has been invented, N/A is used where information is missing, and confidence levels are indicated. At the end, add a line with price and plan citations in this format: [source name | |||
= Resources = | |||
== Prompt generator == | |||
[[File:Prompt sampler html.zip|Download]] | |||
= | |||
== Example prompts == | |||
[https://promptbase.com/ PromptBase] | [https://promptbase.com/ PromptBase] | ||
| Line 141: | Line 231: | ||
[https://medium.com/@maximilian.vogel/i-scanned-1000-prompts-so-you-dont-have-to-10-need-to-know-techniques-a77bcd074d97 Writing a prompt] | [https://medium.com/@maximilian.vogel/i-scanned-1000-prompts-so-you-dont-have-to-10-need-to-know-techniques-a77bcd074d97 Writing a prompt] | ||
== Prompting guides == | |||
[https://services.google.com/fh/files/misc/gemini_for_workspace_prompt_guide_october_2024_digital_final.pdf Gemini: Prompting guide 101] | [https://services.google.com/fh/files/misc/gemini_for_workspace_prompt_guide_october_2024_digital_final.pdf Gemini: Prompting guide 101] | ||
| Line 149: | Line 238: | ||
[https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview Anthropic: Prompt engineering interactive course] | [https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview Anthropic: Prompt engineering interactive course] | ||
[[Category:KC AI]] | |||
Latest revision as of 20:57, 29 October 2025
AI prompting is the practice of giving clear instructions or inputs to an AI system to get specific, useful responses.
Tips for a good prompt
Elaborate a clean and detailed prompt
Be specific about what you need. Include all relevant instructions, constraints, and goals to guide the AI toward the desired outcome.
Assign AI a Role
Specify the kind of expert or persona the AI should adopt (e.g., “Act as a marketing strategist”). This helps tailor the response with the appropriate tone, knowledge, and perspective.
Request
The specific action it must perform. Avoid requesting multiple different tasks at the same time.
Provide Context
The more context you give, the better the results. Include:
- Purpose: What is the goal of the task?
- Audience: Who is the output intended for?
- Relevant data: Share any necessary details or reference materials.
- Attachments: Upload documents or links if the task depends on them.
Add examples
Include samples of the tone, structure, or content style you’re aiming for. Examples help the AI better match your expectations.
Quality criteria
Which rules it must follow for a good result: clarity, coherence, etc
Specify the response format
Indicate how the response should be structured: bullet points, a report, an email draft, or code.
Self verification
Request the AI to review its own work before delivering it.
Iterative refinement
Instead of expecting a perfect answer on the first try, iterate:
- Ask follow-up questions
- Request improvements
- Adjust parameters or tone
This allows the AI to improve output progressively based on your feedback.
Break down complex tasks
Large or multi-layered tasks should be separated into smaller steps. For example:
- Brainstorm ideas
- Choose one option
- Expand and add details
- Refine tone and format
Step-by-step prompting reduces confusion and hallucination.
Provide constraints and boundaries
Defining what NOT to do is as important as defining what TO do. Examples:
- Word/character limits
- Required sources
- Style restrictions
- Forbidden themes
Clear boundaries improve precision.
Ask the AI to think step-by-step
Asking the model to explain or reason step-by-step (without revealing chain-of-thought) improves accuracy for:
- Calculations
- Logic
- Decision-making
- Prioritization
Use language like:
- “Explain your reasoning briefly.”
- “List your steps concisely.”
Ask for multiple alternatives
Instead of one answer, request:
- 3–5 options
- Pros/cons
- Variation in tone or complexity
This facilitates decision-making.
Reduce hallucinations
To minimize invented facts:
- Request “only verifiable information”
- Ask it to answer “Unknown” when uncertain
- Require confidence levels (High/Medium/Low)
Provide domain knowledge first
If accuracy relies on internal company data, policies, or context, share them before asking questions. This prevents generic responses.
Temperature of creativity (conceptual guidance)
Even if not controlling parameters directly, describe the desired creativity level:
- “Be very creative and speculative”
- “Be conservative and factual”
This impacts tone, risk, and inventiveness.
Ask for assumptions to be listed
Useful for planning:
- “List any assumptions you are making before producing the answer.”
This increases transparency and reduces hidden ambiguity.
Request edge cases or risks
For technical, product, or marketing prompts, ask:
- “Identify risks, limitations, or edge cases.”
This strengthens critical thinking and planning.
Ask the AI to ask YOU questions first
For incomplete tasks:
- “Before answering, ask 5 clarifying questions.”
Better inputs = better outputs.
Additional prompting patterns
Few-shot prompting
Provide several examples to teach style, tone, or structure. Useful when:
- Emulating a writing voice
- Producing domain-specific answers
Zero-shot prompting
Ask the AI to perform a task with no examples. Works well with:
- Simple instructions
- High-level tasks
COT (structured reasoning requests)
Asking the model to provide brief reasoning improves:
- Accuracy
- Decision clarity
- Analytical tasks
Style transfer prompting
Ask the model to rewrite content in a specific style, e.g.:
- “Rewrite formally”
- “Rewrite for teenagers”
Rewriting for different audiences
Useful for adapting:
- Complexity
- Vocabulary
- Tone
Prompt anti-patterns (Avoid)
- Vague goals (“help me with this”)
- Missing context (“write recommendations” without audience)
- Mixing unrelated tasks
- Oversized prompts without structure
- “Do everything for me” without constraints
Debugging prompts
If results are poor, try:
- Rewriting instructions more clearly
- Adding or removing examples
- Reducing creativity
- Clarifying constraints
- Requesting assumptions
Example prompts
Whenever there is a prompt that has worked for you, add it to a document in order to have it as a template.
Example #1
business email draft
You are a professional communications specialist.I need you to write a formal email to a potential client introducing our digital marketing agency and offering a free consultation.
Context:
The client is a small business owner in the retail industry.
Our agency specializes in social media marketing, SEO, and branding.
The goal is to build trust and schedule a short intro call.
Format:
Professional tone
Email structure: greeting, intro, value proposition, CTA, closing
Example of tone:
“We’re passionate about helping businesses grow online.”How else could you help with client outreach?
Content Idea Generator
Act as a senior content strategist.I need 10 blog post ideas for a wellness brand that sells organic teas and herbal supplements.
Audience: Health-conscious adults, 25-45, primarily in North America.
Context:
The brand tone is friendly, knowledgeable, and nature-focused.
SEO is important.
We want content that educates, builds trust, and supports sales.
Format:
List format
Include a short 1-2 sentence description per idea
Example style:
“5 Herbal Teas That Can Help You Sleep Better”
What other content formats do you suggest for this niche?
Example #2
Context and role
You take on the role of someone who makes clear comparisons between different options to help choose quickly and accurately. Your style is serious and direct, without unnecessary embellishments or complicated explanations. You write in continuous paragraphs, not in lists.
Query/Task
You need to prepare a complete comparison of the options provided by the user. The output must include: a short prose summary, a comparative table in Markdown format, a brief recommendation, and a more detailed report on the winning option. Even if information is missing, you always deliver something and complete all sections. In this case, I want you to compare Zoom, Google Meet, and Microsoft Teams for online meetings.
Specifications
When researching, you prioritize official pages (pricing websites, help centers, product documentation). If no confirmed data is available, put “N/A” and indicate the confidence level (High, Medium, or Low). If the user writes the word VERIFY, check all claims and include citations at the end. In the table, indicate prices with currency, plan type, and the date you checked it. If you find nothing official, leave N/A. For person comparisons, only mention public information such as achievements or experience. Always complete the work from start to finish.
Quality Criteria
The work is considered good if you do not invent anything, clearly mark unknown information as N/A, indicate confidence levels for key data, and present advantages and limitations in an easy-to-understand way. The format should be clean, with clear prices and dates, and a practical tone that helps decision-making. Avoid empty phrases or disguised advertising.
How the response should be
You respond in the user’s language (default: neutral English). Always follow this order:
- A single-paragraph summary of 4-6 sentences explaining the most important differences and which option fits best in each case.
- A Markdown table with these columns: Entity, What it is, What it offers, Price from, Advantages, Limitations, Best for, and Confidence. Each cell written in short sentences separated by semicolons.
- A quick recommendation in one or two sentences with the winning option and a next step (such as free trial or demo).
- An executive report on the winning option of 350-550 words, divided into sections with clear titles: Context and value proposition, Impact on business metrics, Costs and implementation, Risks and mitigations, Fit and integration, Estimated ROI or payback. Each section with two or three sentences in micro-paragraphs. Use bold for titles and key figures.
Verification
Before delivering, check that no data has been invented, N/A is used where information is missing, and confidence levels are indicated. At the end, add a line with price and plan citations in this format: [source name - YYYY-MM-DD]. If the user requested VERIFY, also include all other relevant citations.