> ## Documentation Index
> Fetch the complete documentation index at: https://help.emergent.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude (Anthropic) Integration

> Add Claude AI to your app

## What is Claude?

Claude is an AI assistant made by Anthropic. It's great at conversations, writing, analysis, and coding. Many people prefer Claude for its helpful, thoughtful responses.

**Perfect for:**

* AI chatbots and assistants
* Content writing and editing
* Document analysis
* Coding help
* Question answering

## The Easy Way: Emergent Universal Key

<Note>
  **Good news!** You don't need to create a Claude account. Emergent provides a Universal Key that works with OpenAI, Claude, and Google AI - all in one!\
  \
  **TLDR**: View our article on the [Universal Key](/features/universal-key) to get started.
</Note>

### How to Get It

<Steps>
  <Step title="Click Your Profile">
    In Emergent, click your profile picture (top right)
  </Step>

  <Step title="Go to Universal Key">
    Select **Universal Key** from the menu
  </Step>

  <Step title="View Your Key">
    Your key is displayed there
  </Step>

  <Step title="Add Credits">
    Click **Add Balance** to add credits (starts at \$10)
  </Step>

  <Step title="Done!">
    You're ready to use Claude!
  </Step>
</Steps>

**Pricing:** Pay only for what you use

* Claude Sonnet: \~\$0.003 per 750 words
* Claude Opus: \~\$0.015 per 750 words

## Step 2: Tell the Agent What You Want

Just describe what you're building!

### Example 1: AI Chat Assistant

```
I want an AI chatbot using Claude.

The bot should:
- Answer questions helpfully
- Remember conversation context
- Be friendly and professional
- Show typing indicator while thinking

Use Emergent Universal Key.
Use Claude Sonnet (good balance of speed and quality).

Please set this up.
```

### Example 2: Content Writer

```
Build a content writing tool with Claude.

Features:
- User enters a topic
- Choose content type (blog, email, social post)
- Claude generates the content
- User can edit and copy

Use Emergent Universal Key.
Use Claude Opus (best quality).

Please build this.
```

### Example 3: Document Analyzer

```
I need Claude to analyze documents.

Flow:
1. User uploads a document (PDF or text)
2. User asks questions about it
3. Claude reads and answers based on the document
4. Can have a conversation about the content

Use Emergent Universal Key.
Use Claude Sonnet.

Please set this up.
```

<Tip>
  **That's it -** The agent handles all the technical setup.
</Tip>

## Choose Your Claude Model

Claude has different models - like different versions:

<CardGroup cols={3}>
  <Card title="Claude Sonnet" icon="bolt" color="#10b981">
    **Best for:** Most things

    **Speed:** Fast

    **Cost:** Medium

    **Recommended!**
  </Card>

  <Card title="Claude Opus" icon="brain" color="#8b5cf6">
    **Best for:** Complex tasks

    **Speed:** Slower

    **Cost:** Higher

    Smartest model
  </Card>

  <Card title="Claude Haiku" icon="gauge-high" color="#3b82f6">
    **Best for:** Simple tasks

    **Speed:** Very fast

    **Cost:** Cheapest

    Good for basic chatbots
  </Card>
</CardGroup>

**Not sure?** Start with **Claude Sonnet** - it's the best balance.

## Step 3: Test Your AI

After setup:

<Steps>
  <Step title="Click Preview">
    In Emergent, click **Preview**
  </Step>

  <Step title="Try It Out">
    If it's a chat: Send a message

    If it's a generator: Enter some text and generate
  </Step>

  <Step title="Wait for Response">
    Claude will think for a few seconds, then respond
  </Step>

  <Step title="Test Different Things">
    Try various questions and tasks

    Test if conversation memory works
  </Step>

  <Step title="Check Quality">
    Make sure responses are helpful
  </Step>
</Steps>

**Tip:** If responses aren't quite right, tell the agent:

```
Claude's responses are [too long/too short/off-topic].
Can you adjust it to be more [specific/concise/focused]?
```

## Managing Your Credits

### Check Your Balance

1. Profile → Universal Key
2. See remaining credits
3. View usage history

### Add More Credits

1. Click **Add Balance**
2. Choose amount ($10, $25, \$50, or custom)
3. Complete payment
4. Credits added instantly!

### Set Up Auto-Recharge (Optional)

1. Profile → Universal Key
2. Enable **Auto-recharge**
3. Choose amount and trigger point
4. Never run out!

