GPT 開發者指南:常見的 GPT 指令及範例(修訂版)

OpenAI 推出 GPT Store 之後,GPT(Generative Pre-trained Transformer)已成為一項引人注目的技術,其應用範圍廣泛,影響深遠。GPT 不僅改變了我們與機器交流的方式,還為開發者提供了前所未有的靈活性和創新潛力。本文將探討19個常見的 GPT 指令,這些指令是任何希望充分利用這一技術的開發者和創作者必須熟悉的。從文字摘要到圖像生成,從數據解釋到用戶互動,我們將透過具體範例來展示這些指令的多樣應用和無限可能性。無論你是人工智能領域的新手還是資深專家,這篇文章都將為你開啟一扇洞悉 GPT 應用多樣性的大門。

雖然一般人只要與 GPT Builder 進行簡單的對話就可以輕鬆創建一個 GPT ,但這樣的 GPT 仍然是基於 ChatGPT 的通用模型,對於需要高度專業的工作,設計一系列精確並符合邏輯程序的 GPT Instructions 仍然是必要的。在不涉及 API 及特定知識庫的基礎上,無代碼的 GPT Instructions 若能充分應用 GPT-4 、 DALL-E 3 、 Code Interpreter 的能力,筆者認為足以完成 80% 以上的專業工作。這使得一般非技術背景的開發者也能透過 GPT 指令做出不輸技術開發者的 GPT 。這樣的 GPT 來自於開發者的想像力、創造力、與邏輯架構能力,而非特定程式語言的多年開發經驗。目前 GPT Instructions 的指令可容納 8000 個字元,也足以讓開發者做出極為精細的執行流程。

19個常見 GPT 指令說明

以下的指令可以以 ” – **指令名稱**: 指令說明 ” 的形式插入在你想要設計的關鍵流程中。請注意,指令說明盡可能具備明確的動作及順序,雖然不需要開發者具備程式設計技能,但是程式設計的思維是必要的。

  1. Output: 這是最基本的指令,指導 ChatGPT 提供一個回應或輸出。當您問一個問題或要求資訊時, ChatGPT 會使用 “Output” 指令來生成回應。
  2. Ask: 這個指令用於當 ChatGPT 需要從你那裡獲得更多資訊以更好地回答你的問題時。比如,如果你問一個開放式的問題,而 ChatGPT 需要更多具體的細節來提供一個準確的答案,就會使用 “Ask” 指令來請求這些資訊。
  3. DALL-E Image Generation: 當你要求創建一幅圖像時, ChatGPT 會使用 DALL-E 模塊來生成圖像。這通常需要你提供一個詳細的描述, ChatGPT 會根據這個描述來構造一個適合的圖像生成請求。
  4. Python Code Execution: 對於需要計算、數據分析或特定算法處理的請求, ChatGPT 會使用 Python 程式碼執行功能。這包括數學計算、數據分析、圖形生成等。
  5. Browser Research: 當需要最新或特定的資訊,如新聞、統計數據或特定網站的內容時, ChatGPT 會使用瀏覽器工具進行網上搜尋和資訊檢索。
  6. Chat Interaction: 對於一般的對話互動, ChatGPT 會使用聊天模式來與你進行互動,回答問題或進行討論。
  7. Summarization: 對長篇文章或文本進行摘要,提供精簡且含義完整的概述。
  8. Translation: 翻譯不同語言的文本,包括但不限於英語、中文、西班牙語、法語等。
  9. Data Interpretation: 對於提供的數據或統計資訊進行分析並提供解釋或洞察。
  10. Creative Writing: 創作故事、詩歌、劇本等各種文學形式的作品。
  11. Educational Explanation: 對於學術或教育相關的主題提供詳細的解釋或教學,幫助理解複雜的概念。
  12. Technical Support and Troubleshooting: 提供技術支持和故障排除建議,特別是對於常見的軟件和硬件問題。
  13. Health and Fitness Advice: 提供基於常見知識的健康和健身建議。
  14. Recipe and Cooking Suggestions: 提供食譜建議和烹飪技巧,幫助用戶探索不同的烹飪風格和食材。
  15. Travel Recommendations: 提供旅行建議,包括目的地選擇、規劃路線和旅遊小建議。
  16. Fashion and Style Advice: 根據當前的流行趨勢和個人風格,提供時尚和穿搭建議。
  17. Event Planning and Organization Tips: 對於活動規劃和組織,提供創意點子和實用建議。
  18. Legal Information: 提供關於法律主題的一般資訊和解釋。
  19. Philosophical Discussion: 參與哲學討論,探討不同的思想和理論。

