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.
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.
Join the Discord or ask in the Forum!
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.
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!).
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.
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.
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.
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.
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.
The 29 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us