🤖 Advanced Mistral-7B-Instruct Chatbot for n8n JSON Generation
Select Chat
HuggingFace Authentication
Model Loading
Generation Parameters
0.1 2
64 2048
0.1 1
1 2
# n8n JSON Formatting Guide
This tab provides guidance on creating well-structured JSON for n8n workflows.
## Basic n8n Workflow Structure
```json
{
"name": "My Workflow",
"nodes": [
{
"parameters": { /* Node-specific parameters */ },
"id": "1",
"name": "Start Node",
"type": "n8n-nodes-base.some-node-type",
"typeVersion": 1,
"position": [250, 300]
}
// Additional nodes...
],
"connections": {
"Start Node": {
"main": [
[
{
"node": "Second Node",
"type": "main",
"index": 0
}
]
]
}
// Additional connections...
}
}
```
## Common n8n Node Types
### HTTP Request Node
```json
{
"parameters": {
"url": "https://api.example.com/data",
"method": "GET",
"authentication": "none",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [250, 300],
"id": "1"
}
```
### Function Node (JavaScript)
```json
{
"parameters": {
"functionCode": "// Code here
return items;" }, "name": "Function", "type": "n8n-nodes-base.function", "typeVersion": 1, "position": [450, 300], "id": "2" } ```
### Set Node (Manual Data)
```json
{
"parameters": {
"values": {
"string": [
{
"name": "fieldName",
"value": "value"
}
],
"number": [
{
"name": "count",
"value": 42
}
]
}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [650, 300],
"id": "3"
}
```
Tips for Creating n8n-Compatible JSON
- Ensure all JSON keys and values are properly quoted
- Use proper nesting for workflow components
- Define unique IDs for each node
- Properly define connections between nodes
- Include all required parameters for each node type
Use the chat interface to ask for specific n8n node configurations or workflow patterns.