Beginner

Getting Started with Claude

Learn how to access Claude, set up your first conversation, and understand the basics of talking to an AI assistant effectively.

How to Access Claude

There are several ways to interact with Claude, depending on your needs:

1. Claude.ai (Web Interface)

The easiest way to get started. Visit claude.ai and create a free account. You can start chatting immediately in your browser.

  1. Go to claude.ai

    Open your browser and navigate to claude.ai.

  2. Create an account

    Sign up with your email address or use Google/Apple sign-in. The free tier gives you access to Claude Sonnet with a generous daily usage limit.

  3. Start a conversation

    Click "New Chat" and type your first message. Claude will respond within seconds.

2. Claude API

For developers who want to integrate Claude into applications. The API gives you programmatic access to all Claude models. We cover this in detail in the API Basics lesson.

3. Claude Code (CLI)

A command-line tool for developers who want AI-powered coding assistance directly in their terminal. Learn more in the Claude Code course.

Recommendation: If you are new to Claude, start with claude.ai. It requires no setup and lets you experiment immediately. You can explore the API and CLI later.

Understanding the Chat Interface

The claude.ai interface has a few key elements:

  • Message input: The text box at the bottom where you type your prompts. You can write anything from a quick question to a multi-paragraph instruction.
  • Conversation history: Your messages and Claude's responses appear in the main area. Claude maintains context throughout the conversation.
  • New chat: Start fresh conversations when switching topics. Each conversation is independent.
  • Model selector: Choose between available models (Haiku, Sonnet, Opus) depending on your plan.
  • File uploads: Attach images, PDFs, and other files for Claude to analyze.

Creating Your First Conversation

Let us walk through a few example conversations to show you what Claude can do.

Simple Question

Conversation
User:
What are the three states of matter?

Claude:
The three classical states of matter are:

1. Solid - Particles are tightly packed in a fixed
   arrangement. Solids have a definite shape and volume.
   Example: ice, wood, metal.

2. Liquid - Particles are close together but can move
   around each other. Liquids have a definite volume but
   take the shape of their container.
   Example: water, oil, mercury.

3. Gas - Particles are far apart and move freely.
   Gases have no definite shape or volume; they expand
   to fill their container.
   Example: oxygen, helium, steam.

There are also additional states like plasma and
Bose-Einstein condensate, but the three above are
the ones most commonly taught.

Giving Instructions

Conversation
User:
Write a Python function that checks if a string
is a palindrome. Include a docstring and handle
edge cases like empty strings and case sensitivity.

Claude:
def is_palindrome(text: str) -> bool:
    """
    Check if a string is a palindrome.

    Args:
        text: The string to check.

    Returns:
        True if the string is a palindrome,
        False otherwise.

    Examples:
        >>> is_palindrome("racecar")
        True
        >>> is_palindrome("hello")
        False
        >>> is_palindrome("A man a plan a canal Panama")
        True
    """
    if not text:
        return True

    # Remove non-alphanumeric chars, lowercase
    cleaned = "".join(
        c.lower() for c in text if c.isalnum()
    )
    return cleaned == cleaned[::-1]

Multi-Turn Conversation

Multi-Turn Conversation
User:
I'm planning a trip to Japan in April.
What should I know?

Claude:
April is one of the best times to visit Japan!
Here are the key things to know:

- Cherry blossom season (sakura) typically peaks
  in late March to mid-April
- Weather is mild: 10-20°C (50-68°F)
- Golden Week holiday starts April 29 - book
  accommodations early
- Pack layers for variable spring weather
...

User:
What about budget? I'm planning for 2 weeks.

Claude:
Here's a rough daily budget breakdown for Japan:

Budget traveler: ¥8,000-12,000/day ($55-80)
  - Hostels, convenience store meals, trains

Mid-range: ¥15,000-25,000/day ($100-170)
  - Business hotels, restaurant meals, day trips

Comfortable: ¥30,000-50,000/day ($200-340)
  - Nice hotels, dining out, tours, shopping

For 2 weeks mid-range: roughly $1,400-2,400
plus flights.
...

Notice how Claude remembers the context from the first message. It knows you are going to Japan in April when answering the budget question.

Basic Prompting: Getting Good Results

Even though Claude is powerful, the quality of your prompt directly affects the quality of the response. Here are essential tips for beginners:

Be Specific

Instead of vague requests, tell Claude exactly what you need.

Comparison
// Vague (less effective):
Tell me about Python.

// Specific (much better):
Explain Python list comprehensions with 3 examples,
ranging from simple to complex. Show the equivalent
for-loop version for each example.

Provide Context

Give Claude the background information it needs to give you a good answer.

Comparison
// No context:
Review this code.

// With context (much better):
I'm building a REST API in Flask for a todo app.
This endpoint handles creating new tasks. Please
review it for security issues, error handling, and
best practices:

[your code here]

Specify the Format

Tell Claude how you want the output structured.

Format Examples
// Ask for a specific format:
List 5 benefits of exercise.
Format as a markdown table with columns:
Benefit | Description | Scientific Evidence

// Ask for code output:
Convert this CSV data to JSON format.
Return only the JSON, no explanation.

// Ask for a specific length:
Summarize this article in exactly 3 bullet points,
each no more than 20 words.

Tips for Beginners

💡
Start simple, then refine. Begin with a straightforward prompt. If the result is not quite right, add more detail in a follow-up message. Claude handles iterative refinement well.
💡
Use follow-up messages. You do not need to get the perfect prompt on the first try. Say things like "Make it shorter," "Add more detail to section 2," or "Can you rewrite that in a more casual tone?"
💡
Upload files when relevant. If you are asking about a document, image, or code file, upload it directly rather than trying to describe it. Claude can read PDFs, images, code files, and more.
Do not share sensitive data. Avoid pasting passwords, API keys, personal identification numbers, or other sensitive information into any AI chat. While Anthropic has privacy policies, it is best practice to keep secrets out of AI conversations.

What's Next?

Now that you know how to access Claude and have tried basic conversations, the next lesson explores the different Claude models and when to use each one.