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
Automate Slack tickets with n8n and ChatGPT

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

Learn how to Build this Workflow with AI:

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.


Automate Slack tickets with n8n and ChatGPT

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.