**Example:** Auto-add $20 when balance drops below $5

## Common Questions

<AccordionGroup>
  <Accordion title="Claude vs GPT - which is better?">
    **Claude is great for:**

    * Thoughtful, nuanced responses
    * Document analysis
    * Following complex instructions
    * Longer conversations
    * Ethical and safe responses

    **GPT is great for:**

    * Creative writing
    * Code generation
    * Broader knowledge base
    * Faster responses

    **Best approach:** Try both and see which you prefer!
  </Accordion>

  <Accordion title="Can Claude learn about my business?">
    Yes! Tell the agent:

    ```
    I want Claude to know about my business:
    - We sell [products/services]
    - Our pricing is [details]
    - Common questions are [list]

    Train Claude on this information.
    ```
  </Accordion>

  <Accordion title="Can Claude analyze images?">
    Yes! Claude can see images. Tell the agent:

    ```
    Let users upload images.
    Claude should analyze and describe them.
    Answer questions about the images.
    ```
  </Accordion>

  <Accordion title="How much does it cost?">
    Very affordable:

    **Claude Sonnet:** \~\$0.003 per 750 words

    * A conversation (10 messages): \~\$0.03
    * 1,000 customer questions: \~\$6

    **Claude Haiku:** \~\$0.00025 per 750 words

    * Even cheaper for simple tasks
  </Accordion>
</AccordionGroup>

## Something Not Working?

### Claude Not Responding

**Tell the agent:**

```
Claude isn't responding when I send messages.
Can you check the integration?
```

### Responses Are Wrong

**Tell the agent:**

```
Claude is giving incorrect information about [topic].
It should say [correct information] instead.
Can you fix this?
```

### Too Slow

**Tell the agent:**

```
Claude takes too long to respond.
Can you:
1. Show a better loading indicator
2. Maybe use faster Haiku model for simple questions
```

## Real Examples

### Example 1: Customer Support Bot

```
Build a customer support chatbot with Claude.

Knowledge to include:
- Product catalog
- Common issues and solutions  
- Refund policy
- Contact information

Features:
- Friendly, helpful tone
- Escalate to human if needed
- Remember conversation
- Suggest related articles

Use Emergent Universal Key with Claude Sonnet.

Please build this.
```

### Example 2: Essay Helper

```
Create an essay writing assistant.

Features:
- User provides topic and outline
- Claude helps expand ideas
- Suggests improvements
- Checks grammar and clarity
- Can generate full drafts

Use Emergent Universal Key with Claude Opus.

Please build this.
```

### Example 3: Code Reviewer

```
Build a code review tool with Claude.

Features:
- User pastes code
- Claude analyzes it
- Suggests improvements
- Explains issues
- Provides better alternatives

Use Emergent Universal Key with Claude Sonnet.

Please set this up.
```

## Making Your AI Better

### Give It Personality

```
Make Claude sound like:
- A helpful expert
- Professional but friendly
- Patient and encouraging

Add these traits to my AI.
```

### Add Knowledge

```
Teach Claude about:
- My product features: [details]
- Common customer issues: [list]
- Company policies: [info]

Here's the information: [paste details]
```

### Set Boundaries

```
Claude should NOT:
- Make promises about pricing
- Give medical/legal advice
- Share personal information
- Discuss competitors

Please add these restrictions.
```

## Alternative: Use Your Own Anthropic Key

If you prefer your own Anthropic account:

<Steps>
  <Step title="Create Account">
    Go to [console.anthropic.com](https://console.anthropic.com)
  </Step>

  <Step title="Add Credits">
    Add credits to your account
  </Step>

  <Step title="Create API Key">
    Generate an API key
  </Step>

  <Step title="Tell Agent">
    ```
    Use my Anthropic API key instead of Emergent Universal Key:
    sk-ant-xxxxxxxxxxxxx
    ```
  </Step>
</Steps>

## Quick Checklist

Before going live:

* Tested with various questions
* Responses are helpful and accurate
* Added enough credits
* Set up auto-recharge (optional)
* Tested on mobile
* Claude has right personality/tone
* Taught Claude about your business

## Remember

**Use Emergent Universal Key** - Easiest way

**Start with Sonnet** - Best balance

**Test thoroughly** - Try many questions

**Monitor credits** - Set up auto-recharge

**Keep improving** - Refine based on feedback

<Info>
  Stuck? Tell the agent: "I need help with Claude integration" and explain what you want to change or fix.
</Info>
