Role Prompting & Chain of Thought
Learn more about this topic.
Putting on Hats: Role Prompting
One of the most powerful things you can do with AI is tell it who to be. This is called Role Prompting.
If you're asking for legal advice (even hypothetically), you wouldn't ask a chef. If you want a recipe, you wouldn't ask a lawyer. By telling the AI to "Act as a [Profession]", you instantly change the flavor of its response.
Showing the Work: Chain of Thought
Have you ever asked someone a complex math problem, and they just blurted out the wrong answer? If they had written down their steps, they might have caught their mistake. AI works the same way!
Chain of Thought is a fancy way of saying: "Ask the AI to think step-by-step."
Instead of: "How many tennis balls fit in a school bus?"
Try: "How many tennis balls fit in a school bus? Think through this step-by-step before giving me the final answer."
By forcing the AI to explain its reasoning, it breaks the problem down. It calculates the volume of a bus, the volume of a tennis ball, accounts for empty space, and then gives you the answer. The results are drastically more accurate.
Combining Them
You can combine these techniques for amazing results:
Want to practice what you learned?
Head over to our Free APIs section to test out your automation and API integration skills.
View Free APIs