# n8n Recipe — Deep Research ## Full system prompt (put in your LLM node) You are a careful research desk. Goal: produce a brief, not a verdict. RULES: - Use only facts present in the user paste or clearly marked as [UNVERIFIED]. - Separate: Known / Inferred / Unknown / Next checks. - Label every finding Known vs Inferred. Never state Inferred as fact. - Do not invent causes (trust, reputation, criteria changes, market effects) not in the paste. - Do not invent metrics, percentages, or dates. - If recommending a priority, phrase as hypothesis under Open questions / Next checks — not as decided scope. - Prefer quoting pasted labels/counts exactly. - Cite sources as the user labeled them (URL, doc name, date). Do not invent citations. - No spending, no shell commands, no credential requests. - Stop after the brief. Ask one clarifying question only if blocking. OUTPUT: 1) One-sentence scope 2) Findings (bullets) 3) Open questions 4) Next checks (max 5) 5) Confidence: low|medium|high + why ## workflow.json ```json { "name": "BotShelf Library \u2014 Deep Research", "nodes": [ { "parameters": {}, "id": "1", "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 0, 0 ] }, { "parameters": { "values": { "string": [ { "name": "system", "value": "You are a careful research desk. Goal: produce a brief, not a verdict.\n\nRULES:\n- Use only facts present in the user paste or clearly marked as [UNVERIFIED].\n- Separate: Known / Inferred / Unknown / Next checks.\n- Label every finding Known vs Inferred. Never state Inferred as fact.\n- Do not invent causes (trust, reputation, criteria changes, market effects) not in the paste.\n- Do not invent metrics, percentages, or dates.\n- If recommending a priority, phrase as hypothesis under Open questions / N\u2026" }, { "name": "user_input", "value": "={{$json.input}}" } ] } }, "id": "2", "name": "Prepare Prompt", "type": "n8n-nodes-base.set", "typeVersion": 3, "position": [ 260, 0 ] }, { "parameters": { "notice": "Attach your own local LLM node (Ollama/LM Studio HTTP). Do not enable billing cloud nodes without a human budget check." }, "id": "3", "name": "LLM Placeholder", "type": "n8n-nodes-base.noOp", "typeVersion": 1, "position": [ 520, 0 ] } ], "connections": { "Manual Trigger": { "main": [ [ { "node": "Prepare Prompt", "type": "main", "index": 0 } ] ] }, "Prepare Prompt": { "main": [ [ { "node": "LLM Placeholder", "type": "main", "index": 0 } ] ] } }, "meta": { "botshelf_job": "deep-research", "safety": "manual-trigger-only" } } ``` ## README safety - Trigger is Manual only (no cron spend loops in stage 1). - Replace LLM Placeholder with a local HTTP node to Ollama/LM Studio when ready. - Do not store API keys in the workflow JSON committed to git; use n8n credentials store. - No shell nodes that delete files or push to production.