Back

Direction decoder

Transform natural language into step-by-step directions.

System
Your task is to take the provided natural language description of a process or task and transform it into clear, concise step-by-step directions that are logical, sequential, and easy to follow. Use imperative language and begin each step with an action verb. Provide necessary details and explanations to ensure the reader can complete the task successfully. If the original description is unclear, ambiguous, or lacks sufficient information, ask for clarification or additional details.
user
To make a cup of tea, start by boiling some water in a kettle. While the water is heating up, get a mug and put a tea bag in it. Once the water is boiling, carefully pour it into the mug, over the tea bag. Let the tea steep for a few minutes, depending on how strong you like it. After steeping, remove the tea bag and add milk and sugar to taste. Stir everything together and enjoy your hot cup of tea.

Here are step-by-step directions for making a cup of tea:

  1. Boil water in a kettle.
  2. While waiting for the water to boil, get a mug and place a tea bag in it.
  3. Once the water is boiling, pour the water from the kettle into the mug over the tea bag. Fill the mug most of the way.
  4. Let the tea bag steep in the hot water for 3-5 minutes. This will allow the flavors to infuse.
  5. Remove the tea bag from the mug and discard.
  6. Add milk and sugar to taste. Start with small amounts and adjust to your preference.
  7. Stir to combine the milk and sugar with the tea.
  8. Enjoy drinking the hot cup of tea. Be careful not to burn your mouth as you sip.

Here are the step-by-step instructions for making a cup of tea:

  1. Fill a kettle with water and place it on the stove to boil.
  2. Get a mug and place a tea bag inside it.
  3. Once the water boils, carefully pour it into the mug over the tea bag.
  4. Allow the tea to steep for 2-5 minutes, depending on your desired strength.
  5. Remove the tea bag from the mug.
  6. Add milk and sugar to taste.
  7. Stir the tea thoroughly to combine the ingredients.
  8. Enjoy your freshly brewed hot cup of tea.

Here are clear, step-by-step instructions for making a cup of tea:

  1. Fill a kettle with cold water and heat it to boiling.

  2. Select a mug of your desired size and place a tea bag inside the mug.

  3. Once the water reaches a rolling boil, carefully pour the hot water into the mug, filling it to your preferred level.

  4. Allow the tea to steep for 3-5 minutes, depending on the desired strength and the type of tea used. Refer to the tea packaging for specific steeping times.

  5. Using a spoon, gently press the tea bag against the side of the mug to extract any remaining flavor.

  6. Remove the tea bag from the mug and discard it.

  7. If desired, add milk to the tea. The amount of milk can be adjusted based on personal preference.

  8. If you prefer sweetened tea, add sugar or your preferred sweetener to taste. Start with a small amount and gradually add more until the desired sweetness is achieved.

  9. Using a spoon, stir the tea well to combine the milk and sweetener evenly.

  10. Allow the tea to cool slightly until it reaches a comfortable drinking temperature.

Your hot cup of tea is now ready to be enjoyed!

API request

python
import anthropic client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY") api_key="my_api_key", ) message = client.messages.create( model="claude-3-opus-20240229", max_tokens=2000, temperature=0, system="Your task is to take the provided natural language description of a process or task and transform it into clear, concise step-by-step directions that are logical, sequential, and easy to follow. Use imperative language and begin each step with an action verb. Provide necessary details and explanations to ensure the reader can complete the task successfully. If the original description is unclear, ambiguous, or lacks sufficient information, ask for clarification or additional details.", messages=[{"role":"user","content":"To make a cup of tea, start by boiling some water in a kettle. While the water is heating up, get a mug and put a tea bag in it. Once the water is boiling, carefully pour it into the mug, over the tea bag. Let the tea steep for a few minutes, depending on how strong you like it. After steeping, remove the tea bag and add milk and sugar to taste. Stir everything together and enjoy your hot cup of tea."}] ) print(message.content)
typescript
import Anthropic from "@anthropic-ai/sdk"; const anthropic = new Anthropic({ apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"] }); const msg = await anthropic.messages.create({ model: "claude-3-opus-20240229", max_tokens: 2000, temperature: 0, system: "Your task is to take the provided natural language description of a process or task and transform it into clear, concise step-by-step directions that are logical, sequential, and easy to follow. Use imperative language and begin each step with an action verb. Provide necessary details and explanations to ensure the reader can complete the task successfully. If the original description is unclear, ambiguous, or lacks sufficient information, ask for clarification or additional details.", messages: [{"role":"user","content":"To make a cup of tea, start by boiling some water in a kettle. While the water is heating up, get a mug and put a tea bag in it. Once the water is boiling, carefully pour it into the mug, over the tea bag. Let the tea steep for a few minutes, depending on how strong you like it. After steeping, remove the tea bag and add milk and sugar to taste. Stir everything together and enjoy your hot cup of tea."}] }); console.log(msg);