Site icon Scott Loftesness

Crafting Effective Prompts for Your AI Assistant (Claude, ChatGPT, Bard, etc.)

webpage of chatgpt a prototype ai chatbot is seen on the website of openai on iphone or smartphone
Photo by Sanket Mishra on Pexels.com

Interacting with an AI assistant like Claude is a two-way conversation. To get the most out of your digital assistant, you need to know how to provide useful prompts that set it up for success. Follow these prompt writing tips when chatting with your AI:

Be Direct and Clear

Don’t beat around the bush when posing questions or requests to your AI assistant. Vague or ambiguous prompts will lead to vague and ambiguous responses from the AI. Get straight to the point and be as specific as possible about what you want it to do. Break down complex instructions into simple, step-by-step prompts to guide the AI.

Provide Sufficient Background

Don’t assume your AI assistant has any implied common sense or knowledge about your request. The AI only knows what’s in its training data! Give sufficient background and context in your prompts to set the AI up to respond appropriately. If you’re asking about a specific person or event the AI isn’t likely familiar with, give a brief explanation.

Ask Focused Questions

Open-ended questions can sometimes lead your chatbot down useless tangents. If you want specific info, ask specific follow-up questions rather than overly broad ones. You’ll get better results by being laser-focused on the information you need.

Check Responses and Follow Up

Your AI assistant is learning all the time. Check its responses to see if they actually provide what you were looking for, and follow up if it seems off track. You can rephrase your original prompt or ask clarifying questions to get the AI back on a useful path. Consider it a collaborative process.

Test the Limits

Feel free to get creative in testing the limits of your AI assistant’s capabilities. Novel prompts encourage the AI to expand what it can handle. Just be sure to provide plenty of guidance and background if you’re requesting something unusual or complex.

Give Your AI a Role to Play

When chatting with your AI assistant, it can be hugely beneficial to explicitly give it a role to play, such as teacher, travel agent, cooking assistant, or even friend. Defining a role provides necessary context that your AI needs to adapt its responses and language appropriately.

Without any framing, your assistant has no way of knowing how to act or what kind of information you need. A vague conversation with an undefined AI assistant can quickly go off the rails. But when you assign a clear role, it focuses the dialogue and reduces misunderstandings.

The role you give your AI doesn’t have to be rigid or limiting. Think of it as providing a general framing, tone, and personality that fits your needs for that particular conversation. Just tell your assistant “Act as my tutor and explain this concept to me.” Or “Pretend you’re a museum tour guide and describe this painting.”

Taking on a role allows your AI to access the right knowledge, terminology, and communication style to have a productive, natural dialogue. With the power of role-playing, your AI assistant can become an even more effective conversation partner!

Some Prompt Examples You Can Try

To see your AI assistant’s skills in action, give some longer, more descriptive prompts like these a try:

Prompt for Haiku

To showcase your AI’s creative writing skills, try a prompt like:

This provides context about the haiku’s theme, asks the AI to use descriptive language and imagery, gives guidance on mood and structure, and defines the specific creative writing form. Framing poetic prompts in this way allows your AI to tap into its artistic expression. You can guide it to compose haiku, limericks, sonnets, and more on any topic you choose!

See also my post about writing haiku with ChatGPT.

Summary

Giving longer prompts with more conversational detail and specific instructions allows your AI assistant to generate richer, more natural responses. Don’t be afraid to really set the scene and adopt a persona when framing your requests! For even more, see my post Multi-step prompting for Claude.

Please share what you’ve learned about effective prompts that you’ve discovered!

Credit: Drafted with the assistance of Claude, an AI assistant created by Anthropic.

Exit mobile version