Linear

Connect your bot to Linear using the official integration.

The official Linear integration lets your bot automate issue tracking and react to repository file events.

Setup

    In Botpress Studio, select Explore Hub in the upper-right corner.

    Search for the Linear integration, then select Install Integration.

    In the Configuration menu, select Authorize Linear.

    Follow the on-screen instructions to connect Botpress to your Linear workspace.

    For advanced use cases, you can configure the integration with a Linear API key and Webhook Signing Secret instead of OAuth.

    Creating a Linear API key

    On Linear, navigate to your account settings and select the API tab in the navigation sidebar.

    Under Personal API keys, enter a name for your API key and select Create new API key.

    Save this API key in a secure location. You will need it to configure the Linear integration in Botpress.

    Subscribing to Linear webhook events

    In Botpress, open the Configuration page for the Linear integration.

    Copy the Webhook URL generated by Botpress.

    On Linear, go to your account settings and select the API tab in the navigation sidebar.

    Under Webhooks, select Create new webhook.

    Enter a name for the webhook and paste the webhook URL from Botpress into the URL field.

    Copy the webhook signing secret and store it in a secure location. You will need it to configure the Linear integration in Botpress.

    Under Data change events, choose the events to subscribe to:

    • Issues: Receive notifications when issues are created, updated, or deleted.
    • Comments: Receive notifications when comments are added to issues.

    Under Teams, select the teams you want to receive notifications for.

    Select Create webhook to save your changes.

    Configuring the Linear integration in Botpress

    In Botpress, open the Configuration page for the Linear integration.

    Select Configure Linear with an API Key.

    Enter the API key from Linear in the API Key field.

    Enter the webhook signing secret from Linear in the Webhook Signing Secret field.

    Save the configuration and enable the integration.


    Cards

    Create Issue

    Create an issue on Linear

    inputobject
    outputobject

    Delete Issue

    Delete an issue on Linear

    inputobject

    List items in folder

    List the files and folders in a folder

    inputobject
    outputobject

    Transfer file to Botpress

    Transfer a file from an external service to Botpress

    inputobject
    outputobject

    Find Target

    Find a target on Linear

    inputobject
    outputobject

    Get Issue

    Get an issue by its ID

    inputobject
    outputobject

    Get or Create a Conversation

    Proactively create a conversation from a bot

    inputobject
    outputobject

    Get User Profile

    Get a user profile from Linear

    inputobject
    outputobject

    issueDelete

    inputobject

    issueList

    inputobject
    outputobject

    List Issues

    List issues from Linear

    inputobject
    outputobject

    List States

    List states from Linear

    inputobject
    outputobject

    List Teams

    List teams from Linear

    outputobject

    List Users

    List users from Linear

    inputobject
    outputobject

    Mark Issue as Duplicate

    Mark an issue as a duplicate of another

    inputobject

    Resolve Comment

    Resolve a comment by id

    inputobject
    outputobject

    Send Raw GraphQL Query

    Send a raw GraphQL query to the linear API

    inputobject
    outputobject

    Update Issue

    Update an issue on Linear

    inputobject
    outputobject

    Triggers

    aggregateFileChanges

    payloadobject

    fileCreated

    payloadobject

    fileDeleted

    payloadobject

    fileUpdated

    payloadobject

    folderDeletedRecursive

    payloadobject

    Issue Created

    Triggered when an issue is created

    payloadobject

    Issue Deleted

    Triggered when an issue is deleted

    payloadobject

    Issue Updated

    Triggered when an issue is updated

    payloadobject