8
n8n 中文网amn8n.com

Voicenotes - 发送提示

中级

这是一个Personal Productivity, Multimodal AI领域的自动化工作流,包含 15 个节点。主要使用 Set, Gmail, NocoDb, Webhook, Markdown 等节点。 基于Voicenotes、Claude Sonnet和邮件发送的语音转文本AI助手

前置要求
  • Google 账号和 Gmail API 凭证
  • HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "2Ee9KQhkVgnDX89w",
  "meta": {
    "instanceId": "25cd9c9e1e996c71452f1ab7a15c1f1aa174615661f703590b37f8d95476bb1b",
    "templateCredsSetupCompleted": true
  },
  "name": "Voicenotes - 发送提示",
  "tags": [],
  "nodes": [
    {
      "id": "7fdda682-e8ee-44c6-bf06-ec541a24c65b",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -448,
        -48
      ],
      "webhookId": "dbedd9a0-e0bd-4e70-8f62-87013f9dd9c3",
      "parameters": {
        "path": "dbedd9a0-e0bd-4e70-8f62-87013f9dd9c3",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "0b0463bf-f743-4144-9437-899dc2107e41",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -48,
        -48
      ],
      "parameters": {
        "text": "={{ $json.prompt }}",
        "options": {
          "systemMessage": "Your task is to act as a helpful assistant to the user change-to-your-name. You'll be receiving prompts through a workflow, so should respond with a detailed and thorough answer adhering to a single turn workflow. Daniel likes to receive well structured documents with headers to delineate between sections and when comparing products or information likes to receive a summary table at the end of the document providing a comparison matrix as well as a executive summary section at the start of the document Deliver thorough responses according to these principles, ensure accurate information and provide URLs referenced at the end of the documents in a separate sources section.  "
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "4a13883f-e859-48d6-9388-ae89906186d9",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -144,
        208
      ],
      "parameters": {
        "model": "anthropic/claude-sonnet-4",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "id": "ll4HQlhrNWJRj8la",
          "name": "OpenRouter account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4a5008e9-b7e2-4252-b459-8b1f50d50ca7",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        -48
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "0dd365bc-aeee-4f50-bc0d-780321756fa3",
              "name": "created",
              "type": "string",
              "value": "={{ $json.body.timestamp }}"
            },
            {
              "id": "e825ab7e-cc54-4695-a825-a3d1553510e5",
              "name": "note_title",
              "type": "string",
              "value": "={{ $json.body.data.title }}"
            },
            {
              "id": "4225bf89-fa21-4491-8b8a-4df7bbf2e819",
              "name": "prompt",
              "type": "string",
              "value": "={{ $json.body.data.transcript }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "39eecfc9-c96d-4a53-884e-e0465ec7650a",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        784,
        -224
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "7b71ef88-32ed-4cea-a291-b314ac19505b",
              "name": "note_title",
              "type": "string",
              "value": "={{ $('Edit Fields').item.json.note_title }}"
            },
            {
              "id": "fd4bd3e4-702b-49a4-83c7-bb1ef316c106",
              "name": "prompt",
              "type": "string",
              "value": "={{ $('Edit Fields').item.json.prompt }}"
            },
            {
              "id": "fc6e2202-d7f7-4e2c-9539-88eaf0a5dac4",
              "name": "output",
              "type": "string",
              "value": "={{ $json.output }}"
            },
            {
              "id": "f2e05227-be85-45b5-a4f9-bd6e483b48bf",
              "name": "created",
              "type": "string",
              "value": "={{ $('Webhook').item.json.body.timestamp }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "cf163b6e-fc37-4e60-98ed-8dbc8ad44797",
      "name": "保存提示",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        992,
        -224
      ],
      "parameters": {
        "table": "mg36i2thdctcg5b",
        "fieldsUi": {
          "fieldValues": [
            {
              "fieldName": "c76za9u4d0lhiyx",
              "fieldValue": "={{ $json.prompt }}"
            }
          ]
        },
        "operation": "create",
        "projectId": "p624vvyd3bqxgi8",
        "authentication": "nocoDbApiToken"
      },
      "credentials": {
        "nocoDbApiToken": {
          "id": "sb8UbIwHyyMJvHYN",
          "name": "NocoDB"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "052d2a20-72a9-4de4-9d12-e581d051d0ba",
      "name": "保存输出",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        1200,
        -208
      ],
      "parameters": {
        "table": "mn2ttgi7atggy1t",
        "fieldsUi": {
          "fieldValues": [
            {
              "fieldName": "cafb7x2p0a3cstt",
              "fieldValue": "={{ $('AI Agent').item.json.output }}"
            },
            {
              "fieldName": "cu62cluoip9v7v5",
              "fieldValue": "={{ $('Edit Fields1').item.json.prompt }}"
            },
            {
              "fieldName": "c4megtoozksi8kk",
              "fieldValue": "Voicenotes.com Automation (N8N)"
            }
          ]
        },
        "operation": "create",
        "projectId": "p624vvyd3bqxgi8",
        "authentication": "nocoDbApiToken"
      },
      "credentials": {
        "nocoDbApiToken": {
          "id": "sb8UbIwHyyMJvHYN",
          "name": "NocoDB"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "ce569030-9299-4312-86e5-38950ed6cf53",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        800,
        80
      ],
      "parameters": {
        "mode": "markdownToHtml",
        "options": {},
        "markdown": "={{ $json.output }}"
      },
      "typeVersion": 1
    },
    {
      "id": "de5e068a-bdb0-44c7-9301-3939efd1557b",
      "name": "编辑字段2",
      "type": "n8n-nodes-base.set",
      "position": [
        1008,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d3edb55b-54f0-4136-8e20-768f038ca3f8",
              "name": "title",
              "type": "string",
              "value": "={{ $('Webhook').item.json.body.data.title }}"
            },
            {
              "id": "777e57be-1c0a-4f58-90be-45ad50c9e3d6",
              "name": "prompt",
              "type": "string",
              "value": "={{ $('Webhook').item.json.body.data.transcript }}"
            },
            {
              "id": "9be7988d-ab49-4cae-96fc-3b49463f5c7e",
              "name": "output",
              "type": "string",
              "value": "={{ $json.data }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "d16cba15-86aa-4ddc-97db-0bf9e032aa81",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1232,
        80
      ],
      "webhookId": "07dc328c-a713-4a80-b83e-cd72faecbc06",
      "parameters": {
        "sendTo": "ai-outputs@yourdomain.com",
        "message": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>{{ $json.title }}</title>\n</head>\n<body style=\"margin:0; padding:20px; font-family:Arial, sans-serif; background-color:#f9f9f9; color:#333;\">\n  <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"max-width:600px; margin:0 auto; background:#ffffff; border:1px solid #ddd; border-radius:6px;\">\n    <tr>\n      <td style=\"padding:20px 30px;\">\n        <h1 style=\"font-size:24px; color:#222; margin-top:0;\">{{ $json.title }}</h1>\n\n        <h2 style=\"font-size:18px; color:#555; margin-bottom:10px;\">Prompt</h2>\n        <div style=\"background-color:#f1f1f1; border-left:4px solid #4CAF50; padding:12px 16px; margin-bottom:20px; white-space:pre-wrap;\">\n         {{ $json.prompt }}\n        </div>\n\n        <h2 style=\"font-size:18px; color:#555; margin-bottom:10px;\">AI Response</h2>\n        <div style=\"background-color:#eef6ff; border-left:4px solid #2196F3; padding:12px 16px; white-space:pre-wrap;\">\n        {{ $json.output }}\n        </div>\n      </td>\n    </tr>\n  </table>\n</body>\n</html>\n",
        "options": {
          "senderName": "DSR Holdings Apps"
        },
        "subject": "={{ $json.title }} (Voicenotes prompt)"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "UuWO2LZYfBum693T",
          "name": "DSRH Apps"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f5be241c-bc90-4cf1-a874-5952a8e4c810",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -288
      ],
      "parameters": {
        "content": "带有 'prompts' 标签的新笔记通过 Voicenotes 的 webhook 传递"
      },
      "typeVersion": 1
    },
    {
      "id": "03bccc9f-ccee-4029-8f43-617c45183054",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -288
      ],
      "parameters": {
        "content": "设置字段以移除 CF 标头(等)"
      },
      "typeVersion": 1
    },
    {
      "id": "a540419d-1cc7-45fc-b70e-6915b722ab24",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -304
      ],
      "parameters": {
        "content": "提示输入到 AI 智能体"
      },
      "typeVersion": 1
    },
    {
      "id": "ed322385-fb1d-4496-a8a9-00014e489dc4",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -368
      ],
      "parameters": {
        "content": "链 1:笔记保存到 NocoDB"
      },
      "typeVersion": 1
    },
    {
      "id": "fc3439d2-bd02-4ec1-9b91-6e236438231a",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        256
      ],
      "parameters": {
        "content": "链 2:笔记转换为 HTML 然后注入到电子邮件模板中"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a8412d69-b334-4830-a6dc-eaef324df043",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Output": {
      "main": [
        []
      ]
    },
    "Save Prompt": {
      "main": [
        [
          {
            "node": "Save Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Save Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 个人效率, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量15
分类2
节点类型8
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流