2024/4/22 新增

  1. Text Analysis: 分析文本內容,識別情感、關鍵詞、主題等。
  2. Question Answering: 針對特定問題提供明確答案。
  3. Speech Recognition: 將語音轉換為文本。
  4. Image Description: 描述圖片中的內容。
  5. Sentiment Analysis: 識別文本中的情緒傾向。
  6. Auto Summarization: 生成文本的簡短摘要。
  7. Auto Tagging: 自動為文本或內容添加標籤。
  8. Customer Service: 提供客戶咨詢和問題解決支持。
  9. Market Analysis: 分析市場趨勢和消費者行為。
  10. Business Report Generation: 創建商業分析和報告。
  11. Academic Research: 協助進行學術研究,包括文獻搜尋和資料分析。
  12. Creative Suggestions: 提供創意和靈感。
  13. Psychological Counseling: 提供基本的心理健康建議和諮詢。
  14. Fitness Training Advice: 提供健身訓練和運動建議。
  15. Music Composition: 協助創作音樂和旋律。
  16. Programming Tutorial: 提供程式設計教學和指導。
  17. Historical Inquiry: 提供歷史事件和人物的資訊。
  18. Art Critique: 分析和評論藝術作品。
  19. Environmental Policy Advice: 提供環境保護政策和實踐的建議。
  20. Technology Trend Analysis: 分析科技產業的最新趨勢和發展。

實際範例

Output

  • Example 1: Provide a detailed explanation of how blockchain technology works.
  • Example 2: Explain the historical significance of the Renaissance period.
  • Example 3: Offer a comprehensive overview of the latest advancements in renewable energy sources.

Ask

  • Example 1: Request additional details about a user’s specific dietary restrictions to tailor a meal plan.
  • Example 2: Ask for clarification on a coding problem to provide more accurate programming advice.
  • Example 3: Inquire about a user’s travel preferences to recommend customized travel destinations.

DALL-E Image Generation

  • Example 1: Create an image of a futuristic cityscape at sunset, blending advanced technology with natural elements.
  • Example 2: Generate an illustration of a serene forest scene with fantasy creatures hidden among the trees.
  • Example 3: Produce a visual representation of an abstract concept, like the feeling of joy expressed through vibrant colors and dynamic shapes.

Python Code Execution

  • Example 1: Write a script to analyze and visualize a dataset of global temperatures over the past century.
  • Example 2: Develop a program to calculate the Fibonacci sequence up to the 100th term.
  • Example 3: Create a simple game, like tic-tac-toe or hangman, using Python.

Browser Research

  • Example 1: Research the latest trends in digital marketing strategies for 2024.
  • Example 2: Find recent studies on the effectiveness of different types of exercise on mental health.
  • Example 3: Gather information on the political climate in a specific country for a travel advisory.

Chat Interaction

  • Example 1: Engage in a conversation about the best practices for sustainable living.
  • Example 2: Discuss the pros and cons of various investment strategies for beginners.
  • Example 3: Offer support and advice on career development in the field of data science.

Summarization

  • Example 1: Summarize a lengthy research paper into key points for a quick review.
  • Example 2: Create a concise summary of a novel’s plot for educational purposes.
  • Example 3: Provide an executive summary of a business report for a quick decision-making process.

Translation

  • Example 1: Translate a web page from Spanish to English for broader accessibility.
  • Example 2: Convert a Chinese poem into English while retaining its poetic essence.
  • Example 3: Translate technical documentation from English to French for a multinational team.

Data Interpretation

  • Example 1: Analyze and interpret the results of a marketing campaign using sales data.
  • Example 2: Provide insights from a dataset of climate change statistics.
  • Example 3: Interpret a complex financial report for an investor presentation.

Creative Writing

  • Example 1: Write a short story set in a futuristic world.
  • Example 2: Compose a poem inspired by the theme of love and nature.
  • Example 3: Develop a script for an introductory video for a new product launch.

