N8N_VISUAL_GUIDE.mdโข5.98 kB
# n8n Visual Configuration Guide ๐ธ
## ๐ฏ The Exact Setup You Need
---
## Screenshot 1: Your Current Setup (AI Agent - Causing Issues)
**What you have now:**
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Agent Node โ
โ โโ Credential: Simplicate โ
โ โโ Prompt: "Show me..." โ
โ โโ โ Schema Error โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
**The Problem:** AI Agent doesn't understand the exact tool format!
---
## Screenshot 2: What You SHOULD Use (Direct MCP)
**What you need:**
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Node โ
โ โโ Credential: Simplicate โ
โ โโ Operation: Execute Tool โ
โ โโ Tool Name: get_absences โ
โ โโ Parameters: โ
โ { โ
โ "limit": 50, โ
โ "offset": 0 โ
โ } โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
---
## ๐ง Exact Field Values
### Field 1: Credential
```
Value: Simplicate (or whatever you named your MCP connection)
```
### Field 2: Operation
```
Value: Execute Tool
(NOT "List Tools", NOT "Get Tool Info")
```
### Field 3: Tool Name
```
Value: get_absences
(exact text, no quotes, no extra spaces)
```
### Field 4: Tool Parameters (JSON)
```json
{
"limit": 50,
"offset": 0
}
```
---
## ๐ Copy-Paste Values for Different Queries
### Query 1: Get Absences
```
Tool Name: get_absences
Parameters: {"limit": 50, "offset": 0}
```
### Query 2: Get All Employees
```
Tool Name: get_employees
Parameters: {"limit": 100, "offset": 0}
```
### Query 3: Get Dwayne's Employee Info
```
Tool Name: get_employee
Parameters: {"employee_id": "employee:3b70f4dd49fafb356d44e34a3f0f8c3d"}
```
### Query 4: Get All Hours
```
Tool Name: get_hours
Parameters: {"limit": 100, "offset": 0}
```
### Query 5: Get All Projects
```
Tool Name: get_projects
Parameters: {"limit": 50, "offset": 0}
```
### Query 6: Get Leave Entries
```
Tool Name: get_leave
Parameters: {"limit": 50, "offset": 0}
```
### Query 7: Get Timetable/Schedule
```
Tool Name: get_calendar_events
Parameters: {"limit": 50, "offset": 0}
```
---
## ๐ฏ Complete Working Workflow
### Workflow: "Check Dwayne's Availability"
```
Step 1: Manual Trigger
โโ When: Manually or on schedule
โโ Output: Trigger signal
Step 2: Get Leave Entries
โโ Node Type: MCP
โโ Tool: get_leave
โโ Params: {"limit": 100, "offset": 0}
โโ Output: All leave entries
Step 3: Filter for Dwayne
โโ Node Type: Code
โโ Code:
โ const leaves = $input.all();
โ return leaves.filter(item =>
โ item.json.employee?.name?.toLowerCase().includes('dwayne')
โ );
โโ Output: Only Dwayne's leave
Step 4: Get Absences
โโ Node Type: MCP
โโ Tool: get_absences
โโ Params: {"limit": 100, "offset": 0}
โโ Output: All absences
Step 5: Filter for Dwayne
โโ Node Type: Code
โโ Code: (same as step 3)
โโ Output: Only Dwayne's absences
Step 6: Get Hours
โโ Node Type: MCP
โโ Tool: get_hours
โโ Params: {"limit": 100, "offset": 0}
โโ Output: All hours
Step 7: Filter for Dwayne This Week
โโ Node Type: Code
โโ Code:
โ const hours = $input.all();
โ const today = new Date();
โ const weekStart = new Date(today);
โ weekStart.setDate(today.getDate() - 7);
โ
โ return hours.filter(item => {
โ const name = item.json.employee?.name?.toLowerCase() || '';
โ const date = new Date(item.json.start_date);
โ return (name.includes('dwayne') || name.includes('paisley'))
โ && date >= weekStart;
โ });
โโ Output: Dwayne's hours this week
Step 8: Merge Data
โโ Node Type: Merge
โโ Output: Combined availability report
Step 9: Send to Slack/Email
โโ Node Type: Slack/Email/etc
โโ Message: "Dwayne's availability report..."
```
---
## ๐งช Quick Test - 30 Seconds
1. **Delete your AI Agent node**
2. **Add new MCP node**
3. **Set these exact values:**
- Credential: `Simplicate`
- Operation: `Execute Tool`
- Tool Name: `get_employees`
- Parameters: `{"limit": 10, "offset": 0}`
4. **Click "Execute node"**
5. **See results!** โ
---
## ๐ก Why This Works
| Approach | Result |
|----------|--------|
| AI Agent + "Show me absences" | โ Schema error |
| AI Agent + Natural language | โ Misinterprets |
| **MCP Node + Exact tool name** | **โ
Works!** |
| **MCP Node + JSON params** | **โ
Works!** |
---
## ๐จ Common Mistakes
### Mistake 1: Using AI Agent
```
โ AI Agent โ "Show me absences"
โ
MCP Node โ Tool: get_absences
```
### Mistake 2: Wrong operation
```
โ Operation: List Tools
โ
Operation: Execute Tool
```
### Mistake 3: Adding quotes to tool name
```
โ Tool Name: "get_absences"
โ
Tool Name: get_absences
```
### Mistake 4: Missing parameters
```
โ No parameters
โ
Parameters: {"limit": 50, "offset": 0}
```
---
## ๐ Need Help?
If you're still getting errors:
1. **Check your MCP server is running**
```bash
cd /Users/dwayne/Documents/Playground/Simplicate
npm start
```
2. **Check your .env file exists**
```bash
cat .env
```
3. **Test the API directly**
```bash
npm run test:all
```
4. **Check n8n can see the tools**
- Use "List Tools" operation first
- Verify "get_absences" is in the list
- Then switch to "Execute Tool"
---
## โ
Success Checklist
- [ ] Using **MCP Node** (not AI Agent)
- [ ] Operation set to **"Execute Tool"**
- [ ] Tool name is **exact** (e.g., `get_absences`)
- [ ] Parameters are **valid JSON**
- [ ] MCP server is **running**
- [ ] Credentials are **configured in n8n**
---
**Once all checkboxes are ticked, it WILL work!** ๐