Best Practices for Writing Effective Prompts for Custom GPTs
- July 9, 2024
Crafting effective prompts for Custom GPTs is an art that can significantly enhance the performance and accuracy of the responses you receive. By utilizing specific techniques and understanding the prompts, you can better guide your AI to deliver the exact information or assistance you need. This blog post will explore the types of prompts such as system and user prompts to provide best practices for writing effective prompts for Custom GPTs. Additionally, we will discuss why CustomGPT.ai is an excellent choice for creating responsive and tailored AI interactions.
Table of Contents
What is a Prompt?
A prompt is a directive or input given to a Custom GPT, to elicit a specific response or behavior. It can be a question, instruction, or statement that sets the context and guides the AI on what kind of response is desired. Effective prompts provide clear, concise, and specific instructions to ensure the AI understands the user’s intent and generates accurate and relevant outputs. By writing well-structured prompts, users can enhance the chatbot’s ability to deliver precise and useful information.
Types of Prompts
Let’s discuss first the types of prompts:
System Prompts
System prompts are instructions given to the AI to set the context or define the behavior of the model before any user interaction begins. These prompts can be thought of as “behind-the-scenes” directives that shape how the AI understands and processes subsequent inputs.
Examples:
- Define Tone: “You are a professional customer service representative. Answer all questions politely and professionally.”
- Set Context: “You are a history expert specializing in ancient civilizations. Provide detailed and accurate historical information.”
User Prompts
User prompts are the actual questions or tasks given to the AI by the end-user. These prompts can vary widely in scope and complexity, depending on the user’s needs.
Examples:
- Simple Request: “List the main causes of the American Civil War.”
- Complex Task: “Draft a 500-word article on the impact of climate change on coastal cities, including recent data and projections.”
Best Practices for Writing Effective Prompts for Custom GPTs
Following are the advanced techniques for writing effective prompts for Custom GPTs:
Be Specific with Your Prompts
Technique: Detail Your Request
Providing specific details helps the AI understand exactly what you’re asking for, which reduces the likelihood of receiving generic or irrelevant responses.
Examples:
- Instead of: “Create a list of activities for young kids.”
- Do This: “Create a list of outdoor activities for six kids ages 5–8. The kids can access a large, flat yard, a kiddie pool, and a nature trail nearby.”
Provide Sufficient Context
Technique: Background Information
Include relevant background information to help the AI generate a response that aligns with your specific needs.
Examples:
- Instead of:“Write an outline for a report on improving access to healthcare.”
- Do This: “I work for a nonprofit that helps improve access to healthcare in rural areas. I am working on a report that describes what we do and why it’s important. The report will be sent to local government leaders. You can visit our website at [example-site.com] for more context. Draft an outline of the report.”
Give ChatGPT a Persona
Technique: Role-Playing
Specify a persona for the AI to adopt, which helps in tailoring responses to match a particular perspective or style.
Example:
- You’re an HR manager in charge of employee communications. Please write an internal memo explaining that the company is moving offices at the end of the year.
Tell ChatGPT to Emulate a Particular Style
Technique: Style Emulation
Ask ChatGPT to emulate a specific style, person, or brand to match your desired tone and voice.
Examples:
- Create a 300-word description of our company in the style of a Wikipedia page. Use this collateral for details on the company’s history and services.
Specify the Format and Length of the Response
Technique: Clear Instructions on Output
Directly specify the format and length of the response to get outputs that meet your exact needs.
Examples:
- Instead of: “Write a list of FAQs for a doggy daycare.”
- Do This:“Write a list of 12 FAQs for a doggy daycare website. Provide only the questions; we’ll add the answers later.”
Write Concise Prompts
Technique: Avoid Overloading with Information
Be succinct to avoid overwhelming the AI with unnecessary details, which can detract from the relevance of the response.
Examples:
- Instead of:“Write a landing page promoting our summer sale. We have sales four times per year, and we always advertise with our website, social media, and direct mail campaigns. This landing page will go live on June 20, and everything is 20 percent off July 1–4 for the sale.”
- Do This:“Write a landing page promoting our summer sale. Everything is 20 percent off July 1–4. We only have sales four times per year, so we want to highlight that.”
Tell ChatGPT What You Don’t Want
Technique: Exclude Specific Elements
Specify what should be avoided in the response to refine the output further.
Example:
- Create a mission statement for a new sustainable clothing brand targeted at Gen Z customers. Don’t use clichés like excessive emojis or claims to ‘save the planet.’
Preserve Context with Knowledge Sources and Instructions
Technique: Ground prompts in approved context
For CustomGPT.ai agents, preserve context by uploading the source material the agent should use, then writing instructions that define the audience, scope, tone, and fallback behavior. Use follow-up prompts to point the agent back to the relevant source when an answer needs more detail.
Example:
- For our onboarding assistant, answer using only the uploaded onboarding guide. If the answer is not in the guide, say “Not found in the current source” and ask which document to check next.
Effective Follow-Up Techniques
Technique: Clarify and Expand
Use follow-up questions to clarify responses, delve deeper, or explore different perspectives.
Examples:
- After receiving an answer: “Where can I learn more about [topic]? Can you persuasively summarize that?”
- After creative content: “How can we reformat this piece into other types of content? Write a social post to promote this content.”
Use Action Words
Technique: Direct Instructions
Utilize action verbs to make your prompts more straightforward and clear.
Examples:
- Instead of: “Would you be able to explain this JavaScript function?”
- Do This: “Explain how this JavaScript function works.”
Provide Examples
Technique: Use Reference Examples
Include examples to guide the AI in generating content that meets your expectations.
Example:
- Write three subject lines for an email announcing our new business intelligence features. We want to focus on how the new features will help teams make more data-driven decisions. Here’s an example to use as inspiration: ‘Say goodbye to guesswork with new BI features.’
Use Chained Prompting
Technique: Break Down Complex Tasks
Divide complex tasks into smaller, sequential steps to ensure focused and relevant responses.
Examples:
- Start with a prompt like this: “I am writing a business plan for a flower shop. I will ask you to create the business plan step by step. Here is the first step: Create an outline of what the business plan should include.”
- Follow-up: “After you get a response, ask ChatGPT to draft the first section of the business plan. Tell ChatGPT which details to include or exclude.”
Writing Effective Prompts for CustomGPT.ai
CustomGPT.ai can turn source files and persona instructions into a grounded agent workflow. The sections below show how uploaded instructions, source content, and persona rules support more consistent chatbot behavior.
Uploading Custom Instruction Files
CustomGPT.ai allows you to upload custom instruction files that provide detailed guidance on how the AI should behave and respond. This feature ensures that the AI aligns closely with your specific requirements and context, enhancing the relevance and accuracy of its responses.
Steps to Upload Custom Instruction Files
Following are the steps to upload a file to CustomGPT.ai:
On your CustomGPT.ai dashboard, click the “Create Project” button at the top right.
Click on the section that says “Drop files here or click upload” to select and upload your files. You can upload multiple files at once, including 1400+ popular formats like PDF, Microsoft Office files, Google Docs, and text files.
Click the “Data” button to confirm the addition.
In the “Manage Files” tab, you can view and delete the files you have uploaded within the CustomGPT.ai dashboard. To manage files, click the “Manage Files” button.
Customer Persona Feature
CustomGPT.ai’s customer persona feature allows you to define specific personas for the AI to adopt, ensuring that responses are tailored to match particular perspectives or styles. This is especially useful for businesses that need AI to interact with users in a specific manner, such as a customer service representative or a marketing specialist.
Efficiency and Precision
With uploaded instructions, approved source files, and persona rules, CustomGPT.ai helps teams keep answers grounded in their own content. The strongest results come from pairing clear behavior rules with source-specific context, then testing the agent against real user questions before launch.
Conclusion
Effective prompts for Custom GPTs combine specificity, context, persona, format, and clear fallback rules. Use the examples above to define what the agent should do, what it should avoid, and when it should ask for more context. In CustomGPT.ai, pair those instructions with your approved sources so answers stay grounded as your content changes.