8
n8n 中文网amn8n.com

在 Obsidian Notes 中获取 Airtable 数据

中级

这是一个AI领域的自动化工作流,包含 7 个节点。主要使用 Webhook, AirtableTool, Agent, RespondToWebhook, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 通过 AI 和 Obsidian Notes 获取 Airtable 数据

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Airtable API Key
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "aZSJ2BZQhNduZZ8w",
  "meta": {
    "instanceId": "d47f3738b860eed937a1b18d7345fa2c65cf4b4957554e29477cb064a7039870",
    "templateCredsSetupCompleted": true
  },
  "name": "在 Obsidian Notes 中获取 Airtable 数据",
  "tags": [
    {
      "id": "zalLN3OHeRqcq4di",
      "name": "Obsidian",
      "createdAt": "2024-12-01T19:07:59.925Z",
      "updatedAt": "2024-12-01T19:07:59.925Z"
    }
  ],
  "nodes": [
    {
      "id": "584cfe61-7f1b-4deb-ab4b-45a5ffd20daf",
      "name": "Airtable",
      "type": "n8n-nodes-base.airtableTool",
      "position": [
        540,
        340
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "list",
          "value": "appP3ocJy1rXIo6ko",
          "cachedResultUrl": "https://airtable.com/appP3ocJy1rXIo6ko",
          "cachedResultName": "table"
        },
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "tblywtlpPtGQMTJRm",
          "cachedResultUrl": "https://airtable.com/appP3ocJy1rXIo6ko/tblywtlpPtGQMTJRm",
          "cachedResultName": "Dummy"
        },
        "options": {},
        "operation": "search"
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "yiZ7ZC1md4geZovu",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "8a100c92-7971-464b-b3c0-18272f0a0bef",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        220,
        340
      ],
      "parameters": {
        "model": "gpt-4o-mini",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "q8L9oWVM7QyzYEE5",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "98887b9b-2eae-4a2e-af2b-d40c1786c5a2",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        280,
        200
      ],
      "parameters": {
        "text": "={{ $json.body.content }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.6
    },
    {
      "id": "91296976-3d78-4a9e-9f4c-a4136abcca4e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -260
      ],
      "parameters": {
        "color": 7,
        "width": 497.9113826976365,
        "height": 389.9939760040372,
        "content": "[![YouTube 视频](https://img.youtube.com/vi/2PIdeTgsENo/0.jpg)](https://www.youtube.com/watch?v=2PIdeTgsENo)"
      },
      "typeVersion": 1
    },
    {
      "id": "7adae874-d388-4265-aff8-28a1970bd0fb",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        -240
      ],
      "parameters": {
        "width": 563.3824678865192,
        "height": 368.0048034646952,
        "content": "## 使用 AI Agent 在 Obsidian 中获取 Airtable 数据"
      },
      "typeVersion": 1
    },
    {
      "id": "52c40581-656d-45b5-b366-d67cf2474312",
      "name": "响应 Obsidian",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        700,
        200
      ],
      "parameters": {
        "options": {},
        "respondWith": "text",
        "responseBody": "={{ $json.output }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "f2bf502e-5e6f-4e71-8c4f-27ec2dc5ab67",
      "name": "在 Obsidian 中设置 Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -40,
        200
      ],
      "webhookId": "59fc8248-d3f7-4dbc-bdf3-39d59e427160",
      "parameters": {
        "path": "59fc8248-d3f7-4dbc-bdf3-39d59e427160",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "dab99881-2d04-4113-9a4e-2f942fdf1c24",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Obsidian",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Set Up in Obsidian": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量7
分类1
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流