Back to Integrations
integrationLinear node
integrationOpenAI node

Linear and OpenAI integration

Save yourself the work of writing custom integrations for Linear and OpenAI and use n8n instead. Build adaptable and scalable Productivity, AI, and Langchain workflows that work with your technology stack. All within a building experience you will love.

How to connect Linear and OpenAI

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Linear and OpenAI integration: Create a new workflow and add the first step

Step 2: Add and configure Linear and OpenAI nodes

You can find Linear and OpenAI in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Linear and OpenAI nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Linear and OpenAI integration: Add and configure Linear and OpenAI nodes

Step 3: Connect Linear and OpenAI

A connection establishes a link between Linear and OpenAI (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Linear and OpenAI integration: Connect Linear and OpenAI

Step 4: Customize and extend your Linear and OpenAI integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Linear and OpenAI with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Linear and OpenAI integration: Customize and extend your Linear and OpenAI integration

Step 5: Test and activate your Linear and OpenAI workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Linear to OpenAI or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Linear and OpenAI integration: Test and activate your Linear and OpenAI workflow

Classify new bugs in Linear with OpenAI's GPT-4 and move them to the right team

Use case

When working with multiple teams, bugs must get in front of the right team as quickly as possible to be resolved. Normally this includes a manual grooming of new bugs that have arrived in your ticketing system (in our case Linear). We found this way too time-consuming. That's why we built this workflow.

What this workflow does

This workflow triggers every time a Linear issue is created or updated within a certain team. For us at n8n, we created one general team called Engineering where all bugs get added in the beginning. The workflow then checks if the issue meets the criteria to be auto-moved to a certain team. In our case, that means that the description is filled, that it has the bug label, and that it's in the Triage state. The workflow then classifies the bug using OpenAI's GPT-4 model before updating the team property of the Linear issue. If the AI fails to classify a team, the workflow sends an alert to Slack.

Setup

  1. Add your Linear and OpenAi credentials
  2. Change the team in the Linear Trigger to match your needs
  3. Customize your teams and their areas of responsibility in the Set me up node. Please use the format [Teamname][Description/Areas of responsibility]. Also, make sure that the team names match the names in Linear exactly.
  4. Change the Slack channel in the Set me up node to your Slack channel of choice.

How to adjust it to your needs

  • Play around with the context that you're giving to OpenAI, to make sure the model has enough knowledge about your teams and their areas of responsibility
  • Adjust the handling of AI failures to your needs

How to enhance this workflow

At n8n we use this workflow in combination with some others. E.g. we have the following things on top:

  • We're using an automation that enables everyone to add new bugs easily with the right data via a /bug command in Slack (check out this template if that's interesting to you)

This workflow was built using n8n version 1.30.0

Nodes used in this workflow

Popular Linear and OpenAI workflows

Linear Trigger node
Linear node
HTTP Request node
+5

Classify new bugs in Linear with OpenAI's GPT-4 and move them to the right team

Use case When working with multiple teams, bugs must get in front of the right team as quickly as possible to be resolved. Normally this includes a manual grooming of new bugs that have arrived in your ticketing system (in our case Linear). We found this way too time-consuming. That's why we built this workflow. What this workflow does This workflow triggers every time a Linear issue is created or updated within a certain team. For us at n8n, we created one general team called Engineering where all bugs get added in the beginning. The workflow then checks if the issue meets the criteria to be auto-moved to a certain team. In our case, that means that the description is filled, that it has the bug label, and that it's in the Triage state. The workflow then classifies the bug using OpenAI's GPT-4 model before updating the team property of the Linear issue. If the AI fails to classify a team, the workflow sends an alert to Slack. Setup Add your Linear and OpenAi credentials Change the team in the Linear Trigger to match your needs Customize your teams and their areas of responsibility in the Set me up node. Please use the format Teamname. Also, make sure that the team names match the names in Linear exactly. Change the Slack channel in the Set me up node to your Slack channel of choice. How to adjust it to your needs Play around with the context that you're giving to OpenAI, to make sure the model has enough knowledge about your teams and their areas of responsibility Adjust the handling of AI failures to your needs How to enhance this workflow At n8n we use this workflow in combination with some others. E.g. we have the following things on top: We're using an automation that enables everyone to add new bugs easily with the right data via a /bug command in Slack (check out this template if that's interesting to you) This workflow was built using n8n version 1.30.0

Build your own Linear and OpenAI integration

Create custom Linear and OpenAI workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Linear supported actions

Create
Create an issue
Delete
Delete an issue
Get
Get an issue
Get Many
Get many issues
Update
Update an issue

OpenAI supported actions

Create an Assistant
Create a new assistant
Delete an Assistant
Delete an assistant from the account
List Assistants
List assistants in the organization
Message an Assistant
Send messages to an assistant
Update an Assistant
Update an existing assistant
Message a Model
Create a completion with GPT 3, 4, etc.
Classify Text for Violations
Check whether content complies with usage policies
Analyze Image
Take in images and answer questions about them
Generate an Image
Creates an image from a text prompt
Generate Audio
Creates audio from a text prompt
Transcribe a Recording
Transcribes audio into the text
Translate a Recording
Translate audio into the text in the english language
Delete a File
Delete a file from the server
List Files
Returns a list of files that belong to the user's organization
Upload a File
Upload a file that can be used across various endpoints

Linear and OpenAI integration details

FAQs

  • Can Linear connect with OpenAI?

  • Can I use Linear’s API with n8n?

  • Can I use OpenAI’s API with n8n?

  • Is n8n secure for integrating Linear and OpenAI?

  • How to get started with Linear and OpenAI integration in n8n.io?

Looking to integrate Linear and OpenAI in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Linear with OpenAI

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon