🎫 Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review

384 views · 🎫 Ticket Management & Triage

Description

wflowscreenshot.jpg This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples.

How it works

  1. The workflow triggers on every new email from your linked mailbox.
  2. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions.
  3. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports).
  4. Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents.
  5. Send approved Reply: the approved response is sent as a reply to the email thread.
  6. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear.
Human Review in gotoHuman:

gthreviewscreen.jpg

How to set up

  1. Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing)
  2. Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear.
  3. In gotoHuman, select and create the pre-built review template “Support email agent” or import the ID: 6fzuCJlFYJtlu9mGYcVT.
  4. Select this template in the gotoHuman node.
  5. In the “gotoHuman: Fetch approved examples” http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman.

Requirements

How to customize

🔗 Nodes Used

HTTP Request, Gmail, Linear, Gmail Trigger, Filter, AI Agent

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup