← Back to PlayBook

Workflows • Examples

April 8, 2026

Sentiment Analysis & CSAT Video AI Agent

TGTruGen AIintermediate

Overview

This guide deploys the Sentiment Analysis & CSAT Video AI Agent workflow.

The workflow automatically creates a feedback agent on TruGen and analyzes user sentiment/CSAT after every interaction.


Quick Start: Deployment Flow

This workflow automates setup directly from n8n.

Step 1: n8n Import & Credentials

  1. Import the Sentiment Analysis Trugen Updated.json workflow into n8n.
  2. Connect credentials for:
    • TruGen AI (agent management API key)
    • Google Sheets (feedback data storage)
    • OpenAI (analysis engine, e.g. GPT-4o-mini)

Before you run it: replace hardcoded values

  • In Create a new agent, replace callback_url with your own n8n webhook URL.
  • In Save to Google Sheets and Store in Google Sheets, select your own Google Sheet document and tabs.
  • Replace any default account-specific values (email/credentials) with your own.

Step 2: Automated Agent Creation

  • Find the node "▶️ Click to Start Setup" and execute it.
  • This creates the TruGen Feedback Intelligence Agent with predefined sentiment collection instructions.
  • The generated Agent Link and metadata are stored in your connected Google Sheet.

Step 3: Webhook & Callback Sync

  • Copy your Webhook URL from the n8n Webhook node.
  • In TruGen Dashboard, open your new agent Settings.
  • Set Callback URL to your n8n webhook URL.
  • Set Callback Event to Call Ended.

Workflow Logic

Creation Phase

  • A one-time setup that registers the feedback agent on TruGen and prepares the data logging environment.
  • Node flow: ▶️ Click to Start Setup -> CustomerSatisfaction Description -> Prepare TruGen Feedback Intelligence Agent -> Create a new agent -> Save Agent Info -> Save to Google Sheets

Feedback Capture

  • Users provide voice/video feedback. The agent is configured to capture interactions without bias.
  • Trigger path: Webhook (POST call_ended) -> Get conversation details

Intelligence & Storage

After each call:

  • The workflow receives callback data through Webhook.
  • Full conversation details are fetched.
  • AI sentiment analysis runs (CSAT, sentiment, emotions, pain points).
  • Structured insights are written to Google Sheets.
  • Processing path: AI Agent - Sentiment & CSAT Analysis + Structured Output Parser + 4.1-Mini -> Format for Google Sheets -> Store in Google Sheets

Requirements

  • TruGen AI API access
  • OpenAI API key (optimized for GPT-4o-mini)
  • Google Sheets (pre-formatted template from workflow notes)
  • n8n instance

Data Captured in Output

  • sentiment, csat_score, confidence
  • user_conversation_summary
  • key_insights, pain_points, positive_aspects
  • resolution_status, emotion_detected

Result

  • Automated feedback-agent setup from n8n
  • Post-call CSAT and sentiment intelligence
  • Structured analytics available in Google Sheets