Gmail 触发节点#
¥Gmail Trigger node
Gmail 是 Google 开发的电子邮件服务。Gmail 触发器节点可以根据 Gmail 中的事件启动工作流。
¥Gmail is an email service developed by Google. The Gmail Trigger node can start a workflow based on events in Gmail.
Examples and templates
有关使用示例和模板以帮助你入门,请参阅 n8n 的 Gmail 触发器集成 页面。
¥For usage examples and templates to help you get started, refer to n8n's Gmail Trigger integrations page.
事件#
¥Events
- 已接收消息:此节点会在选定的轮询时间触发新消息。
¥Message Received: The node triggers for new messages at the selected Poll Time.
节点参数#
¥Node parameters
使用以下参数配置节点:
¥Configure the node with these parameters:
- 用于连接的凭据:选择或创建一个新的 Google 凭据用于触发器。有关设置新凭据的更多信息,请参阅 Google 凭据。
¥Credential to connect with: Select or create a new Google credential to use for the trigger. Refer to Google credentials for more information on setting up a new credential.
- 投票次数:选择轮询模式以设置轮询的触发频率。你的模式选择将添加或删除相关字段。请参阅 轮询模式选项 配置每种模式类型的参数。
¥Poll Times: Select a poll Mode to set how often to trigger the poll. Your Mode selection will add or remove relevant fields. Refer to Poll Mode options to configure the parameters for each mode type.
- 简化:选择是否返回简化版响应(已启用,默认)或原始数据(已禁用)。
¥Simplify: Choose whether to return a simplified version of the response (turned on, default) or the raw data (turned off).
-
简化版本返回电子邮件消息 ID、标签和邮件头,包括:发件人、收件人、抄送、密送和主题。
¥The simplified version returns email message IDs, labels, and email headers, including: From, To, CC, BCC, and Subject.
节点过滤器#
¥Node filters
使用这些过滤器进一步优化节点的行为:
¥Use these filters to further refine the node's behavior:
- 包含垃圾邮件和已删除邮件:选择节点是否应在垃圾邮件和已删除邮件文件夹中有新邮件时触发(开启)或不触发(关闭)。
¥Include Spam and Trash: Select whether the node should trigger on new messages in the Spam and Trash folders (turned on) or not (turned off).
- 标签名称或 ID:仅对添加了所选标签的消息触发。选择要应用的标签名称,或输入表达式以指定 ID。下拉列表将根据你选择的凭据自动填充。
¥Label Names or IDs: Only trigger on messages with the selected labels added to them. Select the Label names you want to apply or enter an expression to specify IDs. The dropdown populates based on the Credential you selected.
- 搜索间隔:输入 Gmail 搜索筛选过滤器(例如
from:)以仅在满足筛选条件时触发节点。有关更多信息,请参阅 在 Gmail 中优化搜索。
¥Search: Enter Gmail search refine filters, like from:, to trigger the node on the filtered conditions only. Refer to Refine searches in Gmail for more information.
- 读取状态:选择接收未读邮件和已读邮件、仅接收未读邮件(默认)或仅接收已读邮件。
¥Read Status: Choose whether to receive Unread and read emails, Unread emails only (default), or Read emails only.
- 发件人:输入电子邮件地址或部分发件人名称,以仅对来自该发件人的消息触发。
¥Sender: Enter an email or a part of a sender name to trigger only on messages from that sender.
相关资源#
¥Related resources
n8n 为 Gmail 提供应用节点。你可以找到节点文档 此处。
¥n8n provides an app node for Gmail. You can find the node docs here.
在 n8n 网站上查看 示例工作流及相关内容。
¥View example workflows and related content on n8n's website.
有关其 API 的详细信息,请联系 Google Gmail API 文档。
¥Refer to Google's Gmail API documentation for details about their API.
常见问题#
¥Common issues
有关常见问题或建议的解决方案,请参阅 常见问题。
¥For common questions or issues and suggested solutions, refer to Common issues.