Automate Slack Support Tickets with n8n & ChatGPT Integration

This workflow automates converting Slack user messages tagged with a ticket emoji into Linear support tickets using n8n and ChatGPT. It eliminates duplicate tickets and speeds up issue tracking by generating titles, summaries, and priorities automatically.
slack
linear
chainLlm
+6
Workflow Identifier: 1342
NODES in Use: Slack, Schedule Trigger, Set, Linear, Aggregate, If, Merge, Chain LLM, Structured Output Parser

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow watches a Slack channel for messages with the ticket emoji 🎫.

It stops creating duplicate tickets by checking message IDs.

Using AI (ChatGPT), it makes a short title, description, priority, and suggestions for each ticket.

Then it creates a new support ticket in Linear.

It checks Slack every minute to handle tickets fast without needing people to run it.

This saves time and helps teams avoid missing or repeating tickets.


Who should use this workflow

This is for support teams who get many Slack messages needing ticketing.

Teams that spend too much time manually making tickets in Linear will benefit.

It suits users with Slack channels dedicated to tickets.

Users comfortable with basic n8n import and configuration will find this helpful.


Tools and services used

  • Slack API: To search ticket messages in a specific Slack channel.
  • Linear API: To get existing tickets and create new ones.
  • OpenAI API (ChatGPT): To create clear ticket titles, summaries, and priorities.
  • n8n: To automate the whole workflow of checking Slack and making tickets.

Inputs, processing, and outputs

Inputs

  • Slack messages from channel #n8n-tickets having the ticket emoji 🎫.
  • Existing support tickets from Linear.

Processing

  • Search Slack channel every minute for messages with 🎫 emoji.
  • Get existing Linear tickets to avoid duplicates.
  • Extract message ID hashes from ticket descriptions for duplicate checking.
  • Use AI (ChatGPT) to generate ticket title, summary, suggestions, and priority from Slack message text.
  • Create new Linear tickets only if no duplicate hash found.
  • Log metadata like username, timestamp, permalink for traceability.

Outputs

  • New support ticket in Linear with AI-created title, detailed description, priority, and Slack message metadata.

Beginner step-by-step: How to use this workflow in n8n

Download and Import

  1. Click the Download button on this page to get the workflow file.
  2. Inside n8n editor, click on the menu and choose Import from File.
  3. Select the downloaded workflow file to import.

Configure Credentials and IDs

  1. Add your Slack API credentials in the Slack node.
  2. Insert your Linear API token in the Linear nodes.
  3. Paste your OpenAI API Key in the ChatGPT (Chain LLM) node.
  4. Adjust any channel names, Team IDs, and State IDs to match your account setup.

Test and Activate

  1. Run the workflow manually once to check it fetches messages and creates tickets properly.
  2. Look into node outputs for errors and fix any credential or configuration issues.
  3. After testing, activate the Schedule Trigger node to let workflow run every minute.

For self hosting n8n, see self-host n8n for setup help.


Common problems and edge cases

  • No tickets found in Slack: Check channel name and Slack query syntax like in:#n8n-tickets has::ticket:.
  • Duplicate tickets created: Verify the duplicate check logic uses correct message IDs and Linear descriptions.
  • AI gives unstructured output: Confirm Structured Output Parser node matches JSON schema exactly.
  • Slack rate limits: Adjust message fetch limit or schedule interval to avoid hitting API limits.
  • Incorrect priority mapping: Update mapping to match your Linear priority IDs.

Customization ideas

  • Change Slack channel or emoji in Slack node’s query to fit your support setup.
  • Edit AI prompt to focus on different details or add other ticket fields.
  • Modify priority mapping in Linear create node to fit company standards.
  • Increase Slack search limit to handle higher message volumes.
  • Add extra metadata before ticket creation using Set node for tags or customer info.

Summary

✓ Workflow automates Slack ticket messages into Linear tickets.

✓ Prevents duplicate tickets through ID hash checking.

✓ Uses AI for clear titles, summaries, and priorities.

✓ Saves about 5 hours weekly for support teams.

✓ Runs every minute without manual work.


Frequently Asked Questions

It extracts message ID hashes from existing Linear ticket descriptions and checks Slack message IDs against them before creating tickets.
Slack API for message search, Linear API for ticket management, and OpenAI API for AI ticket content generation are needed.
Yes, update the Slack node’s search query parameter to reflect the desired channel or emoji.
Import the workflow, configure API credentials and IDs, test with manual runs, then activate the Schedule Trigger node to run every minute.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free