使用 Perplexity AI 和 Telegram 引用的深度研究助手
高级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 Filter, Telegram, PerplexityTool, Agent, TelegramTrigger 等节点。 使用 Perplexity AI 和 Telegram 引用的深度研究助手
前置要求
- •Telegram Bot Token
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "93492ad7b85fe52ec3ead1e96f0add030f2389fbe9175f2fc6dc08fb0457b641",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "c75d8927-6322-4d3e-a2a0-21e719ffc63e",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-384,
-224
],
"parameters": {
"text": "={{ $json.chatInput }} {{ $json.message.text }}",
"options": {
"systemMessage": "=You are a research-focused AI assistant that combines real-time web intelligence from Perplexity to generate insightful, concise, and well-cited answers to my queries.\n\n🔧 Tool Usage Logic\n\nUse the Perplexity Sonar tool for:\n\t•\tQuick lookups and factual summaries\n\t•\tDefinitions, current events, book/show/movie synopses\n\t•\tExplainers for theories, concepts, and popular discussions\n\t•\tPodcast and video summaries\n\t•\tTrend monitoring and fast comparisons\n\nUse the Perplexity Sonar Pro tool for:\n\t•\tQuestions requiring synthesis of multiple sources or expert reasoning\n\t•\tBusiness research (competitor analysis, investor briefs, product comparisons)\n\t•\tScientific or academic deep-dives\n\t•\tStructured summarization (transcripts, feedback, legal docs, surveys)\n\t•\tMarket trend analysis, job monitoring, and sentiment clustering\n\t•\tLong-form content aggregation across industries, geographies, or verticals\n\n🧠 Output Guidelines\n\t•\tFocus only on answering the user’s question. Do not offer extra services unless explicitly requested.\n\t•\tDeliver answers in clear, structured formats\n\t•\tInclude citations with clickable URLs from the original sources used by Perplexity. \n\t•\tIf the query contains ambiguity, politely ask for clarification instead of guessing.\n\n📌 Style & Tone\n\t•\tMaintain a professional, neutral tone.\n\t•\tUse plain language for general audiences unless the context requires technical specificity.\n\t•\tPrioritize depth, clarity, and relevance over length.\n\t•\tAvoid filler language and generic intros—get straight to the value.\n\nIf I ask about a person, use Sonar Pro and in addition to all details, get links to their social profiles: Instagram, LinkedIn, and whichever others you can find."
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "0df084d7-379c-4a44-96c6-9faf75168485",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-720,
64
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "GHCe1xYUWsC8pVC6",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "00b2cd49-ab28-4148-9b5a-f11345b90e65",
"name": "窗口缓冲内存",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-416,
48
],
"parameters": {
"sessionKey": "={{ $json.message.chat.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "b7b7feb3-0eaf-4607-86cd-46ec16f57258",
"name": "Perplexity Sonar",
"type": "n8n-nodes-base.perplexityTool",
"position": [
-80,
48
],
"parameters": {
"model": "sonar",
"options": {},
"messages": {
"message": [
{}
]
},
"requestOptions": {}
},
"credentials": {
"perplexityApi": {
"id": "iVyxXY6X3aKOLsni",
"name": "Perplexity account 2"
}
},
"typeVersion": 1
},
{
"id": "b88c3c4c-fc80-4f4e-baf5-2a92cafd49cb",
"name": "Perplexity Sonar Pro",
"type": "n8n-nodes-base.perplexityTool",
"position": [
128,
48
],
"parameters": {
"model": "sonar-pro",
"options": {},
"messages": {
"message": [
{}
]
},
"requestOptions": {}
},
"credentials": {
"perplexityApi": {
"id": "iVyxXY6X3aKOLsni",
"name": "Perplexity account 2"
}
},
"typeVersion": 1
},
{
"id": "7cb5983f-c2a1-4401-9fd2-ec045c718247",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-992,
-224
],
"webhookId": "d7061cf0-267b-4818-883f-42972ea7672f",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"typeVersion": 1.1
},
{
"id": "bb263737-5be3-4807-9da3-db4e31fc1cf8",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
-16,
-224
],
"webhookId": "e38f4bdb-0f47-45b0-a258-20cb49c3b4f4",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {}
},
"typeVersion": 1.2
},
{
"id": "f8da851b-40f5-4bad-a6d2-fa0488c59112",
"name": "过滤器",
"type": "n8n-nodes-base.filter",
"position": [
-672,
-224
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "be4dd9dc-55f3-4668-a5e8-0205c230fb75",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.message.from.id }}",
"rightValue": 5675741296
}
]
}
},
"typeVersion": 2.2
},
{
"id": "e298f904-ec98-4cc7-b599-66b044a280a2",
"name": "工作流概述",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1504,
-416
],
"parameters": {
"color": 4,
"width": 350,
"height": 356,
"content": "📋 工作流概览"
},
"typeVersion": 1
},
{
"id": "038365a8-bb63-4534-8dc9-6acef4f33682",
"name": "Telegram 设置",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1088,
-464
],
"parameters": {
"width": 300,
"height": 406,
"content": "📱 TELEGRAM 触发器设置"
},
"typeVersion": 1
},
{
"id": "e5778cb2-410b-42f8-9516-5b75e70a0dab",
"name": "安全过滤器",
"type": "n8n-nodes-base.stickyNote",
"position": [
-752,
-544
],
"parameters": {
"color": 2,
"width": 280,
"height": 460,
"content": "🔒 用户过滤器"
},
"typeVersion": 1
},
{
"id": "1aa1f2e7-69ab-467d-9445-5c822e250d17",
"name": "AI Agent 配置",
"type": "n8n-nodes-base.stickyNote",
"position": [
-432,
-624
],
"parameters": {
"color": 6,
"width": 320,
"height": 528,
"content": "🤖 AI AGENT 核心"
},
"typeVersion": 1
},
{
"id": "261f40c0-6f40-492a-a455-f032331d0e4e",
"name": "Telegram 响应",
"type": "n8n-nodes-base.stickyNote",
"position": [
-96,
-528
],
"parameters": {
"width": 280,
"height": 444,
"content": "📤 TELEGRAM 响应"
},
"typeVersion": 1
},
{
"id": "11bbb9dc-ebf2-4ec1-9a9d-00e366c21d30",
"name": "OpenAI 设置",
"type": "n8n-nodes-base.stickyNote",
"position": [
-816,
16
],
"parameters": {
"color": 5,
"width": 280,
"height": 470,
"content": ""
},
"typeVersion": 1
},
{
"id": "5ee33d92-73d4-410d-bbfd-046633442917",
"name": "记忆配置",
"type": "n8n-nodes-base.stickyNote",
"position": [
-512,
16
],
"parameters": {
"color": 7,
"width": 260,
"height": 466,
"content": ""
},
"typeVersion": 1
},
{
"id": "fcf87cde-7a38-4683-9b1a-976103daf0c9",
"name": "Perplexity Pro",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
16
],
"parameters": {
"color": 3,
"width": 636,
"height": 998,
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Filter": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Perplexity Sonar": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Perplexity Sonar Pro": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI驱动的Telegram发票提取器
基于AI的Telegram发票提取器,数据导出至Airtable
Set
Switch
Telegram
+7
17 节点BizThrive.ai
杂项
餐厅预订
基于AI的餐厅预订系统,集成Telegram、日历和邮件通知
Set
Gmail
Switch
+9
21 节点Aziz B
AI 聊天机器人
币安AI代理v1.02
在Telegram中访问实时币安市场数据,使用GPT-4o格式化
Set
Code
Telegram
+8
35 节点Don Jayamaha Jr
加密货币交易
Upbit AI代理v1.02
在Telegram中使用GPT-4o-mini访问Upbit加密货币市场数据
Set
Code
Telegram
+8
35 节点Don Jayamaha Jr
加密货币交易
HTX AI代理 v1.02
使用HTX API、GPT-4o和Telegram分析加密货币市场数据
Set
Code
Telegram
+8
35 节点Don Jayamaha Jr
杂项
Bitget AI代理 v1.02
使用GPT-4o + Telegram获取Bitget现货市场实时数据
Set
Code
Telegram
+8
31 节点Don Jayamaha Jr
加密货币交易