← Workflows
ProductivityTelegramSlackPerplexity

Deep-Dive Research Agent

Turn simple queries from Slack or Telegram into comprehensive, citation-backed 1,000+ word Markdown research reports synced directly to your Obsidian Second Brain.

Advanced 12 nodes n8n 1.50+

Download workflow JSON Import this file in n8n — credentials are not included.

Download .json
Read-only · click canvas to explore

Loading workflow…

1. Workflow Architecture

  1. Triggers (Dual Entry):
    • Slack Command / Webhook: Receives research payloads from your Slack channels.
    • Telegram Trigger: Standard Telegram Bot listener waiting for your mobile /research inputs.
  2. Query Expansion: The AI Query Expander node takes the input query from either platform and splits it into 3 distinct, dimensional search vectors.
  3. Looping: The Split Queries node loops through each search term dynamically.
  4. Parallel Deep-Search: The Perplexity Search (HTTP Request) queries Perplexity's high-fidelity sonar-pro model to retrieve facts, statistics, and live web citations for each sub-topic.
  5. Aggregation: The Aggregate Results node re-assembles the parallel streams back into a unified data payload.
  6. Synthesis Brain: The Research Synthesizer (AI) node generates a citation-backed, 1,000+ word technical report structured in clean Markdown.
  7. Obsidian Delivery: The Save to Second Brain (Read/Write Files from Disk) node writes a formatted file to your local workspace, syncable with Syncthing or local vault setups.
  8. Dynamic Routing: The Is Telegram? (If) node checks if the execution originated from your Telegram Bot.
    • True: Dispatches a beautifully formatted Markdown message to Telegram.
    • False: Sends a detailed channel update to Slack.

2. Setup Instructions

  • Telegram Bot Setup: Message @BotFather on Telegram, create a new bot, and copy your API Token. Register your bot token in the n8n Credentials Manager under "Telegram API".
  • Perplexity API: Register for a developer account at Perplexity, load credits, and generate an API key. Replace your_perplexity_api_key_here in the HTTP Request headers.
  • Local Disk Node: Ensure your self-hosted n8n instance has local folder mounting configured so the "Read/Write Files from Disk" node can write to your local system. Update the target path to match your shared vault directory.
  • Slack Setup: Create a Slack App and set up Incoming Webhooks or an OAuth Token to enable alerts in your research channel.