Automate deep, cited web research directly from Telegram using this powerful n8n workflow. It leverages an n8n AI agent with Perplexity Sonar and Sonar Pro for accurate, real-time results.
Download this n8n workflow template and start using it instantly.
ai_agents and tools integration within n8n.This sophisticated n8n workflow provides a secure, private research bot accessible instantly via Telegram. It solves the problem of needing quick, highly cited, and structured information by intelligently routing user queries to the most appropriate Perplexity AI tool (Sonar for quick facts, Sonar Pro for deep, synthesized research) based on the context provided in the AI Agent's system prompt. By using this specific set of n8n templates, users gain a streamlined and efficient automated research pipeline. The inclusion of an initial Filter n8n node is crucial for security, ensuring that only an authorized, pre-defined user can activate this resource-intensive n8n workflow, protecting the system from unauthorized usage and API abuse. This robust n8n automation maximizes research efficiency and output quality.
The entire process begins with the Telegram Trigger n8n node, which activates the flow whenever a new chat message is received. Immediately, the request is passed to a Filter n8n node. This critical security step verifies the sender's Telegram User ID against a pre-configured ID, ensuring only the intended user can proceed. Once approved, the message content flows into the core component: the AI Agent n8n node. This agent acts as the decision engine. It uses the configured OpenAI Chat Model (gpt-4o-mini) for complex reasoning and maintains conversational history through the Window Buffer Memory n8n node, using the chat ID as the session key. The agent intelligently selects between the two available Perplexity tools, Sonar (for quick facts) and Sonar Pro (for complex synthesis), based on the query. After retrieving and synthesizing the deep research, including clickable source citations as specified in the system message, the AI Agent produces the final output. This high-quality response is then automatically sent back to the user via the final Telegram n8n node, completing this powerful n8n workflow.
Telegram Trigger n8n node with your bot token and set up the webhook URL.OpenAI Chat Model n8n node.Perplexity Sonar and Perplexity Sonar Pro n8n node instances.Filter n8n node and update the static user ID value (5675741296 in the provided n8n templates) to your personal Telegram User ID. Failure to update this ID will prevent the n8n workflow from running for you.Telegram Trigger. Telegram Trigger (n8n trigger): The starting point for this n8n automation. It listens for incoming chat messages to initiate the research process.
Filter (n8n node): A security gate that checks if the incoming message sender ID matches the defined user ID. This ensures the n8n workflow is private and secure.
AI Agent (n8n node): The core intelligence of the flow. It orchestrates the language model and the research tools based on its detailed system message configuration. It determines whether a query needs the standard Perplexity Sonar or the specialized Sonar Pro tool.
OpenAI Chat Model (n8n node): Provides the reasoning and language understanding capabilities for the AI Agent, currently configured to use gpt-4o-mini for efficient processing within this n8n workflow.
Window Buffer Memory (n8n node): Maintains context for ongoing conversations by using the Telegram chat ID as a session key, allowing the n8n workflow to remember previous turns.
Perplexity Sonar & Perplexity Sonar Pro (n8n nodes): These nodes provide real-time, highly cited web research capabilities. The AI Agent dynamically chooses between the two based on the complexity of the research required.
AI Agent, back to the user's Telegram chat.Deploy this powerful n8n workflow to automate deep research. Use AI agents for topic clarification, Tavily for data fetching, and publish structured reports directly to Notion.

Use this powerful n8n workflow template to automate deep research, content planning, drafting, and final editing of targeted sales lead magnets using a team of interacting AI agents (LangChain).

Automate scraping US Grants.gov for AI opportunities, determine eligibility using LLMs, track leads in Airtable, and generate daily email alerts using this powerful n8n workflow. Use this n8n template to streamline your grant hunting process.

Use this secure n8n workflow to remotely delete Dialogflow Intents using specific commands sent via Telegram. This powerful automation leverages the HTTP Request n8n node for API interaction.

Automate daily currency exchange rate delivery using this robust n8n workflow. Integrate CurrencyFreaks API data and distribute alerts via Email and WhatsApp using a scheduled n8n trigger.









































