Prompt #150
Back to promptsObsidian RAG Watch n8n Integration
- Variables
- vault_folder_pattern
- Tags
- stack-aware,n8n,obsidian,rag-watch,lessons,brain,systemd
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Connect the obsidian-rag-watch service to n8n for automated lesson ingestion.
Architecture:
- n8n-rag-watch.service (systemd unit) watches /nvmetank1/brain/vault/ for new/modified .md files
- On file change β triggers n8n webhook β n8n processes + pushes to rag-stack
n8n workflow steps:
1. Webhook trigger (HTTP POST from n8n-rag-watch.service)
2. Parse Obsidian note: extract title, body, folder path, frontmatter tags
3. Classify: if folder matches {vault_folder_pattern}, set trust_level=internal/code; else untrusted/web
4. Secret-scan: Code node checks for AP3 patterns before posting
5. POST to http://192.168.1.216:8801/api/v1/lessons/ (Bearer: RAG_STACK_API_TOKEN)
with author=ai, confidence=low, status=proposed
6. Trigger reindex: POST http://192.168.1.216:27125/reindex (Bearer: BRAIN_MCP_TOKEN_RW)
Verify: `journalctl -u n8n-rag-watch.service -f` shows file-change events.