Mindket

DeepSeek chat and reasoning quick start with four examples

Newversion 1 · updated

Overview

An n8n canvas with four ways to reach DeepSeek: a local R1 model on Ollama that answers the chat, two direct API calls with thinking on and off, and an agent with memory.

DeepSeek chat and reasoning quick start with four examples is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: the API examples, or the local one with an Ollama server that is reachable from the internet
  • Your own n8n server: all four, with Ollama on the same machine or the same Docker network
  • n8n’s chat: the canvas chat while you test. The public chat page stays off until you turn it on in the trigger

Platform

Connects 2 apps

How it works

Trigger

Chat message

It starts when you send a message in n8n’s chat:

  • A question or a request, in your own words

Actions

  1. Your message goes to a chain whose system message says to act as a helpful assistant
  2. A DeepSeek R1 14B model on your Ollama server writes the reply
  3. The reply comes back in the chat
  4. Beside it, not joined to the chat, sit two direct calls to DeepSeek’s API with thinking on and off, and an agent with memory

Result

A reply from a local DeepSeek model in the chat, and three more DeepSeek calls ready for you to join up

Integrations

What you need before you start.

DeepSeek

Hosted language models

Answers the three API examples through its chat completions endpoint. The copy asks for deepseek-flash.

NeedsA DeepSeek API key

Ollama

Local language model

Runs deepseek-r1:14b on your own server for the example joined to the chat.

NeedsAn Ollama server with the model pulled, and an Ollama credential in n8n

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
2 steps, starting on a chat message
Not reached
5 nodes no run reaches: AI Agent, DeepSeek, Window Buffer Memory, DeepSeek Raw Body and DeepSeek JSON Body
AI
1 step calls an AI model: Basic LLM Chain2
Sign-ins
Signs in to: Ollama
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 2 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow puts four ways to reach DeepSeek on one canvas. A chat message goes to a DeepSeek R1 model on your own Ollama server, and the reply comes back in the chat. Beside it sit two calls to DeepSeek’s own API, one with thinking on and one with it off, and a conversational agent with memory that reaches DeepSeek through an OpenAI credential. Only the local model is joined to the chat. The file holds fifteen nodes, seven of them sticky notes.

Who it suits

Developers who want a first working call to DeepSeek, local or hosted, and a place to copy the others from. Skip it if you want a finished chatbot. It is a set of starting points, and three of the four need joining up before they answer.

Who uses it, and how
IndustryWho uses itHow they use itExample
SoftwareDevelopersCopy the API call that fits their own flowA developer lifts the thinking-off call into a support-ticket workflow.
IT servicesTeams that keep text on siteRun R1 on their own server and compare it with the hosted APIA team asks the same contract question of the local model and of the hosted one.
EducationAI course instructorsShow a class four routes to one modelAn instructor runs each example live and points at what differs.
ResearchAnalystsCompare answers with thinking on and offAn analyst asks one maths question both ways and reads the two replies.

You need a little n8n and either an Ollama server or a DeepSeek API key: import a file, make the credentials you want and pick one example to run.

Where to use it

Any n8n that can reach Ollama or DeepSeek will run it.

  • n8n Cloud: the API examples, or the local one with an Ollama server that is reachable from the internet
  • Your own n8n server: all four, with Ollama on the same machine or the same Docker network
  • n8n’s chat: the canvas chat while you test. The public chat page stays off until you turn it on in the trigger

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Make only the credentials for the examples you plan to run.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OllamaFor the local example, a server with deepseek-r1:14b pulled, a 9.0 GB download
DeepSeekFor the API examples, an API key from DeepSeek’s platform
CredentialsOllama, Header Auth for the two HTTP calls, and an OpenAI credential with DeepSeek’s Base URL for the agent
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Local example: add an Ollama credential and select it in Ollama DeepSeek.
  3. HTTP examples: add a Header Auth credential with the name Authorization and the value Bearer followed by your key. Select it in DeepSeek Raw Body and DeepSeek JSON Body.
  4. Agent: add an OpenAI credential with the Base URL https://api.deepseek.com and your DeepSeek key, and select it in DeepSeek.
  5. Save, open the chat on the canvas and write a message.
  6. To try an API example or the agent, draw a line from When chat message received to it, and remove the line to the Ollama chain.

How to use it

Write a message in the chat and the local DeepSeek model answers it. Join another example to the chat trigger to try that one instead.

What to change for a different result
To changeWhere
The local modelOllama DeepSeek, with its context size and temperature
The API modelThe model line in each HTTP body, or DeepSeek
Thinking on or offThe thinking line in the HTTP bodies
The assistant’s instructionsThe system message in Basic LLM Chain2, AI Agent or DeepSeek JSON Body

Example

You type this in the chat.

Explain in two sentences why the sky is blue

The local model replies in the chat. If you joined DeepSeek Raw Body instead, the answer sits in choices[0].message.content of that node’s output, and the model’s reasoning sits beside it in reasoning_content.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This canvas holds four small flows. One is joined to the chat and three wait for you. Test the local one first, then join the next. Open each run under Executions to see what DeepSeek returned.

For experts. The two API calls are plain HTTP Request nodes, so the same bodies work with any OpenAI-style endpoint.

Where to look closer
NodeWhat it doesWhat to know
Ollama DeepSeekOllama chat model deepseek-r1:14b, context 16384, temperature 0.6It feeds Basic LLM Chain2
DeepSeek Raw BodyPOST with a raw JSON body, deepseek-flash, thinking onYour text goes in through JSON.stringify
DeepSeek JSON BodyPOST with the JSON body option, deepseek-flash, thinking offA system message and your text
DeepSeekOpenAI chat model node, deepseek-flashIt needs an OpenAI credential with DeepSeek’s Base URL
AI AgentConversational Agent type with Window Buffer MemoryFive exchanges of memory, and no tools

