# DeepSeek AI

{% embed url="<https://youtu.be/91lMxtnJuVc?si=02Zlkahf7uEa7h1L>" %}

## **Fetching the DeepSeek API Key** <a href="#fetching-the-deepseek-api-key" id="fetching-the-deepseek-api-key"></a>

In order to fetch the API key, login into [DeepSeek](https://www.deepseek.com/)

### **Setting Up DeepSeek AI** <a href="#setting-up-deepseek-ai" id="setting-up-deepseek-ai"></a>

Go to **Integrations** -> **Artificial Intelligence**, select **DeepSeek** and insert your **API token**.&#x20;

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F940dU6AjnH14Tass2B3l%2Fimage.png?alt=media&#x26;token=b0e47d01-0099-4070-b8cd-6b42a608eebc" alt=""><figcaption></figcaption></figure>

Once you’ve integrated, you can access DeepSeek’s features directly through the **Flow Builder** under the **Integrations action node**.

### **Using DeepSeek Inside Flow Builder:** <a href="#using-deepseek-inside-flow-builder" id="using-deepseek-inside-flow-builder"></a>

You can use DeepSeek inside the flow builder using the action node. Make an action node and select the Integrations option. From the menu that appears, click on DeepDeek.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FOrcqFiTxaHoBQlEuDDoq%2Fimage.png?alt=media&#x26;token=1c237b8d-aed2-4af2-b8c9-04050c44ba79" alt=""><figcaption></figcaption></figure>

### **DeepSeek AI Available Actions:** <a href="#deepseek-ai-available-actions" id="deepseek-ai-available-actions"></a>

DeepSeek’s capabilities are comparable to OpenAI Chat Completion or Claude, making it intuitive for seasoned users.&#x20;

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F66cln8slD4ofOyhrdIER%2Fimage.png?alt=media&#x26;token=3cd9d1d3-5db6-4f05-b67c-3fdad6184cf5" alt=""><figcaption></figcaption></figure>

Let’s break down the main features:

#### **Create Chat Completion** <a href="#create-chat-completion" id="create-chat-completion"></a>

Easily create engaging and dynamic conversations by configuring the Chat Completion action.

System messages can be personalized.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FxKh5E0mWOSsZrFQsEDRU%2FUntitled.png?alt=media&#x26;token=227d8114-ba79-4aee-aceb-83bb88dc9d45" alt=""><figcaption></figcaption></figure>

#### **Clear Remembered Chat History** <a href="#clear-remembered-chat-history" id="clear-remembered-chat-history"></a>

This action clears the “DeepSeek” system field JSON. The use case is to control the history and monitor the execution time of requests to avoid server timeouts and token overconsumption.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FnQSkxr5ewLpEM8LbjBKk%2FUntitled.png?alt=media&#x26;token=42c55203-6989-447d-9300-a6f9d00ac8e8" alt=""><figcaption></figcaption></figure>

#### **List Models** <a href="#list-models" id="list-models"></a>

**DeepSeek Chat**: A fast, conversational model ideal for quick user interactions.

**DeepSeek Reasoner**: More detailed and structured, perfect for use cases requiring logical processing (e.g., troubleshooting or technical queries).

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2Ff7GXNi5u30sUXOOCtstR%2FUntitled.png?alt=media&#x26;token=e920e89d-8961-4c26-bcf2-e32076407ecd" alt=""><figcaption></figcaption></figure>

### **Building a Test Chat Flow** <a href="#building-a-test-chat-flow" id="building-a-test-chat-flow"></a>

&#x20;After integrating DeepSeek, here’s a sample setup for testing:

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FR8ZuMGyUXNazi9oSQqid%2Fimage.png?alt=media&#x26;token=90c07979-bf19-478e-a879-5679504cec26" alt=""><figcaption></figcaption></figure>

**Sample System Message:**

| <p>You are Chad. You are to engage with the user using small talk. Follow the below guidelines for responses:<br>Guideline for responses:</p><ul><li>reply in first person</li><li>tone of voice is witty</li><li>use fitting emojis</li><li>you are not allowed to mention you are an Al or assume any other persona than what is described above</li><li>you are not allowed to talk about politics or religious</li></ul> |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Set **Max Tokens** to 200 and **Temperature** to 0.4 for optimal response quality.

Enable **Remember History** for ongoing conversations.

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FAxImHD4o9ZGAhzwOVSSD%2FUntitled.png?alt=media&#x26;token=b1c7f330-d888-4fa9-b624-b936ef5be47a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FLBEGGQkdlujY1jOjwXeW%2FUntitled.png?alt=media&#x26;token=60120681-072f-434c-8264-fbec0bdb01e6" alt=""><figcaption></figcaption></figure>
