Create AI based Linear issues from Discord
Use the /autoissue command on Discord, then the bot reads the conversation context to generate a meaningful issue title and description.
The AI automatically prefills title, description, priority, and assignee.
Installation
If you'd like to use a hosted version of this bot, please let me know and I'll create one if there's interest.
Setup for self-hosting (10 minutes)
You'll need to setup the Discord bot, authorize Linear, and provide an OpenAI API key.
-
Discord Bot Token:
- Go to Discord Developer Portal
- Create a New Application
- Bot setup:
- Go to the
Botsection of the application - Under
Privileged Gateway Intents, enableMessage Content Intent - Copy the bot token from
Bot -> Reset Token -> Copy - Add the bot token to
.envasDISCORD_TOKEN
- Go to the
- Permission setup:
- Go to the
Installationsection - Under
Guild Install -> Scopes, addapplications.commandsandbot - Under
Guild Install -> Permissions, enable:View ChannelsUse Slash CommandsRead Message HistorySend MessagesSend Messages in ThreadsEmbed Links
- Copy installation link from
Installation -> Install Link -> Copy - Invite the bot to your server using the link
- Go to the
-
Linear Access Token:
- Create application in Linear
- Go to settings (
GthenS) - Under
Administration -> API, create a new OAuth application - For the redirect URI, use
http://localhost:3000/callback - Under
OAuth credentials -> Developer token, clickCreate & copy token - Copy the token to
.envasLINEAR_ACCESS_TOKEN
- Go to settings (
- Create application in Linear
-
OpenAI API Key:
- Set the
OPENAI_API_KEYin.env
- Set the
-
Run the bot:
- Run
make setup - Run
make run
- Run
Usage
- In any channel, use the
/autoissuecommand - The bot will:
- Fetch recent messages from the channel
- Generate a title and description using AI
- Create a Linear issue in your default team
- Return a link to the created issue
