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:
- Boil water in a kettle.
- While waiting for the water to boil, get a mug and place a tea bag in it.
- 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.
- Let the tea bag steep in the hot water for 3-5 minutes. This will allow the flavors to infuse.
- Remove the tea bag from the mug and discard.
- Add milk and sugar to taste. Start with small amounts and adjust to your preference.
- Stir to combine the milk and sugar with the tea.
- Enjoy drinking the hot cup of tea. Be careful not to burn your mouth as you sip.
API request
pythonimport 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)