N8n AI workflow builder projects are at their most useful when they kill a boring, error-prone job, and customer feedback triage is one of those jobs. Someone on your support or product team reads every form submission, survey answer and support email, decides whether it's a bug, a feature idea or a complaint about billing, then copies it into Jira by hand. Done manually, the same problem gets logged three times under three different names, vague messages sit in an inbox for days, and customer emails end up pasted into tickets where they don't belong. This guide walks you through building an n8n workflow that takes raw feedback from a webhook, has an AI agent categorize it and check Jira for duplicates, validates the answer, and creates a clean Jira issue (or sends it to a human when the model isn't sure).
Workflow at a glance
| Problem it solves | Unstructured customer feedback piles up in forms and inboxes, and turning it into consistent, de-duplicated Jira tickets is slow, repetitive copy-paste work. |
|---|---|
| Manual steps it replaces | Reading each message, deciding a category, searching Jira for an existing issue, writing a summary, copying the original text, picking a priority and labels, creating the issue, and stripping personal data out of the ticket. |
| Trigger | An n8n Webhook node that receives a POST request each time a customer submits feedback (from a form tool, help desk or your own app). |
| Output | A Jira issue in your feedback project with category, summary, description, priority and labels filled in; a comment on an existing issue when it's a repeat report; or an issue in a triage project when the model is unsure. |
| Tools | n8n (Cloud or self-hosted), the AI Agent node with an OpenAI Chat Model sub-node and a Structured Output Parser, the Jira Software node, plus core nodes: Webhook, Edit Fields, Crypto, IF, Remove Duplicates, Code, Switch, Respond to Webhook. |
| Skill level needed | Comfortable with n8n's canvas and expressions. You'll paste one short Code node, but you don't need to be a developer. |
| Complexity | Medium. The node count is modest, but you have to map Jira fields to your own project, tune a confidence threshold, and test edge cases before you switch it on. |
What you need before you start
Get these ready first. It saves a lot of back-and-forth later.
- An n8n instance. Either an n8n Cloud account or a self-hosted install. Make sure you're on a recent version so the AI Agent, Structured Output Parser and Remove Duplicates nodes are all available.
- An OpenAI API key. n8n's OpenAI credential authenticates with an API key. Create the key in your OpenAI platform account under API keys, then in n8n go to Credentials > Add credential > OpenAI and paste it. Check that your OpenAI account has billing set up, because an unfunded account fails at the first call.
- A Jira Cloud site and an API token. In n8n, add a Jira SW Cloud API credential. It asks for your Atlassian account email, an API token (create it in your Atlassian account settings under Security) and your site domain. The exact credential fields are listed on the credential page linked from the Jira Software node docs, so confirm them there if your screen looks different.
- Jira permissions. The Atlassian account behind the token needs permission to browse projects, create issues and add comments in the projects you'll use. A dedicated "automation" user is cleaner than your personal account.
- Two Jira projects (or one project with a triage status). This guide uses project key
FEEDfor accepted feedback andTRIAGEfor items a human must check. Write down the issue types your project actually has (for example Bug and Task) and the priority names your site uses. - Sample data. Collect 10 to 15 real feedback messages with personal details removed: a couple of clear bugs, some feature ideas, a billing complaint, a thank-you note, one vague message, one very long message and one exact duplicate. You'll use them in the test table.
How the workflow runs
Here's the full path, with the data fields that move between nodes.
- Webhook (trigger) receives JSON with
feedback,email,sourceandproduct_area. - Normalize feedback (Edit Fields) outputs
feedback_text,customer_email,source,product_area,received_at. - Make feedback ID (Crypto) adds
feedback_id, a SHA256 hash of source, email and text. - Has text? (IF) is the first decision point. Empty text goes to a Respond to Webhook node that returns
skipped_empty. Everything else continues. - Remove Duplicates drops any
feedback_idalready processed in an earlier execution, so a double-submitted form never creates two tickets. - Triage agent (AI Agent) reads the normalized fields, calls its read-only Jira tool to look for open issues about the same problem, and returns
category,summary,description,priority,labels,duplicate_ofandconfidencethrough the Structured Output Parser. - Validate output (Code) checks every field against allowed values, trims the summary, cleans labels and sets
needs_reviewplusvalidation_problems. - Route (Switch) is the second decision point, with three outputs:
- Duplicate:
duplicate_ofisn't empty, so a Jira node adds a comment to that issue. - Review:
needs_reviewis true, so a Jira node creates an issue inTRIAGEwith the labelneeds-triage. - Accept: everything else becomes an issue in
FEED.
- Duplicate:
- Respond to Webhook returns
feedback_idand the Jira key to whatever sent the feedback.
Build it step by step
Create a new workflow in n8n and name it something boring and findable, like "Feedback to Jira triage". Then add the nodes in this order.
Step 1: Add the Webhook trigger
Click Add first step, search for Webhook, and set:
- HTTP Method: POST
- Path:
customer-feedback - Authentication: Header Auth (create a credential with a header name such as
X-Feedback-Keyand a long random value, then give that value only to the tool that posts feedback) - Respond: Using 'Respond to Webhook' Node
Click Listen for test event, then send a sample payload from your terminal. Use the test URL n8n shows you.
curl -X POST "https://YOUR-N8N-HOST/webhook-test/customer-feedback" \
-H "Content-Type: application/json" \
-d '{
"feedback": "When I click Export on the invoices page nothing downloads. Tried Chrome and Firefox.",
"email": "test.customer@example.com",
"source": "support_form",
"product_area": "billing"
}'
# add: -H "X-Feedback-Key: YOUR_SECRET" if you enabled Header Auth
Check: the Webhook node output shows a body object containing feedback, email, source and product_area exactly as you sent them.
Step 2: Normalize the fields
Different sources name things differently. One form says message, another says feedback. Fix that once, here.
Add an Edit Fields (Set) node, rename it Normalize feedback, set Mode to Manual Mapping, turn off Include Other Input Fields, and add these five fields:
feedback_text (String) {{ ($json.body.feedback || $json.body.message || '').toString().trim() }}
customer_email (String) {{ ($json.body.email || '').toString().trim().toLowerCase() }}
source (String) {{ $json.body.source || 'web_form' }}
product_area (String) {{ $json.body.product_area || '' }}
received_at (String) {{ $now.toISO() }}
Check: the output has exactly five fields, feedback_text has no leading or trailing spaces, and the email is lowercase.
Step 3: Give every message a stable ID
Add a Crypto node named Make feedback ID. Set Action to Hash, Type to SHA256, Property Name to feedback_id, and Value to:
{{ $json.source }}|{{ $json.customer_email }}|{{ $json.feedback_text.toLowerCase() }}
The same customer sending the same text through the same channel always produces the same ID. That's what makes the duplicate check in Step 5 work.
Check: run the node twice with the same sample. The feedback_id value should be identical both times; change one word in the text and it should change completely.
Step 4: Stop empty submissions
Add an IF node named Has text?. Condition: String, {{ $json.feedback_text }}, is not empty.
On the false output, add a Respond to Webhook node with Respond With set to JSON and this body:
{ "status": "skipped_empty" }
Check: send a payload with "feedback": " ". The run should end on the false branch, and your terminal should print skipped_empty.
Step 5: Drop repeat submissions
On the true output of the IF node, add a Remove Duplicates node. Set Operation to Remove Items Processed in Previous Executions, Keep Items Where to Value Is New, and Value to Dedupe On to {{ $json.feedback_id }}.
One catch: this node remembers values across production executions, and manual test runs can behave differently. Look at the node's own help panel in your n8n version for how it treats test runs and how to clear its history.
Check: with the workflow active, post the same payload twice to the production URL. The second execution should stop at this node with zero items.
Step 6: Build the triage agent
This is the AI part. Add an AI Agent node after Remove Duplicates and name it Triage agent.
A quick bit of background helps. n8n's AI nodes are built on LangChain's JavaScript framework, and n8n lets you configure the agent, the model, memory and other components. The current AI Agent node works as a Tools Agent, which uses LangChain's tool-calling interface. "Tool calling" just means the model can ask n8n to run a connected node (here, a Jira search) and read the result before it answers.
Configure the main node:
- Source for Prompt (User Message): Define below. Paste the user prompt template from the Prompts section.
- Require Specific Output Format: on. This adds an Output Parser connector.
- Options > System Message: paste the system prompt from the Prompts section.
- Options > Max Iterations: leave the default, or lower it if you see the agent looping on the tool.
Now connect three sub-nodes to the connectors under the agent.
Chat Model: OpenAI Chat Model. Pick your OpenAI credential, choose a current model your account can use, and under Options set Sampling Temperature to 0. Temperature controls randomness; 0 gives you the most repeatable categories.
Output Parser: Structured Output Parser. Set Schema Type to Generate From JSON Example and paste the example output from the Prompts section. The parser forces the agent's final answer into those fields.
Tool: Jira Software. The AI Agent node needs at least one tool sub-node connected, and the Jira Software node can be used as an AI tool, so a Jira search is a natural fit. Click the Tool connector, choose Jira Software, and set:
- Description (the tool name the model sees):
search_existing_issues, with a description like "Searches open Jira feedback issues by keyword. Use it once to check for an existing issue about the same problem." - Credential: your Jira SW Cloud API credential
- Resource: Issue; Operation: Get Many
- Limit: 5
- Options > JQL: the query below
project = FEED AND statusCategory != Done AND text ~ "{{ $fromAI('keywords', 'two to four keywords from the feedback, separated by spaces', 'string') }}" ORDER BY created DESC
The $fromAI() expression lets the model fill in that one value (the keywords) while you lock down everything else, including the project. Keep this tool on Get Many. Giving the agent a "Create issue" tool is tempting, but then the model decides when tickets get created, and you lose the validation step.
Check: run the workflow with the export bug sample. Open the agent's logs panel: you should see one call to search_existing_issues, and the agent output should contain an output object with all seven fields, category set to bug.
Step 7: Validate what the model returned
Never send model output straight to Jira. Add a Code node named Validate output, set Mode to Run Once for All Items and Language to JavaScript, and paste:
const allowedCategories = ['bug','feature_request','usability','performance','billing','praise','unclear'];
const allowedPriorities = ['Highest','High','Medium','Low'];
return $input.all().map(item => {
const out = item.json.output || {};
const problems = [];
if (!allowedCategories.includes(out.category)) problems.push('bad category');
if (!allowedPriorities.includes(out.priority)) problems.push('bad priority');
if (typeof out.summary !== 'string' || out.summary.trim() === '') problems.push('empty summary');
if (typeof out.confidence !== 'number' || out.confidence < 0 || out.confidence > 1) problems.push('bad confidence');
const summary = String(out.summary || 'Customer feedback needs review').replace(/\s+/g, ' ').trim().slice(0, 120);
const labels = Array.isArray(out.labels) ? out.labels.map(l => String(l).toLowerCase().replace(/[^a-z0-9-]/g, '-')).slice(0, 5) : [];
if (!labels.includes('customer-feedback')) labels.push('customer-feedback');
const original = $('Normalize feedback').item.json;
const needsReview = problems.length > 0 || out.category === 'unclear' || (out.confidence ?? 0) < 0.7;
if (needsReview && !labels.includes('needs-triage')) labels.push('needs-triage');
return {
json: {
feedback_id: original.feedback_id,
source: original.source,
customer_email: original.customer_email,
category: allowedCategories.includes(out.category) ? out.category : 'unclear',
summary,
description: String(out.description || original.feedback_text),
priority: allowedPriorities.includes(out.priority) ? out.priority : 'Medium',
labels,
duplicate_of: /^[A-Z][A-Z0-9]+-\d+$/.test(out.duplicate_of || '') ? out.duplicate_of : '',
confidence: out.confidence ?? 0,
needs_review: needsReview,
validation_problems: problems.join(', ')
}
};
});
What this does, in plain terms: it rejects categories and priorities your Jira doesn't know, cuts the summary to 120 characters, keeps only safe label characters (Jira labels can't contain spaces), and flags anything unclear or low-confidence for a human. The 0.7 threshold is a starting point you choose, not a magic number; raise it if too many wrong tickets slip through, lower it if your triage queue fills up with easy cases.
Check: the output has needs_review: false for the export bug, and validation_problems is an empty string.
Step 8: Route the result
Add a Switch node named Route, Mode Rules, with these rules in order (order matters, first match wins):
- Output 0, "duplicate":
{{ $json.duplicate_of }}String is not empty - Output 1, "review":
{{ $json.needs_review }}Boolean is true - Fallback Output: Extra Output, renamed "accept"
Check: the export bug sample leaves through the "accept" output.
Step 9: Create the Jira issue
On the "accept" output, add a Jira Software node. The Jira Software node supports creating a new issue. Set:
- Resource: Issue; Operation: Create
- Project: FEED (pick from the list)
- Issue Type: switch to Expression and use
{{ $json.category === 'bug' ? 'Bug' : 'Task' }}, or swap in the names your project uses (some sites need the issue type ID instead; if so, pick from the list for each branch) - Summary:
{{ $json.summary }} - Additional Fields > Labels:
{{ $json.labels }} - Additional Fields > Priority:
{{ $json.priority }}(must match a priority name in your Jira exactly) - Additional Fields > Description: the template below
{{ $json.description }}
---
Category: {{ $json.category }}
Confidence: {{ $json.confidence }}
Feedback ID: {{ $json.feedback_id }}
Channel: {{ $json.source }}
Created by the n8n feedback triage workflow. Customer contact is stored in the support tool, not in this ticket.
Notice the customer email isn't in the ticket. Keep it in your support tool and link by feedback_id instead, so personal data doesn't spread across every Jira watcher's inbox.
Check: a new issue appears in FEED with the right type, summary, labels and priority, and the node output includes a key such as FEED-12.
Step 10: Handle the review and duplicate branches
On the "review" output, duplicate the Jira node from Step 9, change Project to TRIAGE, set Issue Type to Task, keep the labels expression (it already includes needs-triage), and use this description:
NEEDS HUMAN REVIEW
Reason: {{ $json.validation_problems || 'low confidence or unclear category' }}
Model guess: {{ $json.category }} ({{ $json.confidence }})
{{ $json.description }}
Feedback ID: {{ $json.feedback_id }}
On the "duplicate" output, add a Jira Software node with Resource Issue Comment, Operation Add, Issue Key {{ $json.duplicate_of }} and this comment:
Another customer reported the same problem.
Channel: {{ $json.source }}
Feedback ID: {{ $json.feedback_id }}
{{ $json.description }}
Check: a vague sample like "your app is bad" lands in TRIAGE with the needs-triage label, and a second wording of the export bug adds a comment to the existing FEED issue instead of creating a new one.
Step 11: Reply to the sender and switch it on
Connect all three Jira nodes to a single Respond to Webhook node, Respond With JSON:
{
"status": "ok",
"feedback_id": "{{ $('Validate output').item.json.feedback_id }}",
"jira_key": "{{ $json.key || $('Validate output').item.json.duplicate_of }}"
}
Then open Workflow settings, set an Error Workflow that notifies you (even a simple one that emails you the execution URL), save, and toggle the workflow to Active. Point your form tool or help desk at the production webhook URL, not the test URL.
Check: submitting real feedback through your form returns status: ok with a Jira key, and the execution shows up under the workflow's Executions tab.
Prompts and templates
Copy these exactly, then adjust category names, priorities and project keys to match your Jira.
System message (AI Agent > Options > System Message)
You are a feedback triage assistant for a software product team.
Your job: read one piece of customer feedback and turn it into a clean Jira ticket proposal.
Rules:
1. Pick exactly one category from this list: bug, feature_request, usability, performance, billing, praise, unclear.
2. Use "unclear" when the feedback is too vague, off-topic, abusive, or mixes several unrelated problems.
3. Before you answer, call the tool "search_existing_issues" once with 2 to 4 keywords from the feedback. If an open issue clearly describes the same problem, put its key in duplicate_of. Otherwise set duplicate_of to an empty string.
4. Write the summary as a short, neutral sentence a developer would understand. No customer names, no emails, no phone numbers. Maximum 120 characters.
5. Write the description in plain text with three parts: "What the customer reported", "Where it happens", "Original wording" (quote the feedback exactly).
6. Set priority to one of: Highest, High, Medium, Low. Use Highest only when the customer cannot use the product at all or reports data loss or a security problem.
7. Set confidence between 0 and 1 to say how sure you are about the category.
8. Never invent details that are not in the feedback. If something is unknown, write "not stated".
9. Return only the structured output. No extra commentary.
User prompt template (AI Agent > Prompt)
The {{ }} parts are n8n expressions that pull values from the previous node.
Feedback ID: {{ $json.feedback_id }}
Channel: {{ $json.source }}
Received at: {{ $json.received_at }}
Product area hint (may be empty): {{ $json.product_area }}
Customer feedback:
"""
{{ $json.feedback_text }}
"""
Expected output (paste into the Structured Output Parser)
{
"category": "bug",
"summary": "Export to CSV button does nothing on the invoices page",
"description": "What the customer reported: ...\nWhere it happens: ...\nOriginal wording: ...",
"priority": "High",
"labels": ["customer-feedback", "invoices"],
"duplicate_of": "",
"confidence": 0.86
}
If you want tighter control, switch the parser's Schema Type to Define Using JSON Schema and add an enum for category and priority. The Code node in Step 7 still acts as the final safety net either way.
Test it before you trust it
Run every row below through the test URL before you activate the workflow. Then run the duplicate rows again on the production URL, since deduplication behaves differently there.
| Test input | Expected output | What it proves |
|---|---|---|
| Clear bug: "Export on invoices page downloads nothing in Chrome and Firefox" | New Bug in FEED, category bug, priority High or Medium, label customer-feedback | Happy path and field mapping work |
| Feature idea: "Would love a dark mode for the dashboard" | New Task in FEED, category feature_request, priority Low or Medium | Non-bug items map to the right issue type |
| Praise: "Support solved my issue in minutes, thank you" | Task in FEED with category praise (or route praise elsewhere if you prefer) | The agent doesn't force everything into bug |
| Empty or whitespace-only feedback | Response skipped_empty, no agent call, no Jira call | The IF guard works and you aren't paying for empty runs |
| Exact same payload sent twice to the production URL | Second execution stops at Remove Duplicates | Double-submitted forms don't create two tickets |
| Same problem, different wording, while the first issue is still open | Comment added to the existing FEED issue, no new issue | The Jira search tool and duplicate branch work |
| Vague text: "it's bad" | Issue in TRIAGE with label needs-triage | Low-confidence items reach a human |
| Malformed body: field named message instead of feedback | Normal run; Normalize feedback picks up message | The fallback mapping in Step 2 works |
| Malformed model output (temporarily set temperature high and add "answer in prose" to the user prompt) | Parser error caught, or Validate output sets needs_review true with validation_problems filled | Bad model output never becomes a FEED ticket |
| Very large input: several pages of pasted logs | Run completes, summary at or under 120 characters, original text in description | Long input doesn't break Jira fields |
| Feedback containing a phone number and full name | Summary has no personal details; description quotes the text | Check whether quoting raw text is acceptable for your team; if not, drop the Original wording part |
| Two unrelated problems in one message | Category unclear, goes to TRIAGE | Mixed messages get split by a person, not guessed |
Where it breaks and how to fix it
Most failures fall into five buckets.
Auth expiry
Symptom: the Jira nodes start failing with 401 or 403 errors, or the OpenAI node reports an invalid key. Fix: Tokens get revoked and people leave companies, which is exactly why a dedicated automation user helps. Create a new token, update the Jira credential in n8n, and click Test on the credential. For OpenAI, generate a fresh key and update the credential.
Rate limits and quota
Symptom: the chat model fails with a rate-limit or quota message during a busy period. Fix: n8n's troubleshooting page for OpenAI rate-limit errors tells you to check your OpenAI account funding and the credentials connected to the node. The OpenAI Chat Model common issues page covers the chat model sub-node specifically. If you get bursts (say, after a big email campaign), put a Loop Over Items node with a small batch size and a Wait node in front of the agent when you import feedback in bulk.
Schema drift
Symptom: Jira rejects the create call with a field error after someone changes the project. Common causes are a renamed priority, a new required custom field, or a deleted issue type. Fix: open the failed execution, read Jira's error message (it names the field), and update the mapping in Step 9 and Step 10. If a required field was added, add it under Additional Fields > Custom Fields. Also update the allowed lists at the top of the Code node.
LLM output errors
Symptom: "Could not parse LLM output" errors, or categories that don't exist. Fix: keep temperature at 0, make sure Require Specific Output Format is on, and use the JSON Schema option with enums. In the agent's settings, set On Error to Continue (using error output) and send that error output to the TRIAGE Jira node, so a parsing failure still reaches a human instead of vanishing.
Duplicate runs
Symptom: the same feedback creates two issues. Usually it's because the sending tool retried after a timeout, or someone re-ran an execution by hand. Fix: confirm Remove Duplicates is on the main path and keyed on feedback_id. Respond quickly to the sender, or, if your sender has a short timeout, switch the Webhook's Respond setting to Immediately and remove the Respond to Webhook nodes. Don't turn on Retry On Fail for the Jira create nodes, because a retry after a slow-but-successful call is a classic way to get twins.
For anything not covered here, the n8n documentation has a page for each node with its own common issues.
Running costs and limits
You pay in two places: n8n and OpenAI. Jira costs depend on the plan you already have.
- n8n Cloud trial: n8n's Cloud trial gives you Pro plan features with a limit of 1000 executions and Starter-plan computing power. Every piece of feedback is one execution, including the ones that stop early at the IF or Remove Duplicates node.
- n8n Cloud plans: n8n lists Starter, Pro and Enterprise as its Cloud plans, but that page doesn't state current prices, so check the plan page inside your n8n account before you commit.
- Self-hosting: if you run n8n yourself, see n8n's edition comparison for which features the free community edition includes. Your cost then becomes the server, plus your own time on updates and backups.
- OpenAI usage: you're billed per token (tokens are the small chunks of text models read and write). Your cost drivers are the length of each feedback message, the length of the system prompt, the Jira search results the agent reads, and the model you pick. Long pasted logs cost the most, so consider truncating
feedback_textin Step 2 if that happens a lot. Check current rates on OpenAI's own pricing page. - Jira: the automation user may take up a seat on your Jira plan. Check with whoever administers your Atlassian site.
Variations and extensions
- Swap the trigger. Replace the Webhook with a Gmail or Outlook trigger watching a feedback inbox, or a schedule that reads new rows from a Google Sheet. Keep everything from Step 2 onward the same, and just remap the fields in Normalize feedback.
- Route by team. Add a
teamfield to the output schema (for example payments, onboarding, mobile) and a second Switch that picks a Jira project or component per team. Product teams then see only their own feedback. - Post a daily digest. Add a second workflow on a schedule that runs a JQL search for issues created today with label
customer-feedbackand posts a short summary to Slack or Teams. - Close the loop with customers. When a FEED issue moves to Done, a Jira trigger workflow can look up the
feedback_idin your support tool and draft a reply for an agent to review (not send automatically). - Use another tracker. Swap the Jira nodes for Linear, GitHub Issues or ClickUp nodes. The agent's search tool and the create nodes change, and the prompt, validation and routing stay put.
Hand this to ChatGPT or Claude
You can paste the brief below (or a link to this page) into an AI assistant and ask it to adapt the build to your stack, for example a different trigger, your Jira field names, or a different tracker.
GOAL
Turn each piece of unstructured customer feedback into a categorized Jira issue automatically, using n8n with an AI Agent node, an OpenAI chat model and the Jira Software node. Uncertain items go to a human triage queue. Repeat reports become comments on the existing issue.
TRIGGER
n8n Webhook node, HTTP Method POST, path customer-feedback, Respond: Using 'Respond to Webhook' node. Body fields: feedback, email, source, product_area.
STEPS
1. Webhook (POST /customer-feedback).
2. Edit Fields node "Normalize feedback": feedback_text, customer_email, source, product_area, received_at.
3. Crypto node: Hash, SHA256, value = source + customer_email + lowercased feedback_text, output property feedback_id.
4. IF node "Has text": feedback_text is not empty. False branch -> Respond to Webhook with status "skipped_empty".
5. Remove Duplicates node: Remove Items Processed in Previous Executions, dedupe on feedback_id.
6. AI Agent node: Source for Prompt = Define below, user prompt template below, System Message below, Require Specific Output Format = on.
Sub-nodes: OpenAI Chat Model (temperature 0), Structured Output Parser (schema below), Jira Software tool "search_existing_issues" (Issue > Get Many, JQL with $fromAI keywords, Limit 5, read only).
7. Code node "Validate output": enforce allowed categories and priorities, trim summary to 120 chars, add labels customer-feedback and needs-triage, set needs_review when confidence < 0.7 or category unclear or validation fails.
8. Switch node: duplicate_of not empty -> Jira Issue Comment Add on that key; needs_review true -> Jira Create issue in triage project; otherwise -> Jira Create issue in FEED project with mapped summary, description, priority, labels, issue type (bug -> Bug, else Task).
9. Respond to Webhook with feedback_id and jira_key.
10. Workflow settings: Error Workflow set to a workflow that alerts the owner.
DATA FIELDS
feedback_id, feedback_text, customer_email, source, product_area, received_at, category, summary, description, priority, labels, duplicate_of, confidence, needs_review, validation_problems.
PROMPTS
System message: [paste the system prompt from the Prompts and templates section]
User prompt: [paste the user prompt template from the same section]
Output schema: category, summary, description, priority, labels, duplicate_of, confidence.
ACCEPTANCE TESTS
- Clear bug report -> one Bug issue in FEED with correct summary and label customer-feedback.
- Feature idea -> Task in FEED, category feature_request.
- Empty feedback -> no Jira call, response skipped_empty.
- Same payload sent twice -> second run stops at Remove Duplicates.
- Vague text ("it's bad") -> issue in triage project with label needs-triage.
- Report matching an open issue -> comment added to that issue, no new issue.
- Very long text (several pages) -> summary stays at or under 120 chars, run succeeds.
CONSTRAINTS
- No customer email or name in Jira summary or description.
- The agent's Jira tool is read only (Get Many). Issue creation happens only in explicit Jira nodes after validation.
- Temperature 0. No retries that could create a second issue for the same feedback_id.
- Adapt project keys, issue types and priority names to my Jira instance.
Frequently Asked Questions
Do I have to connect a tool to the AI Agent node?
Yes. n8n's AI Agent node requires at least one tool sub-node. In this workflow that's the read-only Jira search, which also does useful work by spotting duplicates. If you only want classification with no tools at all, a Basic LLM Chain node is the simpler choice.
Why not let the agent create the Jira issue itself?
Because you lose control. When creation sits in a normal Jira node after the Code node, every ticket passes your validation, your field mapping and your routing rules. The agent suggests; the workflow decides.
Can I use a different model instead of OpenAI?
Usually, yes. The agent accepts other chat model sub-nodes, so you can swap OpenAI for another provider your n8n version supports. Re-run the whole test table afterwards, since categories and confidence values can shift between models.
How do I stop customer data ending up in Jira?
The system prompt bans names, emails and phone numbers from the summary, and the description template leaves out customer_email. The "Original wording" quote can still contain personal details, though. If that's a problem for your team, remove that part from the prompt and the description template.
What confidence threshold should I use?
Start at 0.7, run your sample set, and look at what lands in TRIAGE. Too many obvious cases there? Lower it a little. Wrong categories reaching FEED? Raise it. Model confidence is the model's own guess, so treat it as a rough signal, not a measurement.
Why does my priority field fail even though the value looks right?
Jira matches priority names exactly, and many sites rename or remove the defaults. Check the priority list in your Jira settings, then update both the system prompt and the allowedPriorities list in the Code node to match.
Is the ReAct or Conversational Agent a better fit?
For this job, no. The current AI Agent node uses the Tools Agent approach, which handles one structured tool call and a structured answer well. You don't need chat memory here, since each feedback item is processed on its own.
Your first step
Then build Steps 1 to 6 and run them through the agent before you touch any Jira create node. Once the categories look right, the rest is field mapping.