🎫 Classify sentiment of incoming text using Hugging Face, Google Sheets, and Jira

⚑ 18 views · 🎫 Ticket Management & Triage

Description

Sentiment Analysis Workflow using Webhook, Hugging Face, Google Sheets & Jira

This workflow automatically analyzes incoming text feedback, classifies it into Positive, Neutral or Negative using a Hugging Face sentiment model, stores results in Google Sheets and creates Jira tickets for negative feedback.

Quick Steps to Get Started

  1. Import the workflow into your n8n account
  2. Set up Webhook endpoint (/sentiment-input)
  3. Add Hugging Face API token in HTTP Request node
  4. Configure Google Sheets (3 tabs: Positive, Neutral, Negative)
  5. Connect Jira credentials
  6. Activate the workflow
  7. Send POST request with text data

What It Does

This workflow automates sentiment analysis of incoming text data using a machine learning model hosted on Hugging Face. It receives multiple text inputs via a webhook, processes each input individually and evaluates sentiment scores returned by the model.

The workflow intelligently determines whether the sentiment is Positive, Neutral or Negative based on the highest score and a confidence threshold. It ensures more reliable classification by applying a score validation logic.

Once classified, the workflow routes the data accordingly. Each sentiment category is stored in a separate Google Sheets tab, making it easy to track and analyze feedback trends. Additionally, any negative feedback automatically triggers the creation of a Jira ticket, enabling quick issue resolution.

Who It’s For

Requirements

To use this workflow, you need:

How It Works & Setup Guide

Step 1: Import Workflow

Step 2: Configure Webhook

{
  "data": [
    { "text": "I love this" },
    { "text": "This is okay" },
    { "text": "Worst experience ever" }
  ]
}

Step 3: Split Input Data

Step 4: Rate Limiting

Step 5: Preserve Input

Step 6: Sentiment Analysis

Step 7: Merge Data

Step 8: Compute Sentiment

Step 9: Route Data

Step 10: Store Results

Step 11: Create Jira Ticket

How To Customize Nodes

Add-ons

You can enhance this workflow with:

Use Case Examples

  1. Customer feedback analysis for apps or websites
  2. Product review classification from multiple sources
  3. Social media sentiment monitoring
  4. Support ticket prioritization system
  5. Survey response automation

There can be many more use cases depending on how feedback data is collected and used.

Troubleshooting Guide

IssuePossible CauseSolution
Webhook not triggeringIncorrect endpoint or methodVerify POST request and URL
No sentiment outputAPI token missing/invalidCheck Hugging Face API key
Incorrect sentiment classificationConfidence threshold too highAdjust threshold in Compute node
Data not appearing in Sheetsΰ€—ΰ€²ΰ€€ credentials or sheet mappingReconnect Google Sheets
Jira ticket not createdJira credentials issueVerify Jira API connection

Need Help?

If you need assistance setting up this workflow, customizing nodes or building advanced automation solutions, feel free to reach out to n8n developers at WeblineIndia.

Our team can help you:

Contact WeblineIndia for expert support and tailored solutions.

πŸ”— Nodes Used

Google Sheets, HTTP Request, Webhook, Jira Software

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup