WorkflowChatGPTOpen

Outputparserstructured Workflow: ChatGPT, Condition and Gmail

Triggered manually or by an app event. Connects Condition, Gmail, Stop And Error, Telegram. 1. New Email Received Our workflow is triggered when a new email comes in. We use an IF node here to only run the automation on incoming emails to the INBOX - not in the SENT folder. 2. Check If Email Needs a Response We use ChatGPT to check if the email needs a reply. Anything sent with an "unsubscribe" bu

Front matter
name: Outputparserstructured Workflow
description: Triggered manually or by an app event. Connects Condition, Gmail, Stop And Error, Telegram. ## 1. New Email Received Our workflow is triggered when a new email comes in. We use an IF node here to only run the automation on incoming emails to the INBOX - not in the SENT folder. ## 2. Check If Email Needs a Response We use ChatGPT to check if the email needs a reply. Anything sent with an "unsubscribe" button or "manage preferences" is ignored. Anything that comes from a company (e.g. sent from "[email removed]"), or has the format of a newsletter doesn't need a response. We use
category: Automation
kind: Workflow
software: Condition|Gmail|Stop And Error|Telegram

Outputparserstructured Workflow

Triggered manually or by an app event. Connects Condition, Gmail, Stop And Error, Telegram. ## 1. New Email Received

Our workflow is triggered when a new email comes in.

We use an IF node here to only run the automation on incoming emails to the INBOX - not in the SENT folder. ## 2. Check If Email Needs a Response

We use ChatGPT to check if the email needs a reply. Anything sent with an "unsubscribe" button or "manage preferences" is ignored. Anything that comes from a company (e.g. sent from "[email removed]"), or has the format of a newsletter doesn't need a response.

We use

Steps

  • Structured Output Parser (noOp)
  • OpenAI Chat Model (noOp)
  • Text Email (telegram)
  • OpenAI (noOp)
  • New Email Received (gmailTrigger)
  • In the Inbox? (if)
  • Needs a response? (if)
  • Telegram Bot Message Received (telegramTrigger)
  • It needs to be an audio message + a reply! (telegram)
  • Get Audio File (telegram)
  • Create Email Draft (gmail)
  • Direct to Draft (telegram)
  • Sticky Note4 (stickyNote)
  • Sticky Note (stickyNote)
  • Does Email Need a Response? (noOp)
  • Sticky Note1 (stickyNote)
  • Is Type Audio Message + Reply? (if)
  • Sticky Note5 (stickyNote)
  • Sticky Note6 (stickyNote)
  • OpenAI Chat Model1 (noOp)
  • Write Polished Reply (noOp)
  • Sticky Note7 (stickyNote)
  • Set Chat ID (set)
  • Sticky Note2 (stickyNote)
  • Error Handler (stopAndError)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Telegram/0916_Telegram_Gmail_Create_Triggered.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.