Merge pull request #4345 from 0xHieu01/docs/add-n8n-integration
docs: create n8n integration
This commit is contained in:
commit
154e9cc7fc
81
docs/src/pages/integrations/workflow-automation/n8n.mdx
Normal file
81
docs/src/pages/integrations/workflow-automation/n8n.mdx
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
---
|
||||||
|
title: n8n
|
||||||
|
keywords:
|
||||||
|
[
|
||||||
|
Jan,
|
||||||
|
Customizable Intelligence, LLM,
|
||||||
|
local AI,
|
||||||
|
privacy focus,
|
||||||
|
free and open source,
|
||||||
|
private and offline,
|
||||||
|
conversational AI,
|
||||||
|
no-subscription fee,
|
||||||
|
large language models,
|
||||||
|
n8n integration,
|
||||||
|
n8n,
|
||||||
|
]
|
||||||
|
description: A step-by-step guide on integrating Jan with n8n.
|
||||||
|
---
|
||||||
|
|
||||||
|
import { Steps } from 'nextra/components'
|
||||||
|
|
||||||
|
# n8n
|
||||||
|
|
||||||
|
## Integrate n8n with Jan
|
||||||
|
|
||||||
|
[n8n](https://n8n.io/) is an open-source workflow automation tool that allows you to connect to more than 400+ integrations and services to automate repetitive tasks. With its visual interface, you can create complex workflows conveniently. To integrate n8n with Jan, follow the steps below:
|
||||||
|
|
||||||
|
<Steps>
|
||||||
|
### Step 1: Run your preferred model with Jan server
|
||||||
|
|
||||||
|
1. Open Jan app.
|
||||||
|
2. Go to the **Hub** and download your preferred model
|
||||||
|
3. Run the Jan server
|
||||||
|
|
||||||
|
### Step 2: Start n8n service
|
||||||
|
Start n8n immediately using npx:
|
||||||
|
|
||||||
|
```
|
||||||
|
npx n8n
|
||||||
|
```
|
||||||
|
|
||||||
|
Or deploy with Docker:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm --name n8n -p 5678:5678 docker.n8n.io/n8nio/n8n
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 3: Integrate Jan with n8n service using HTTP Request
|
||||||
|
|
||||||
|
Integrate Jan by selecting the HTTP Request node in n8n and importing the following cURL command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X 'POST' \
|
||||||
|
'http://127.0.0.1:1337/v1/chat/completions' \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"content": "You are a helpful assistant.",
|
||||||
|
"role": "system"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"content": "Hello!",
|
||||||
|
"role": "user"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"model": "tinyllama-1.1b",
|
||||||
|
"stream": true,
|
||||||
|
"max_tokens": 2048,
|
||||||
|
"stop": [
|
||||||
|
"hello"
|
||||||
|
],
|
||||||
|
"frequency_penalty": 0,
|
||||||
|
"presence_penalty": 0,
|
||||||
|
"temperature": 0.7,
|
||||||
|
"top_p": 0.95
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
</Steps>
|
||||||
Loading…
x
Reference in New Issue
Block a user