MulaiMulai sekarang secara gratis

Text rewriting with Claude

The engineering team for Skybound Legends just dropped ultra-technical notes on the initial performance of the game the day after launching the new version. You’re the marketing manager and must rewrite this jargon into friendly copy for the game’s newsletter update.

The anthropic library, client and technical_text string are preloaded.

Latihan ini adalah bagian dari kursus

Introduction to Claude Models

Lihat Kursus

Petunjuk latihan

  • Set the system message to establish a friendly, customer-focused marketing tone that emphasizes benefits over technical features.
  • Build a rewriting prompt that explicitly asks to convert technical language while emphasizing customer value propositions.
  • Set max_tokens to accommodate a complete rewrite of 180 tokens.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Set up system message for customer-friendly rewriting
system_msg = "____"

# Create the rewriting prompt
user_prompt = f"____: {technical_text}"

# Make API call to rewrite the content
response = client.messages.create(
    model="claude-3-7-sonnet-latest",
    max_tokens=____,
    system=system_msg,
    messages=[
        {"role": "user", "content": user_prompt}
    ])
print(response.content[0].text)
Edit dan Jalankan Kode