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

# DeepSeek

> Connect DeepSeek to use powerful AI models for text generation and reasoning in your workflows.

## How to set up DeepSeek

### Authentication

DeepSeek uses API key authentication:

1. Sign up at [deepseek.com](https://deepseek.com)
2. Navigate to API settings
3. Generate an API key
4. Copy the API key and paste it in Cargo when connecting

## DeepSeek actions

### Instruct

Generate text responses using DeepSeek's AI models.

**Required fields:**

* **Model**: Select the DeepSeek model
* **Prompt**: Your instruction or question

**Available models:**

| Model       | Description                                                 |
| ----------- | ----------------------------------------------------------- |
| DeepSeek-V3 | General-purpose chat model for diverse tasks                |
| DeepSeek-R1 | Advanced reasoning model with chain-of-thought capabilities |

**Advanced settings:**

* **System prompt**: Set context for the model's behavior
* **Maximum tokens**: Limit response length (1-8192, default 4096)
* **Temperature**: Control randomness (0-2, default 1)

**Output options:**

* **Text**: Plain text response
* **JSON object**: Structured JSON output

## Use cases

* **Lead research**: Analyze and summarize information about prospects
* **Email writing**: Generate personalized sales outreach
* **Data transformation**: Convert data between formats
* **Question answering**: Build FAQ or support automation
* **Analysis**: Complex reasoning on business data

## Model comparison

| Feature  | DeepSeek-V3            | DeepSeek-R1            |
| -------- | ---------------------- | ---------------------- |
| Speed    | Faster                 | Slower                 |
| Best for | General tasks          | Complex reasoning      |
| Output   | Direct answers         | Step-by-step reasoning |
| Use when | Quick responses needed | Accuracy is critical   |

## Best practices

* Use DeepSeek-V3 for straightforward generation tasks
* Use DeepSeek-R1 when you need the model to "show its work"
* Lower temperature (0.2-0.5) for factual, consistent outputs
* Higher temperature (0.7-1.0) for creative content
* Use JSON object output for structured data extraction
* Provide clear, specific system prompts for best results

## Example prompts

**Lead qualification:**

```
Analyze this lead and determine if they match our ICP:
- Company: {{company_name}}
- Industry: {{industry}}
- Size: {{employee_count}}

Our ICP: B2B SaaS companies, 50-500 employees, in tech industry.

Respond with qualification status and reasoning.
```

**Email personalization:**

```
Write a cold email to {{first_name}} at {{company_name}}.
They are a {{job_title}} and their company {{recent_news}}.
Keep it under 100 words, casual tone, focus on {{value_prop}}.
```
