📌 Quick Context:

Want AI to provide smarter, more relevant answers instead of generic responses? Use the “If-Then” structure in your prompts. This helps AI evaluate conditions and give context-aware suggestions tailored to your needs.

How to Do It in 3 Steps:

🔹 Step 1: Define the Condition ("If")

Clearly specify the situation or requirement that should guide AI’s response.

❝

Example:
👉 If I have a budget of $500 for travel…
👉 If I’m a beginner in coding…

🔹 Step 2: Specify the Outcome ("Then")

Tell AI exactly what you want it to do when the condition is met.

❝

Example:
👉 If I have a budget of $500 for travel, then suggest destinations that fit within that budget.
👉 If I’m a beginner in coding, then recommend an easy language to start with and a beginner-friendly project.

🔹 Step 3: Add Multiple Conditions for Complex Logic

For more nuanced responses, add multiple conditions.

❝

Example:
👉 If I have a budget of $500 for travel AND can only travel in October, then suggest destinations that fit within that budget and time constraint.
👉 If I’m a beginner in coding AND I’m passionate about bird watching, then recommend an easy language to start with and a beginner-friendly project.

More Examples of If-Then Prompts

🧳 Travel & Leisure

👉 If I have a budget of $500 for a trip, then suggest destinations that fit within that budget.

👉 If I want to visit Europe but avoid tourist crowds, then recommend underrated cities.

🧑‍🏫 Learning & Education

👉 If I’m a complete beginner in coding, then recommend an easy language to start with and a beginner-friendly project.

👉 If I want to learn history in an engaging way, then suggest interactive methods like games or documentaries.

📈 Career & Productivity

👉 If I only have 15 minutes to improve my productivity, then suggest a quick technique I can apply right now.

👉 If I want to switch careers to data science, then outline the first three steps I should take.

📺 Entertainment & Hobbies

👉 If I love cyberpunk movies, then recommend books with a similar theme.

👉 If I enjoy strategy board games, then suggest a new one based on my interest in Risk and Catan.

🏃 Health & Fitness

👉 If I only have 10 minutes to exercise, then suggest an effective workout routine.

👉 If I need a high-protein meal under 500 calories, then give me a simple recipe.

🧑‍💻 Technology & AI

👉 If I want to automate boring tasks, then suggest beginner-friendly AI tools I can use.

👉 If I’m new to prompt engineering, then teach me one simple technique to improve my prompts.

Try It Yourself!

Use this format in your next chatbot query: "If I [condition], then [desired response]."

Happy prompting!

Reply

Avatar

or to participate

Avatar

Peter Fendrich1 year ago

Do you think we get better results by including the words "if" and "then"? Compared to, for example, "I have a budget of $500 for a trip. Suggest destinations that fit within that budget" The meaning becomes different when you make the prompt a condition. Thanks for an interesting idea!

Avatar

Nick WentzAuthor1 year ago

Great question! Using “if” and “then” can help structure a prompt more logically, especially for conditional reasoning. However, direct statements like “I have a $500 budget for a trip. Suggest destinations.” are often just as effective since AI typically understands the implicit condition. That said, in my experience, for more complex prompts, explicitly framing conditions with “if” and “then” can guide the AI toward more precise responses.

Avatar

Nick WentzAuthor1 year ago

Also, apologies for the delayed response. Thanks for the thoughtful question/comment!