Skip to main content

Build RAG-powered support agent for Jira issues using Pinecone and OpenAI

Workflow preview

Workflow preview
100%
Build RAG-powered support agent for Jira issues using Pinecone and OpenAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Load Jira open issues with comments into Pinecone + RAG Agent (Direct Tool or MCP) Who’s it for This workflow is designed for support teams, data engineers, and AI developers who want to centralize...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.mcptrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Br1.

Original n8n.io source

1.1 Workflow description

Title
Build RAG-powered support agent for Jira issues using Pinecone and OpenAI
Workflow name
Build RAG-powered support agent for Jira issues using Pinecone and OpenAI

Load Jira open issues with comments into Pinecone + RAG Agent (Direct Tool or MCP)

Who’s it for

This workflow is designed for support teams, data engineers, and AI developers who want to centralize Jira issue data into a vector database.
It collects open issues and their associated comments, converts them into embeddings, and loads them into Pinecone for semantic search, retrieval-augmented generation (RAG), or AI-powered support bots.
It’s also published as an MCP tool, so external applications can query the indexed issues directly.

How it works

The workflow automates Jira issue extraction, comment processing, and vector storage in Pinecone. Importantly, the Pinecone index is recreated at every run so that it always reflects the current set of unresolved tickets.

  1. Trigger – A schedule trigger runs the workflow at defined times (e.g., 8, 11, 14, and 17 on weekdays).
  2. Issue extraction with pagination – Calls the Jira REST API to fetch open issues matching a JQL query (unresolved cases created in the last year).
    • Pagination is fully handled: issues are retrieved in batches of 25, and the workflow continues iterating until all open issues are loaded.
  3. Data transformation – Extracts key fields (issue ID, key, summary, description, product, customer, classification, status, registration date).
  4. Comments integration – Fetches all comments for each issue, filters out empty/irrelevant ones (images, dots, empty markdown), and merges them with the issue data.
  5. Text cleaning – Converts HTML descriptions into clean plain text for processing.
  6. Embedding generation – Uses the OpenAI Embeddings node to vectorize text.
  7. Vector storage with index recreation – Loads embeddings and metadata into Pinecone under the jira namespace and the openissues index. The namespace is cleared at every run to ensure the index contains only unresolved tickets.
  8. Document chunking – Splits long issue texts into smaller chunks (512 tokens, 50 overlap) for better embedding quality.
  9. MCP publishing – Exposes the Pinecone index as an MCP tool (openissues), enabling external systems to query Jira issues semantically.

How to set up

  1. Jira – Configure a Jira account and generate a token. Update the Jira node with credentials and adjust the JQL query if needed.
  2. OpenAI – Set up an OpenAI API key for embeddings. Configure embedding dimensions (default: 512).
  3. Pinecone – Create an index (e.g., openissues) with matching dimensions (512). Configure Pinecone API credentials and namespace (jira).
    • The index will be cleared automatically at every run before reloading unresolved issues.
  4. Schedule – Adjust the cron expression in the Schedule Trigger to fit your update frequency.
  5. Optional MCP – If you want to query Jira issues via MCP, configure the MCP trigger and tool nodes.

Requirements

  • Jira account with API access and permissions to read issues and comments.
  • OpenAI API key with access to the embedding model.
  • Pinecone account with an index created (dimensions = 512).
  • n8n instance with credentials set up for Jira, OpenAI, and Pinecone.

How to customize the workflow

  • JQL query: Modify it to control which issues are extracted (e.g., by project, type, or time window).
  • Pagination size: Adjust the maxResults parameter (default 25) if you want larger or smaller batches per iteration.
  • Metadata fields: Add or remove fields in the “Extract Relevant Info” code node.
  • Chunk size: Adjust chunk size/overlap in the Document Chunker for different embedding strategies.
  • Embedding model: Switch to a different embedding provider if preferred.
  • Vector store: Replace Pinecone with another supported vector database if needed.
  • Downstream use: Extend with notifications, dashboards, or AI assistants that consume the vector data.

AI Chatbot for Jira open tickets with SLA insights

Who’s it for

This workflow is designed for commercial teams, customer support, and service managers who need quick, conversational access to unresolved Jira tickets.
It enables them to check whether a client has open issues, see related details, and understand SLA implications without manually browsing Jira.

How it works

  • Chat interface – Provides a web-based chat that team members can use to ask natural language questions such as:
    • “Are there any issues from client ACME?”
    • “Do we have tickets that have been open for a long time?”
  • AI Agent – Powered by OpenAI, it interprets questions and queries the Pinecone vector store (openissues index, jira namespace).
  • Memory – Maintains short-term chat history for more natural conversations.
  • Ticket retrieval – Uses Pinecone embeddings (dimension = 512) to fetch unresolved tickets enriched with metadata:
    • Issue key, description, customer, product, severity color, status, AM contract type, and SLA.
  • SLA integration – Service levels (Basic, Advanced, Full Service, with optional Fast Support) are provided via the SLA node. The agent explains which SLA applies based on ticket severity, registration date, and contract type.
  • AI response – Returns a friendly, collaborative summary of all tickets found, including:
    • Ticket identifier
    • Description
    • Customer and product
    • Severity level (Red, Yellow, Green, White)
    • Ticket status
    • Contract level and SLA explanation

Setup

  1. Configure Jira → Pinecone index (openissues, 512 dimensions) already populated with unresolved tickets.
  2. Provide OpenAI API credentials.
  3. Ensure the SLA node includes the correct service-level definitions.
  4. Adjust chat branding (title, subtitle, CSS) if desired.

Requirements

  • Jira account with API access.
  • Pinecone account with an index (openissues, dimensions = 512).
  • OpenAI API key.
  • n8n instance with LangChain and chatTrigger nodes enabled.

How to customize

  • Change the SLA node text if your service levels differ.
  • Adjust the chat interface design (colors, title, subtitle).
  • Expand metadata in Pinecone (e.g., add project type, priority, or assigned team).
  • Train with additional examples in the system message to refine AI behavior.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Document Chunker

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 2 - Convert to txt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Get Comments

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4

Block 4 - Create Comment array

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 6 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 7 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 8 - Extract Issues

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4

Block 9 - Extract Relevant Info

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - MCP Server Trigger

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 2

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - openissues

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 13 - openIssues (Data Loader)

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 14 - All openissues are loaded?

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 15 - Merge Comments

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 16 - Cycles

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 21 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 22 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 23 - SLA

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Chat

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Build RAG-powered support agent for Jira issues using Pinecone and OpenAI
Complexity advanced
Nodes 30
Categories Support Chatbot, AI RAG
Author Br1
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8720/8720.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build RAG-powered support agent for Jira issues using Pinecone and OpenAI do?

Load Jira open issues with comments into Pinecone + RAG Agent (Direct Tool or MCP) Who’s it for This workflow is designed for support teams, data engineers, and AI developers who want to centralize...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.