AI Prompt Writing Guide: Four Key Elements
From Wikiprompt, the free prompt encyclopedia
AI Prompt Writing Guide: Four Key Elements A structured guide teaching the four key elements of writing effective AI prompts: Instruction, Context, Output Format, and Role, with multiple reusable examples.
Prompt ContentSave
🌐
What is a Prompt? A prompt is a description of what you want AI to do and how. A good prompt consists of four key elements:
1. Instruction: What you want AI to do.
2. Context: Background information AI needs to complete the task.
3. Output Format: The form in which you want the result.
4. Role: The identity AI should assume to execute the task.
Example of a good instruction:
- Write a 1000-word article discussing the application of AI in medical diagnosis, aimed at middle school students, simple and easy to understand, popular science style.
- Write a 3D Snake game that can run on a webpage, requiring smooth graphics and keyboard support.
- Give 3 creative, memorable, and theme-highlighting names for my AI writing product.
Example of providing context:
- 'The following is the company's sales data for the past three years, please analyze and give suggestions to improve sales.'
- 'I am writing a paper on artificial intelligence, this is my draft, please help me improve it and add suitable academic references.'
Example of specifying output format:
- 'Please display the following information in a table, with columns for date, event, and impact.'
- 'Generate a summary of about 500 words, divided into three parts: introduction, main points, and conclusion.'
- 'Please output in Markdown format, using level-one headings, level-two headings, and ordered lists.'
Example of setting a role:
- 'You are an experienced software engineer, help me review and optimize the following code.'
- 'You are a psychological counselor, please help me analyze the following problem in a gentle, empathetic tone.'
- 'You are a Socratic mentor, please help me understand the concept of artificial intelligence through heuristic questioning.'
Complete example combining all elements:
'You are a science writer skilled at explaining technology in plain language (Role). Please combine the abstracts of the two academic papers provided below (Context), write a summary article within 500 words suitable for middle school students (Output Format). The article should be easy to understand, with at least two specific examples to illustrate how AI improves the efficiency of medical diagnosis (Instruction).'
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with education. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: education Prompts
- Source: https://x.com/dotey/status/1903833401582346601
Talk
0 comments