Educational Explanation

  • Example 1: Explain the theory of relativity in simple terms for high school students.
  • Example 2: Describe the process of photosynthesis for a biology class.
  • Example 3: Teach the basics of programming using Python to beginners.

Technical Support and Troubleshooting

  • Example 1: Guide someone through troubleshooting their computer’s networking issues.
  • Example 2: Provide step-by-step instructions to fix a software installation error.
  • Example 3: Explain how to recover lost data from a damaged hard drive.

Health and Fitness Advice

  • Example 1: Suggest a balanced diet plan for someone looking to improve their overall health.
  • Example 2: Provide a beginner’s workout routine for home-based exercises.
  • Example 3: Offer tips on managing stress through mindfulness and meditation techniques.

Recipe and Cooking Suggestions

  • Example 1: Share a recipe for a healthy vegetarian stir-fry.
  • Example 2: Give instructions on how to bake a chocolate cake from scratch.
  • Example 3: Suggest ways to use leftover chicken in creative and delicious dishes.

Travel Recommendations

  • Example 1: Recommend a travel itinerary for a week-long trip to Japan.
  • Example 2: Suggest must-see attractions and local eateries in Paris for first-time visitors.
  • Example 3: Offer tips on budget-friendly accommodations and transportation in New York City.

Fashion and Style Advice

  • Example 1: Suggest outfit ideas for a summer wedding.
  • Example 2: Provide tips on how to accessorize a little black dress for different occasions.
  • Example 3: Recommend wardrobe essentials for a minimalist, sustainable fashion style.

Event Planning and Organization Tips

  • Example 1: Outline a checklist for organizing a corporate conference.
  • Example 2: Provide creative ideas for a child’s birthday party.
  • Example 3: Suggest a timeline and key considerations for planning a wedding.

Legal Information

  • Example 1: Explain the basic steps involved in filing a trademark application.
  • Example 2: Describe tenant rights and responsibilities in a residential lease agreement.
  • Example 3: Provide an overview of the process for small claims court proceedings.

Philosophical Discussion

  • Example 1: Discuss the ethical implications of artificial intelligence in society.
  • Example 2: Explore the concepts of free will and determinism in philosophical thought.
  • Example 3: Analyze Plato’s theory of Forms in the context of modern philosophy.

Text Analysis

  • Example 1: Analyze the sentiment of customer reviews.
  • Example 2: Extract key phrases from a research article.
  • Example 3: Determine the main topics discussed in a blog post.

Question Answering

  • Example 1: What is the capital of France?
  • Example 2: How does photosynthesis work?
  • Example 3: Who won the Nobel Prize in Physics in 2021?

Speech Recognition

  • Example 1: Transcribe an audio file of a meeting.
  • Example 2: Convert a voice memo to text.
  • Example 3: Transcribe a recorded interview.

Image Description

  • Example 1: Describe what is happening in this photo.
  • Example 2: Generate a caption for an image.
  • Example 3: Identify the objects in a picture.

Sentiment Analysis

  • Example 1: Analyze the sentiment of tweets about a brand.
  • Example 2: Assess customer sentiment from product reviews.
  • Example 3: Evaluate the mood of blog comments.

Auto Summarization

  • Example 1: Summarize a long article into a paragraph.
  • Example 2: Create a summary of a podcast episode.
  • Example 3: Summarize the key points of a video resentation.

Auto Tagging

  • Example 1: Tag a collection of articles with relevant topics.
  • Example 2: Generate hashtags for social media posts.
  • Example 3: Tag images with relevant keywords.

Customer Service

  • Example 1: Respond to customer inquiries via chat.
  • Example 2: Provide solutions to common product issues.
  • Example 3: Handle customer complaints and feedback.

Market Analysis

  • Example 1: Analyze trends in consumer data.
  • Example 2: Forecast market demand for a new product.
  • Example 3: Evaluate competitive landscape in an industry.

Business Report Generation

  • Example 1: Generate a monthly performance report.
  • Example 2: Create a sales analysis report.
  • Example 3: Produce a financial health report for a company.

Academic Research

  • Example 1: Conduct literature review for a thesis.
  • Example 2: Analyze data for a scientific study.
  • Example 3: Write a research proposal.

Creative Suggestions

  • Example 1: Generate ideas for a new marketing campaign.
  • Example 2: Suggest themes for a photography project.
  • Example 3: Come up with innovative product ideas.

Psychological Counseling

  • Example 1: Discuss strategies for managing stress.
  • Example 2: Offer advice on coping with anxiety.
  • Example 3: Provide support for emotional well-being.

Fitness Training Advice

  • Example 1: Create a workout plan for weight loss.
  • Example 2: Suggest exercises for strength training.
  • Example 3: Offer tips for improving cardiovascular health.

Music Composition

  • Example 1: Compose a simple melody for a song.
  • Example 2: Generate background music for a video.
  • Example 3: Create a musical theme for a game.

Programming Tutorial

  • Example 1: Teach Python basics to beginners.
  • Example 2: Explain how to use APIs in web development.
  • Example 3: Guide through creating a mobile app.

Historical Inquiry

  • Example 1: Explain the causes of World War II.
  • Example 2: Describe the life of Cleopatra.
  • Example 3: Discuss the significance of the Renaissance.

Art Critique

  • Example 1: Analyze the painting style of Van Gogh.
  • Example 2: Critique a modern art exhibition.
  • Example 3: Discuss the impact of impressionism on modern art.

Environmental Policy Advice

  • Example 1: Suggest strategies for reducing carbon footprint.
  • Example 2: Discuss the effectiveness of renewable energy sources.
  • Example 3: Propose policies for wildlife conservation.

Technology Trend Analysis

  • Example 1: Discuss the future of artificial intelligence.
  • Example 2: Analyze the impact of blockchain technology.
  • Example 3: Evaluate the growth of the Internet of Things (IoT).

結語

隨著我們對這些 GPT 指令及其範例的探討告一段落,可以清楚地看到,GPT技術不僅僅是一種工具,它是一個開啟創新和探索的平台。這些指令展示了 GPT 在不同領域和應用中的廣泛適用性,為開發者提供了實現創造性解決方案的無限可能性。作為開發者或創作者,了解並掌握這些指令的應用,將使你能夠更加有效地利用 GPT ,並將其潛力轉化為實際的創新成果。隨著技術的不斷演進,將會有更多激動人心的開發和應用出現,進一步推動人工智能領域的發展。

附錄:GPT 指令結構範例

筆者建議在 GPT Instructions 中使用 Markdown 格式讓 ChatGPT 更好理解你的指令,並在關鍵步驟中採用 **動作** 強調這是必須執行的動作。記住,指令結構請使用 英文 ,GPT Instructions 無法有效理解中文描述。

關於 Markdown 的使用方法,也可以參考 這篇 文章。

# GPT 指令結構範例

## 指令概述
- **指令類型**: [指令的類型,如 Output, Ask, DALL-E Image Generation, 等]
- **目的**: [指令的主要目的或目標]
- **應用場景**: [指令適用的具體情境或場景]

## 指令細節
- **步驟 1**: [第一步的具體操作]
  - **細節**: [步驟 1 的詳細描述]
  - **預期結果**: [完成步驟 1 應達到的結果]
- **步驟 2**: [第二步的具體操作]
  - **細節**: [步驟 2 的詳細描述]
  - **預期結果**: [完成步驟 2 應達到的結果]
- **步驟 3**: [第三步的具體操作]
  - **細節**: [步驟 3 的詳細描述]
  - **預期結果**: [完成步驟 3 應達到的結果]

## 輸出標準
- **品質指標**: [輸出內容應達到的品質標準]
- **格式要求**: [輸出內容的格式規範]
- **時效性**: [輸出內容應在的時間範圍內完成]

## 例外處理
- **情境 A**: [例外情境 A 的描述]
  - **處理方法**: [針對情境 A 的處理方法]
- **情境 B**: [例外情境 B 的描述]
  - **處理方法**: [針對情境 B 的處理方法]

## 註解
- **額外說明**: [對整個指令或特定步驟的額外說明或補充]
- **參考資料**: [提供相關參考資料或資源連結]

GPT 指令太複雜? 只想讓 GPT 幫忙完成工作不想自己寫 GPT 指令?快試用 Leggie 團隊開發的 Perfect GPT Instruction Creator 吧!只要輸入出完整的工作流程及步驟,讓我們的 GPT 幫你快速創造為你量身訂做的完美 GPT !