1. Workflow Architecture
- Triggers (Dual Entry):
- Slack Command / Webhook: Receives research payloads from your Slack channels.
- Telegram Trigger: Standard Telegram Bot listener waiting for your mobile
/researchinputs.
- Query Expansion: The AI Query Expander node takes the input query from either platform and splits it into 3 distinct, dimensional search vectors.
- Looping: The Split Queries node loops through each search term dynamically.
- Parallel Deep-Search: The Perplexity Search (HTTP Request) queries Perplexity's high-fidelity
sonar-promodel to retrieve facts, statistics, and live web citations for each sub-topic. - Aggregation: The Aggregate Results node re-assembles the parallel streams back into a unified data payload.
- Synthesis Brain: The Research Synthesizer (AI) node generates a citation-backed, 1,000+ word technical report structured in clean Markdown.
- 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.
- 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
@BotFatheron 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_herein 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.