Lesson 20 of 32 · Part One, the principles

The Strategic Use of Temperature

Some jobs have one right answer and some have a hundred. Temperature is the name for how adventurous the machine is allowed to be: low heat keeps it literal and repeatable, which is what a price board or a factual summary needs; high heat makes it reach for the unlikely word, which is where fresh ideas come from. In the apps most people use there is no dial to move, so you set the heat with your words - "be precise, use only what I gave you" for the girder, "be wild, surprise me" for the blade.

Reach for it whenWhen the answer you got was the wrong temperature rather than the wrong answer - arithmetic that wandered off your own figures, or a brainstorm that returned the same five safe ideas everybody has.

How to use The Strategic Use of Temperature in Claude

Give the heat its own tag at the top and the rest of the prompt inherits it: <heat>low - use only the figures in <prices>, invent nothing</heat> reads as a rule rather than a hope. That tagging is what makes the two-flames example work properly here, because each part can carry its own setting and Claude can be told in as many words not to let one leak into the other. For work that must stay cool across many chats - your rate card, your uploaded files - put the instruction in a Project, so "stick to the files I have given you" is standing policy rather than something you remember to type.

  • Give the heat its own tag so it governs the whole prompt.
  • Tag each half separately when one prompt needs two heats.
  • Say silliness is allowed; otherwise "wild" stays tasteful.

From GenAI for Everyone: Prompt Engineering Handbook, First Edition 2025, by Raja Rajeshwari Seshadri and Shreeram Iyer.

Give the heat its own tag at the top and the rest of the prompt inherits it: <heat>low - use only the figures in <prices>, invent nothing</heat> reads as a rule rather than a hope. That tagging is what makes the two-flames example work properly here, because each part can carry its own setting and Claude can be told in as many words not to let one leak into the other. For work that must stay cool across many chats - your rate card, your uploaded files - put the instruction in a Project, so "stick to the files I have given you" is standing policy rather than something you remember to type.

From the book The Claude app has no temperature slider, so set the heat with words such as "be precise" or "be playful". A Project with standing instructions like "Stick to the files I upload" keeps factual work cool. Developers using Anthropic's API can set temperature directly.
Worth knowingThere is no temperature slider in the Claude app. Anthropic's API has the setting, where a developer passes a number with the request, but in the app the wording is the whole mechanism. Two habits of this model matter more than the missing dial. It is literal and tidy by default, so "be wild" produces ideas that are wild within good taste - if you want genuinely odd, say that silliness is allowed and that you would rather have three duds than twelve sensible suggestions. And it is agreeable: tell it to be precise and it will adopt a precise tone whether or not the arithmetic underneath is right. Ask for the working, then check it.
  • Give the heat its own tag so it governs the whole prompt.
  • Tag each half separately when one prompt needs two heats.
  • Say silliness is allowed; otherwise "wild" stays tasteful.
  • A precise tone is not a correct sum - ask for the working.
  • Keep "use only my files" in the Project's standing instructions.
Low Heat: The Exact Price Board

Instead of

Make a price list for my vegetables.

Claude version

<heat>Low. Be literal. Work only from the figures inside <rates>. Invent nothing, estimate nothing, and if something is missing say so rather than supplying a plausible number.</heat>

<rates>
Tomato - ₹40 per kg
Brinjal - ₹50 per kg
Onion - ₹35 per kg
Methi - ₹20 per bunch
Spinach - ₹15 per bunch
</rates>

<stall>Organic produce, Sunday weekly market, Nashik</stall>

<format>A single board, readable from several feet away. For anything sold by weight, show the kilo, the half and the quarter.</format>

<task>Build the board. Show each division as a line of working before the table so I can check it myself. If one of my five prices divides into an awkward figure, flag it and leave it exact - do not round on your own authority.</task>
Open Claude 742 characters

Then loop it

  1. Round the 250 g prices to the nearest ₹5.
  2. Add the Marathi name under each vegetable.

Why it worksWords such as "be precise" and "use only the numbers I give" turn the heat down, which is right when there is only one correct answer.

High Heat: Games That Feel Like Play

Instead of

Give me practice ideas for my cricket team.

Claude version

<heat>High. Be inventive, and let the inventions be silly. Coaching-manual drills are not wanted - I already own those. I would rather have three duds among twelve originals than twelve sensible suggestions.</heat>

<team>Girls' cricket, Indore, 13 to 16 years old. Practice 5 to 7 am. Thoroughly bored.</team>

<kit>Balls, cones, stumps. Nothing else is available to us.</kit>

<must_hold>Twelve games. A funny name each. At least three built on music, a story or a team rivalry. All of them safe for teenagers on a cold morning ground.</must_hold>

<task>Invent the twelve. One line of rules and one line naming the hidden skill for each. Then name the three you consider your weakest inventions and say why - I would rather you admit a dud than pad the list to reach twelve.</task>
Open Claude 784 characters

Then loop it

  1. Games 2, 6 and 11 are fun. Make 11 even wilder.
  2. Now be exact and practical: turn the best five into a weekly plan, one game a day, with timings in minutes.

Why it works"Wild", "surprise me" and "funny name" turn the heat up for variety, while the safety and kit limits keep the fire useful.

Two Flames in One Prompt

Instead of

Tell me about voting and make a poster.

Claude version

<source_text>
[Paste here the text you copied from the official voter services website. The long reference material goes first; my instruction comes at the end.]
</source_text>

<part_one heat="low">
From <source_text> and nothing else, list the steps to check whether my name is on the voter list. Quote the line each step rests on. Where something I would expect is absent, write "not mentioned" - do not complete it from memory.
</part_one>

<part_two heat="high">
Ten slogans for a first-time-voter poster at a college in Lucknow. Hindi and English mixed, loud, memorable. Nothing naming a party, a candidate or a leader.
</part_two>

<task>Answer both parts under separate headings and keep them in their lanes: nothing invented in part one, nothing cautious in part two. Afterwards, tell me in one line which part you found harder to keep cool or hot, and where you were tempted to drift.</task>
Open Claude 901 characters

Then loop it

  1. Part 1 is clear. Make it a numbered checklist I can follow on my phone.
  2. Slogans 3 and 8 are good. Give me 10 more, even bolder, in that style.

Why it worksOne prompt can hold two temperatures: cool, exact words for the factual steps and warm, playful words for the slogans.

Questions

What is The Strategic Use of Temperature in prompt engineering?

Some jobs have one right answer and some have a hundred. Temperature is the name for how adventurous the machine is allowed to be: low heat keeps it literal and repeatable, which is what a price board or a factual summary needs; high heat makes it reach for the unlikely word, which is where fresh ideas come from. In the apps most people use there is no dial to move, so you set the heat with your words - "be precise, use only what I gave you" for the girder, "be wild, surprise me" for the blade.

When should I use this technique?

When the answer you got was the wrong temperature rather than the wrong answer - arithmetic that wandered off your own figures, or a brainstorm that returned the same five safe ideas everybody has.

How do I apply it in Claude?

Give the heat its own tag at the top and the rest of the prompt inherits it: <heat>low - use only the figures in <prices>, invent nothing</heat> reads as a rule rather than a hope. That tagging is what makes the two-flames example work properly here, because each part can carry its own setting and Claude can be told in as many words not to let one leak into the other. For work that must stay cool across many chats - your rate card, your uploaded files - put the instruction in a Project, so "stick to the files I have given you" is standing policy rather than something you remember to type.

What are the limits of this technique in Claude?

There is no temperature slider in the Claude app. Anthropic's API has the setting, where a developer passes a number with the request, but in the app the wording is the whole mechanism. Two habits of this model matter more than the missing dial. It is literal and tidy by default, so "be wild" produces ideas that are wild within good taste - if you want genuinely odd, say that silliness is allowed and that you would rather have three duds than twelve sensible suggestions. And it is agreeable: tell it to be precise and it will adopt a precise tone whether or not the arithmetic underneath is right. Ask for the working, then check it.

How do I improve the answer after the first try?

After the first answer, ask yourself: was this a girder job or a blade job? If you needed facts and the answer wandered, add: "Be precise. Use only what I gave you. If unsure, say so." If you needed ideas and got dull, safe ones, add: "Be bolder. Give ideas nobody else would think of." You can change the heat within the same chat - wild ideas first, then "Now pick the best three and be exact." Keep two saved openers, one cool and one hot, and reuse them.

Loop it

After the first answer, ask yourself: was this a girder job or a blade job? If you needed facts and the answer wandered, add: "Be precise. Use only what I gave you. If unsure, say so." If you needed ideas and got dull, safe ones, add: "Be bolder. Give ideas nobody else would think of." You can change the heat within the same chat - wild ideas first, then "Now pick the best three and be exact." Keep two saved openers, one cool and one hot, and reuse them.

This lesson on the other tools

The technique is the same; the way you write it is not. ChatGPT, Gemini.Perplexity.