Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Gmail to Linear Ticket Management
13
Views
0
Downloads
13
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Customer Support
Automation Orchestrator
n8n
Integrations
OpenAI
Linear
Gmail
Trigger Type
Schedule
Approx setup time ≈ 45 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail to Linear Ticket Management?

Leon Petrou
FREE TEMPLATE
Automate Gmail to Linear Ticket Management
13
Views
0
Downloads
13
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Customer Support
Automation Orchestrator
n8n
Integrations
OpenAI
Linear
Gmail
Trigger Type
Schedule
Approximate setup time ≈ 45 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Teams get a lot of support emails and need a fast way to turn them into work items. This setup checks a shared Gmail inbox, sorts each message with AI, and opens a clear issue in Linear. Support and product groups get ready to work tickets with labels and priority already set.

A schedule runs on a timer and pulls recent messages from Gmail using a search like to:support@example.com. Duplicates are ignored by marking each email id as seen, and the HTML body is converted to markdown for clean reading. An AI model then creates labels, sets a priority score, and rewrites a short title and description using a strict schema so fields are reliable. A chain builds the final content with reporter and time stamps. The result is sent to Linear to create an issue that includes a clear summary and a readable description.

Use your own support address in the Gmail filter and adjust the prompt to list the label names and the priority scale used by your team. Expect less manual triage time, faster handoffs, and a more consistent backlog. Many teams cut daily triage from about 30 minutes to around 5 minutes. This fits groups that route support to engineering or product and want a simple flow that runs all day without babysitting.

Copy link

Tools Required

OpenAI
Sign up
Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Linear
Sign up
Free: $0 / mo, includes API access (2 teams, 250 issues)
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

What this workflow does?

  • Scheduled polling pulls new messages at regular intervals
  • Gmail search filter targets the support address to reduce noise
  • Remove duplicates marks each email id as seen so items are processed once
  • Markdown conversion turns the HTML email body into clean text for parsing
  • AI generates labels, a priority score, a short summary, and a clear description
  • Structured output parser enforces a schema for reliable fields
  • Linear issue creation maps AI output to title, description, labels, and priority

What are the benefits?

  • Reduce manual triage from about 30 minutes a day to around 5 minutes
  • Automate up to 90 percent of repetitive ticket setup tasks
  • Improve labeling and priority accuracy by using a strict schema
  • Connect Gmail and Linear so tickets move without copy paste
  • Handle several times more support volume with the same team

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, OpenAI and Linear. See the Tools Required section above for links to create accounts with these services.
  3. Open the Gmail node in the canvas and create a Gmail OAuth credential. In the credential window choose your Google account and allow read access to email.
  4. Open the OpenAI Chat Model node and create a new OpenAI API Key credential. In your OpenAI account copy your API key from the API page and paste it into n8n.
  5. Open the Linear node and create a new Linear API Key credential. In Linear generate a personal API token in your settings, then paste it into n8n and save.
  6. In the Gmail Get Recent Messages node set the search query to your support address such as to:youralias@domain.com and adjust the limit. Click Execute node to confirm one or more messages are found.
  7. In the Mark as Seen node confirm the dedupe value is set to {{$json.id}}. Run the node twice with the same email to make sure it is ignored on the second run.
  8. Open the Markdown node and confirm the html field uses {{$json.html}}. Execute the node and check that the markdown output is readable.
  9. Open the Generate Issue From Support Request node and edit the system prompt. List the exact labels your team uses and define the priority scale. Make sure the OpenAI model and the structured output parser are selected.
  10. In the Linear Create Issue node map the title to {{$json.output.summary}} and the description to {{$json.output.description}}. Choose the right team and project in Linear, then Execute node to create a test issue.
  11. Set the Schedule Trigger to run on an hourly interval or your preferred cadence. Turn on the workflow, send a test email to the support address, and watch Executions for results. If no emails appear, adjust the Gmail search. If the parser fails, simplify the prompt or ensure the email body is not empty.

Need help or want to customize this?

Similar Templates

n8n
Customer Support
Automate Gmail Reply Drafting via Telegram
Turn new Gmail messages into fast reply drafts using a quick voice note on Telegram. Great for customer support and busy teams that need to clear the inbox while on the move. You speak the response, and a clean draft appears in Gmail. Here is how it works. A Gmail trigger checks for new messages in the Inbox every minute. An AI check decides if the message needs a reply and ignores newsletters and no reply senders. If a reply is needed, the email details go to Telegram. When you answer by replying with a voice note, the bot fetches the audio, sends it to OpenAI for transcription, and then uses your words plus the original email to write a polished response. A draft is created in the same thread, and a link is sent back to you in Telegram. You will need a Gmail account, a Telegram bot, and an OpenAI API key. Add your Telegram chat ID in the workflow so messages reach you. Expect faster replies, less typing, and fewer missed emails. Use it for support tickets, sales questions, and vendor follow ups where quick, accurate replies matter.
4 views
view
n8n
Customer Support
Automate Gmail and Outlook Support Replies
Turn inbound email into fast, clear replies with a simple review step. Ideal for support teams that need quick answers without losing control. New messages are read, summarized, drafted, and sent only after approval. Incoming emails are captured over IMAP from Gmail or Outlook. The message is converted to Markdown so the model can read it clearly, then a summarization chain creates a short brief in about 100 words. An agent can reference your business knowledge to keep answers on brand and policy. A writing node produces a professional reply under 100 words, and a reviewer receives both the original email and the draft for a quick check. The final email uses Re plus the original subject and goes back to the sender through SMTP using your mailbox details. You only need IMAP and SMTP access plus API keys for the language models. Most teams cut reply prep from 10 minutes to 1 minute and keep a steady tone across many agents. Great fit for support queues, shared mailboxes, and any team that wants AI assistance with a human in the loop.
10 views
view
n8n
Customer Support
Automate Gmail AI Reply Drafts
Turn labeled emails into ready to send drafts in Gmail. The flow scans your inbox on a schedule, reads the newest message in each labeled thread, and writes a helpful reply with an AI assistant. Ideal for support and sales inboxes that need fast, consistent first responses. A minute based trigger starts the run. Gmail nodes find threads with a chosen label and fetch only the last message, so AI context stays relevant. The message goes to an OpenAI Assistant, which returns a Markdown reply. The flow converts Markdown to HTML, builds an RFC 822 email, encodes it to base64, and creates a draft in the same thread. The label is then removed to prevent a second pass. Set up Gmail OAuth and an OpenAI API key, then pick the label to watch. Expect faster replies and less typing while agents keep full control by reviewing drafts before sending. Use it for support queues, lead intake, and shared inboxes that need a steady tone and quick follow up.
8 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.