基于 Google Finance、SerpAPI 和 OpenAI 的财务数据问答聊天机器人
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 Set, HttpRequest, Agent, LmChatOpenAi, MemoryBufferWindow 等节点。 集成 Google Finance、SerpAPI 和 OpenAI 的财务数据问答聊天机器人
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9"
},
"nodes": [
{
"id": "19113e71-3a28-4741-b036-efc473d6c804",
"name": "OpenAI 聊天模型5",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
3216,
8592
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5-nano",
"cachedResultName": "gpt-5-nano"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "44ad0df9-a6d0-417c-ab3e-4d20aa3c41c3",
"name": "简单记忆1",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
3536,
8448
],
"parameters": {
"sessionKey": "={{ $('Sample Chatbot').item.json.sessionId }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "7af7f3d7-f9b2-488a-a418-fbbe1a909ff3",
"name": "将对象转换为文本1",
"type": "n8n-nodes-base.set",
"position": [
3008,
8128
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9578adb8-b0e3-4629-a375-8ac9585022f2",
"name": "data",
"type": "string",
"value": "={{ $json.markets }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "85db5e3f-b21c-4cf4-814c-4d7312a9eed4",
"name": "便签60",
"type": "n8n-nodes-base.stickyNote",
"position": [
2272,
7936
],
"parameters": {
"color": 7,
"width": 1488,
"height": 928,
"content": "# 📊 与 Google Finance 对话"
},
"typeVersion": 1
},
{
"id": "a5719b06-a39b-4661-98cc-892b895128d6",
"name": "近期交易",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
7936
],
"parameters": {
"width": 400,
"height": 928,
"content": ""
},
"typeVersion": 1
},
{
"id": "b2603c21-3c4b-45fb-9e8c-7e730b2f9519",
"name": "SerpAPI 金融搜索1",
"type": "n8n-nodes-base.httpRequest",
"position": [
2704,
8544
],
"parameters": {
"url": "https://serpapi.com/search.json?engine=google_finance&q=^GSPC&api_key=yourapikey",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "28d8c26f-e9a1-4480-94b7-1fb114086ad9",
"name": "与 Google Finance 对话",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
3328,
8096
],
"parameters": {
"text": "=question: {{ $('Sample Chatbot').item.json.chatInput }} market data: {{ $json.data }}",
"options": {
"systemMessage": "=You are a helpful assistant. Take questions from the user and answer based on the market data. \n"
},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "6f6507fe-fcc2-462c-a9ab-e8adb6e956e8",
"name": "便签 31",
"type": "n8n-nodes-base.stickyNote",
"position": [
3104,
8416
],
"parameters": {
"color": 3,
"width": 288,
"height": 304,
"content": "### 2️⃣ 设置 OpenAI 连接"
},
"typeVersion": 1
},
{
"id": "10e3b585-6d7d-4fb3-aedd-9c0fb56d0062",
"name": "便签32",
"type": "n8n-nodes-base.stickyNote",
"position": [
2608,
8256
],
"parameters": {
"color": 3,
"width": 272,
"height": 432,
"content": "### 1️⃣ 添加您的 SerpApi 密钥"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Simple Memory1": {
"ai_memory": [
[
{
"node": "Chat with Google Finance",
"type": "ai_memory",
"index": 0
}
]
]
},
"OpenAI Chat Model5": {
"ai_languageModel": [
[
{
"node": "Chat with Google Finance",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Turn Objects to Text1": {
"main": [
[
{
"node": "Chat with Google Finance",
"type": "main",
"index": 0
}
]
]
},
"SerpAPI Finance Search1": {
"main": [
[
{
"node": "Turn Objects to Text1",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
Set
Merge
Split Out
+6
13 节点Robert Breen
AI 聊天机器人
使用 GPT-4o 通过自然语言查询 Monday.com 任务
使用 GPT-4o 通过自然语言查询 Monday.com 任务
Set
Merge
Aggregate
+6
13 节点Robert Breen
AI 聊天机器人
使用OpenAI GPT自然语言查询Trello看板
使用OpenAI GPT通过自然语言查询Trello看板
Set
Merge
Trello
+6
15 节点Robert Breen
AI 聊天机器人
新闻搜索与分类聊天机器人(Google News、SerpAPI和OpenAI)
使用Google News、SerpAPI和OpenAI的新闻搜索与分类聊天机器人
Split Out
Aggregate
Serp Api
+5
11 节点Robert Breen
AI 聊天机器人
🚀 面向Shopify品牌的AI驱动WhatsApp客户支持
面向Shopify品牌的AI驱动WhatsApp客户支持(LLM智能体)
Set
Slack
Switch
+11
30 节点Ruthwik
杂项
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
使用 GPT-4o-mini 代理自动进行潜在客户资格认定与客户支持
If
Set
Code
+8
16 节点Robert Breen
客户培育
工作流信息
难度等级
中级
节点数量9
分类2
节点类型6
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流