Good to know

Three of the four examples are not joined to the chat, and DeepSeek has retired the model names the original used.

  • Model names: the original asked for deepseek-chat and deepseek-reasoner. DeepSeek’s change log, read on 12 November 2026, announced their end for 24 July 2026 and names deepseek-flash and deepseek-v4-pro as the current models. This copy uses deepseek-flash
  • Thinking: on by default at DeepSeek. A model in thinking mode ignores temperature, and its reasoning comes back as reasoning_content beside content
  • Repairs: the JSON body had its system and user messages swapped, and both bodies broke on a quote in your text
  • Wiring: only the Ollama chain is joined. Join one example at a time
  • Billing: DeepSeek bills each API call, and the local model costs your own hardware
  • Your data: your messages go to DeepSeek in the API examples and stay on your Ollama server in the local one
  • Credentials: the JSON holds none

README and files

README

DeepSeek chat and reasoning quick start with four examples

One canvas with four ways to reach DeepSeek from n8n. A local model on Ollama answers the chat. Beside it sit a call to
DeepSeek's own API with thinking on, the same call with thinking off, and a conversational agent with memory. Only the
local model is joined to the chat. The other three are there to copy from or to join up yourself.

What is inside

  • workflow.json: the workflow as n8n exports it, fifteen nodes. Seven are sticky notes. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • The links to four credentials in its author's n8n are gone, so select your own.
  • The two API calls and the agent's model asked for deepseek-chat and deepseek-reasoner, which DeepSeek announced it
    would discontinue on 24 July 2026. All three now ask for deepseek-flash. The thinking-on call sends
    "thinking": {"type": "enabled"} and the thinking-off call sends "thinking": {"type": "disabled"}, which is how
    DeepSeek's change log says those two names behaved.
  • In DeepSeek JSON Body the system message held your chat text and the user message said "Hello!". They are the right
    way round now: the system message says "You are a helpful assistant." and the user message is your chat text.
  • Both HTTP bodies pasted your chat text between quotation marks, so a quote or a line break in it broke the JSON. They
    now use JSON.stringify on it.
  • The sticky notes were reworded to say which example is joined to the chat, and the long one about the API now lists
    the current model names.
  • The wiring is as the original copy had it: only the Ollama chain is joined to the chat trigger.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • For the local example: an Ollama server that n8n can reach, with the model pulled: ollama pull deepseek-r1:14b. It
    is a 9.0 GB download, and Ollama DeepSeek asks for a context of 16,384 tokens.
  • For the other three: a DeepSeek API key from https://platform.deepseek.com/api_keys.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. The local example: add an Ollama credential (Base URL http://localhost:11434 unless you changed OLLAMA_HOST) and
    select it in Ollama DeepSeek. Save, open the chat on the canvas and write a message.
  3. The two HTTP examples: add a Header Auth credential. Its name is Authorization and its value is Bearer followed
    by your key. Select it in DeepSeek Raw Body and DeepSeek JSON Body.
  4. The agent: add an OpenAI credential whose Base URL is https://api.deepseek.com and whose key is your DeepSeek key.
    Select it in DeepSeek.
  5. To try one of those three, draw a line from When chat message received to its first node. Remove the line to the
    Ollama chain first, so that only one example answers.

How a request runs

  1. When chat message received passes your message to Basic LLM Chain2 as chatInput.
  2. The chain sends it to Ollama DeepSeek, which runs deepseek-r1:14b with a temperature of 0.6. The system message
    is "You are a helpful assistant."
  3. The reply goes back to the chat.

The three unjoined examples work the same way once you join them. DeepSeek Raw Body and DeepSeek JSON Body post to
https://api.deepseek.com/chat/completions. The agent keeps the last five exchanges in Window Buffer Memory.

Change the result

  • The local model: Ollama DeepSeek, with any model you have pulled. Its options hold the context size and the
    temperature.
  • The API model: the model line in each HTTP body, or the model in DeepSeek. deepseek-v4-pro is DeepSeek's other
    current model.
  • Thinking: "type": "enabled" or "disabled" in the HTTP bodies. Thinking is on by default at DeepSeek, and a model
    in thinking mode ignores temperature.
  • The assistant's instructions: the system message in Basic LLM Chain2, AI Agent or DeepSeek JSON Body.

Good to know

  • Model names: DeepSeek's change log, read on 12 November 2026, names deepseek-flash and deepseek-v4-pro as the
    current models. It lists deepseek-chat and deepseek-reasoner as due for discontinuation on 24 July 2026, so a copy
    that still asks for them may already fail.
  • The agent uses the Conversational Agent type of n8n's older Agent node, version 1.7. It has no tools.
  • deepseek-r1 is a reasoning model, so a reply can begin with its chain of thought.
  • With thinking on, the reasoning comes back in a field named reasoning_content beside content. Read the answer from
    choices[0].message.content.
  • Billing: DeepSeek bills each API call, and the local model costs your own hardware.
  • Your messages go to DeepSeek in the API examples and stay with your Ollama server in the local one.
  • The chat trigger's public page is off until you turn it on in the trigger. Leave it off unless you want strangers
    using your keys.
Files
NOTICE.md  636 B
README.md  5 KB
workflow.json  8 KB

3 files, 14 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k