Automate Customer Support Issue Resolution using AI Text Classifier n8n Workflow Template

n8n workflow template · 29 nodes · OpenAI

Automate Customer Support Issue Resolution using AI Text Classifier is a free n8n workflow template that runs on a schedule and works with OpenAI, Jira Software, Slack and Notion. It has 29 nodes, 9 of them AI nodes (OpenAI Chat Model, Structured Output Parser, Sentiment Analysis and AI Agent). The notes inside the workflow say: “Join the Discord or ask in the Forum!” To run it, you add your own credentials for Jira Software Cloud API, Notion API, OpenAI API and Slack API.

At a glance

Trigger
Schedule Trigger (Schedule Trigger)
Nodes
29
Apps
OpenAI, Jira Software, Slack and Notion
AI nodes
9
Credentials
4 types
Category
IT, security and DevOps

Apps and integrations

  • OpenAI
  • Jira Software
  • Slack
  • Notion

Node types used

  • OpenAI Chat Model
  • Schedule Trigger
  • Jira Software
  • Aggregate
  • Edit Fields (Set)
  • If
  • Structured Output Parser
  • Slack
  • Execute Workflow
  • Execute Workflow Trigger
  • Sentiment Analysis
  • AI Agent
  • Basic LLM Chain
  • Jira Software Tool
  • Notion Tool
  • Text Classifier

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Try It Out!

This n8n template is designed to assist and improve customer support team member capacity by automating the resolution of long-lived and forgotten JIRA issues.

  • Schedule Trigger runs daily to check for long-lived unresolved issues and imports them into the workflow.
  • Each Issue is handled as a separate subworkflow by using an execute workflow node. This allows parallel processing.
  • A report is generated from the issue using its comment history allowing the issue to be classified by AI - determining the state and progress of the issue.
  • If determined to be resolved, sentiment analysis is performed to track customer satisfaction. If negative, a slack message is sent to escalate, otherwise the issue is closed automatically.
  • If no response has been initiated, an AI agent will attempt to search and resolve the issue itself using similar resolved issues or from the notion database. If a solution is found, it is posted to the issue and closed.
  • If the issue is blocked and waiting for responses, then a reminder message is added.

Need Help?

Join the Discord or ask in the Forum!

1. Search For Unresolved Long-lived JIRA Issues

Learn more about the JIRA node

In this demonstration, we'll define "long-lived" as any issue which is unresolved after 7 days. Adjust to fit your own criteria.

We'll also use the Execute Workflow node to run the issues separate in parallel. This is a performance optimisation and if not required, the alternative is to use a loop node instead.

2. Retrieves and Combine JIRA Issue Comments

Learn more about the JIRA node

To provide the necessary information for our AI agents, we'll fetch and combine all the issue's comments along with our issue. This gives a accurate history of the the issues progress (or lack thereof!).

3. Classify the Current State of the Issue

Learn more about the Text Classifier node

Today's AI/LLMs are well suited for solving contextual problems like determining issue state. Here, we can use the text classifier node to analyse the issue as a whole to determine our next move. Almost like a really, really smart Switch node!

There are 3 branches we want to take: Check if a resolution was reached, blocked issues and auto-resolving when no team member has yet to respond.

4. Sentiment Analysis on Issue Resolution

Read more about the Sentiment Analysis node

The Sentiment Analysis node is a convenient method of assessing customer satisfaction from resolved issues. Here, when resolution is detected as positive, we can ask use the opportunity to capitalise of the favourable experience which in this example, is to ask for a review. In the opposite vein, if the exchange has been negative, we can escalate in an attempt to improve the situation before closing the ticket.

AI can equip teams to provide unrivalled customer support which can differentiate themselves significantly against the competition.

6. Notify for Unanswered Questions or Response Waiting

Read more about the Basic LLM Chain node

In this step, where signals indicate that the issue is not yet ready to be close, we can try to re-engage issue participants by summarize the conversation so far and sending a reminder comment for any pending actions that were requested. This action can help reduce the number of issues which linger for too long.

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

5. Attempt to Resolve The Issue With KnowledgeBase

Read more about the AI Agent node

When the issue is unaddressed, we can attempt to resolve the issue automatically using AI. Here an AI agent can easily be deployed with access to knowledge tools to research and generate solutions for the user. Since n8n v1.62.1, AI Tools Agents can attach nodes directly as tools providing a very easy way to linking documents to the LLM.

Here, we use both the JIRA tool to search for similar issues and the notion tool to query for product pages. If a solution can be generated, we create a new comment with the solution and attach it to the issue. If not, then we can leave a simple message notifying the user that we could not do so. Finally, we close the issue as no further action can likely be taken in this case.

Nodes in this workflow

The 29 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. OpenAI Chat Model (OpenAI Chat Model)
  2. OpenAI Chat Model1 (OpenAI Chat Model)
  3. OpenAI Chat Model3 (OpenAI Chat Model)
  4. OpenAI Chat Model4 (OpenAI Chat Model)
  5. Schedule Trigger (Schedule Trigger)
  6. Get Issue Comments (Jira Software)
  7. Close Issue (Jira Software)
  8. Send Reminder (Jira Software)
  9. Join Comments (Aggregate)
  10. Add Autoclose Message (Jira Software)
  11. Ask For Feedback Message (Jira Software)
  12. Simplify Thread For AI (Edit Fields (Set))
  13. Solution Found? (If)
  14. Reply to Issue (Jira Software)
  15. Last Message is Not Bot (If)
  16. Structured Output Parser (Structured Output Parser)
  17. Get Issue Metadata (Edit Fields (Set))
  18. Notify Slack Channel (Slack)
  19. Close Issue2 (Jira Software)
  20. Get List of Unresolved Long Lived Issues (Jira Software)
  21. Execute Workflow (Execute Workflow)
  22. Execute Workflow Trigger (Execute Workflow Trigger)
  23. Customer Satisfaction Agent (Sentiment Analysis)
  24. KnowledgeBase Agent (AI Agent)
  25. Issue Reminder Agent (Basic LLM Chain)
  26. Find Simlar Issues (Jira Software Tool)
  27. Query KnowledgeBase (Notion Tool)
  28. Report Unhappy Resolution (Slack)
  29. Classify Current Issue State (Text Classifier)

Credentials you need

  • Jira Software Cloud API – used by Add Autoclose Message, Ask For Feedback Message, Close Issue and Close Issue2 and others
  • Notion API – used by Query KnowledgeBase
  • OpenAI API – used by OpenAI Chat Model, OpenAI Chat Model1, OpenAI Chat Model3 and OpenAI Chat Model4
  • Slack API – used by Notify Slack Channel and Report Unhappy Resolution

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us