Automate Slack Ticket Creation with n8n, Linear & ChatGPT

This n8n workflow automates creating support tickets from Slack messages tagged with a ticket emoji by leveraging Linear and OpenAI’s ChatGPT. It eliminates duplicate tickets and generates detailed ticket content, saving support teams hours each week.
slack
lmChatOpenAi
linear
+8
Workflow Identifier: 1085
NODES in Use: Slack, OpenAI Chat Model, Structured Output Parser, Schedule Trigger, Sticky Note, Set, If, Linear, Merge, Aggregate, Chain LLM
Automate Slack tickets with n8n and Linear

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

Learn how to Build this Workflow with AI:

What this workflow does

This workflow reads messages with a ticket emoji 🎫 from a Slack channel.
It checks if tickets already exist in Linear for those messages.
If not, it asks ChatGPT to make a ticket title, summary, troubleshooting tips, and priority.
Then it creates a new ticket in Linear with all the information.
This saves time and stops duplicate tickets from being made.


Who should use this workflow

Teams that get many customer support messages in Slack with 🎫 emoji.
People who want to make good organized tickets in Linear without doing it manually.
Anyone who wants AI to help make better ticket summaries and priority decisions.


Tools and services used

  • Slack: To read new messages from a support channel.
  • Linear: To manage and create support tickets.
  • OpenAI ChatGPT API: To write ticket titles, summaries, suggestions, and set priority.
  • n8n automation platform: To run and connect all steps in the workflow.

Inputs → Processing → Output

Inputs

Processing Steps

  • Search Slack every minute for messages in the chosen channel tagged with 🎫.
  • Extract details like message text, user, permalink, and timestamp.
  • Download all current Linear tickets and get their descriptions.
  • Find Slack message IDs referenced in Linear tickets to spot duplicates.
  • Compare new Slack messages with existing ticket message IDs to decide if a new ticket is needed.
  • Send new message texts to ChatGPT with a prompt to create a short title, summary, troubleshooting tips, and priority level.
  • Parse ChatGPT response into JSON format to get structured ticket details.
  • Create a well-formatted new Linear ticket using ChatGPT outputs and Slack message metadata.

Output

  • New tickets in Linear with clear titles, summaries, suggestions, priorities, and original Slack message links.
  • Less duplicate tickets and improved ticket quality.
  • Support team saves hours each week.

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

Import the workflow

  1. Inside the n8n editor, click the Download button on this page to get the workflow file.
  2. In n8n, choose Import from File and upload the downloaded workflow.

Set up credentials

  1. Add your Slack API credentials with permission to search messages.
  2. Add your Linear API key that can read and create tickets.
  3. Add your OpenAI API key for ChatGPT access.

Update workflow settings

  1. In the Slack node, check the search query to match your Slack channel and emoji if different.
  2. Review the Linear ticket priority ID mapping in the Create Ticket node, and change IDs if your Linear setup is different.
  3. Edit the prompt text in the Generate Ticket Using ChatGPT node if you want to change what the AI returns.

Test and activate

  1. Run the workflow once manually to confirm it finds Slack messages and creates tickets properly in Linear.
  2. If tests pass, turn on the workflow to run automatically on its trigger schedule.
  3. Keep an eye on execution logs for errors or skipped items after activation.

For users self hosting n8n, see self-host n8n for help with setup and management.


Common issues and edge cases

  • Slack API rate limits: Too frequent queries cause limits errors. Increase schedule interval or reduce search size.
  • No tickets created when expected: The workflow may think tickets exist due to wrong Slack message ID extraction from Linear tickets. Check the regex in Get Hashes Only node.
  • Linear authentication failure: Wrong or expired API keys cause failure. Re-enter credentials.

Customization ideas

  • Change the Slack channel monitored by editing the query in the Slack node.
  • Adjust or add priority levels in Linear by changing the ID map in create ticket step.
  • Modify the AI prompt to ask for sentiment, escalation advice, or other details.
  • Add more Slack message data like thread IDs or attachments to ticket description for more info.

Summary of benefits

✓ Saves time by searching Slack and making tickets automatically.
✓ Stops creating duplicate tickets.
✓ Makes tickets clearer and more complete with AI summaries and suggestions.
✓ Keeps ticket data linked to original Slack messages.
✓ Helps support teams focus more on solving problems than organizing info.


Automate Slack tickets with n8n and Linear

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

It gets all existing Linear ticket descriptions, extracts Slack message IDs, and compares them to new Slack messages. If the ID exists, no new ticket is created.
The workflow uses OpenAI’s ChatGPT API to generate the ticket title, summary, troubleshooting ideas, and priority.
Add your Slack, Linear, and OpenAI API credentials, adjust channel or priority settings if needed, test the workflow manually, then activate it.
Yes. Change the query string in the Slack node to the desired channel and emoji to monitor different support requests.

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.