Skip to main content
An automated feedback processing pipeline that analyzes sentiment with AI, categorizes issues, and creates tickets for negative feedback. This example shows how to combine workflows with agents and connectors for a hands-off analysis system.

Project Structure

Step 1: Configuration

config/settings.ts

Step 2: Analysis Agents

Sentiment Analyzer

Cheap, fast model for classification:
agents/sentiment.ts

Action Recommender

Better model for nuanced recommendations:
agents/action-recommender.ts

Step 3: Workflow

The workflow chains analysis steps and conditionally creates tickets:
workflows/analyze-feedback.ts

Step 4: Main Entry Point

main.ts

Triggering the Pipeline

This workflow is typically triggered by external events, not user conversations:

How It Works

Key Patterns

Pipeline vs Conversation

This is a workflow (pipeline), not an agent (conversation). Data flows in, gets processed, and comes out — no back-and-forth with a user. Workflows are ideal for batch processing and event-driven automations.

Cheap Classification, Quality Recommendations

The sentiment agent uses gpt-4o-mini (fast, cheap). The action recommender uses gpt-4o (better reasoning). Match model cost to task complexity.

Structured JSON for Reliable Branching

Both agents return structured JSON so the workflow can reliably branch on results:

Next Steps

Workflows

Learn more about workflows

Connectors

HubSpot, Slack integrations

Multi-Agent System

Supervisor pattern

Observability

Track business metrics