🎫 Automated Jira ticket responses with GPT-4 and Pinecone knowledge base

⚑ 279 views · 🎫 Ticket Management & Triage

Description

How It Works

This template is an n8n workflow that integrates with Jira to provide automated replies.

When a ticket is assigned to a user, the workflow analyzes the ticket content, retrieves relevant knowledge from a vector database, and generates a response.
By continuously enriching the knowledge base, the system improves response quality in Jira.


Prerequisites


Setup Instructions

  1. Jira Credentials

    • Create Jira credentials in n8n (API token and email).
    • In the Jira node, select the registered Jira account ID.
  2. Vector Database Setup (Pinecone)

    • Register your Pinecone credentials (API key and environment variables) in n8n.
    • Ensure that your knowledge base is indexed in Pinecone.
  3. AI Assistant Node

    • Configure the OpenAI (or other LLM) node with your API key.
    • Provide a system prompt that explains how to respond to Jira tickets using retrieved knowledge.
  4. Workflow Execution

    • The workflow runs only via the Scheduled Trigger node at defined intervals.
    • When Jira tickets are assigned, their summary, description, and latest comments are retrieved.
    • These details are passed to the AI assistant, which queries Pinecone and generates a response.
    • The generated response is then posted as a Jira comment.

Step by Step

  1. Scheduled Trigger
    The workflow is executed at regular intervals using the Scheduled Trigger node.

  2. Jira Trigger (Issue Assigned)
    Retrieves the summary, description, and latest comments of assigned tickets.

  3. AI Assistant
    Sends ticket details to the AI assistant, which searches and summarizes relevant knowledge from Pinecone.

  4. Response Generation / Ticket Update
    The AI generates a response and automatically posts it as a Jira comment.
    (Optionally, the workflow can update the ticket status or mention the assignee.)


Notes


Further Reference

For a detailed walkthrough (in Japanese), see this article:
πŸ‘‰ Automating Jira responses with n8n, AI, and Pinecone (Qiita)

You can find the template file on GitHub here:
πŸ‘‰ Template File on GitHub

πŸ”— Nodes Used

Jira Software, Schedule Trigger, AI Agent, Embeddings OpenAI, OpenAI Chat Model, Pinecone Vector Store

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup