n8n workflow template · 14 nodes · OpenAI
Sentiment Analysis Tracking on Support Issues with Linear and Slack is a free n8n workflow template that starts from the Airtable Trigger node and works with OpenAI, Airtable and Slack. It has 14 nodes, 2 of them AI nodes (OpenAI Chat Model and Information Extractor). The notes inside the workflow say: “To keep up with the latest changes in our active Linear tickets, we'll need to use Linear's GraphQL endpoint because filtering is currently unavailable in the official Linear.app node.” To run it, you add your own credentials for Airtable API, HTTP Header Auth, 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.
Learn more about the GraphQL node
To keep up with the latest changes in our active Linear tickets, we'll need to use Linear's GraphQL endpoint because filtering is currently unavailable in the official Linear.app node.
For this demonstration, we'll check for updated tickets every 30mins.
Learn more about the Information Extractor node
With our recently updated posts, we can use our AI to perform a quick sentiment analysis on the ongoing conversation to check the overall mood of the support issue. This is a great way to check how things are generally going in the support queue; positive should be normal but negative could indicate some uncomfortableness or even frustration.
Learn more about the Slack node
A good use-case for tracking sentiment transitions could be to be alerted if ever an issue moves from a non-negative sentiment to a negative one. This could be a signal of issue handling troubles which may require attention before it escalates.
In this demonstration, we use the Airtable trigger to catch rows which have their sentiment column updated and check for the non-negative-to-negative sentiment transition using the switch node. For those matching rows, we combine add send a notification via slack. A cool trick is to use the "remove duplication" node to prevent repeat notifications for the same updates - here we combine the Linear issue key and the row's last modified date.
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.
This is helpful to quickly identify difficult customer support situations early and prioritising them before they get out of hand.
Check out the sample Airtable here
Join the Discord or ask in the Forum!
Learn more about the Airtable node
Next, we can capture this analysis in our insights database as means for human review. When the issue is new, we can create a new row but if the issue exists, we will update it's existing row instead.
When updating an existing row, we move its previous "current sentiment" value into the "previous sentiment" column and replace with our new current sentiment. This gives us a "sentiment transition" which will be useful in the next step.
Check out the Airtable here
The 14 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