WorkflowDrivenAgent & ReactChampionAgent: Product Review Analysis

Discover how to combine WorkflowDrivenAgent with ReactChampionAgent in a single team. Automate structured review processing with deterministic workflows while leveraging LLM-powered sentiment analysis and insights generation.

Product Review Analysis Use Case

This example demonstrates a comprehensive product review analysis system that processes customer reviews, extracts structured metrics, performs sentiment analysis, and generates actionable business insights. Perfect for e-commerce platforms, SaaS companies, and any business that needs to understand customer feedback at scale.

Review Processing

The system processes product reviews with structured data including:

  • • Product name and identifiers
  • • Customer ratings (1-5 stars)
  • • Review text content
  • • Review dates and authors

Metric Extraction

Automatically calculates comprehensive metrics:

  • • Average rating across all reviews
  • • Rating distribution (1-5 stars)
  • • Common keywords and phrases
  • • Average review text length
  • • Valid vs invalid review counts

Business Insights

Generates actionable insights for stakeholders:

  • • Sentiment trends and patterns
  • • Main themes and topics
  • • Pain points and complaints
  • • Strategic recommendations
  • • Executive-ready summaries

Real-World Applications

E-commerce Platforms

Automatically analyze thousands of product reviews to understand customer satisfaction, identify product issues, and highlight strengths. Use insights to improve product quality and customer experience.

SaaS Companies

Process user feedback and feature requests from reviews to prioritize product development. Identify common pain points and satisfaction drivers to guide roadmap decisions.

Market Research

Analyze competitor reviews to understand market positioning, identify gaps, and discover opportunities. Track sentiment trends over time to measure brand perception.

Customer Success Teams

Automatically process and categorize customer feedback to identify at-risk customers, common issues, and satisfaction patterns. Generate reports for stakeholders and product teams.

What is WorkflowDrivenAgent?

A WorkflowDrivenAgent is a specialized agent that executes predefined workflows instead of using traditional LLM-based reasoning. Unlike standard agents that use language models to make decisions, WorkflowDrivenAgents follow a deterministic workflow pattern, making them ideal for structured, repeatable processes.

💡 LLM Integration in Workflow Steps

While WorkflowDrivenAgent excels at deterministic processing, it also provides flexibility to invoke LLMs within any workflow step. You can use any LLM SDK (LangChain, AI SDK, OpenAI SDK, etc.) to add reasoning and NLP capabilities directly within workflow steps.

This means you can combine deterministic data processing with LLM-powered analysis in the same workflow, giving you the best of both worlds: cost-efficient structured processing and powerful natural language understanding where needed.

Deterministic Execution

Predictable, step-by-step processes that produce consistent results for the same input.

LLM Integration

Invoke LLMs in any workflow step using LangChain, AI SDK, or any LLM library for reasoning and NLP capabilities.

Complex Orchestration

Support for conditional logic, parallel processing, and loops in workflow definitions.

State Management

Built-in workflow state tracking with support for suspension and resumption.

How Mixed Agent Teams Work

Our intelligent AI agents work together, combining the efficiency of workflow-driven processing with the power of LLM-based analysis

WorkflowDrivenAgent

Review Processor

Specializes in structured data processing using deterministic workflows. Validates reviews, extracts metrics (average rating, rating distribution, common keywords), and aggregates data. Can also invoke LLMs in workflow steps if needed for additional reasoning or NLP capabilities using any SDK (LangChain, AI SDK, etc.).

  • Validates review data structure
  • Calculates metrics and statistics
  • Extracts keywords and patterns
  • Aggregates processed data
ReactChampionAgent

Sentiment Analyzer

Uses LLM-powered natural language understanding to analyze sentiment, identify themes, and detect emotional patterns in customer reviews.

  • Analyzes overall sentiment trends
  • Identifies main themes and topics
  • Detects pain points and complaints
  • Highlights positive aspects
ReactChampionAgent

Insights Generator

Generates actionable business insights and strategic recommendations based on processed metrics and sentiment analysis results.

  • Identifies key findings and trends
  • Prioritizes improvement areas
  • Provides actionable recommendations
  • Creates executive-ready summaries

How the Review Analysis Works

A detailed look at the three-step workflow process for analyzing product reviews

1
WorkflowDrivenAgent - Validation Step

Review Validation & Data Quality Check

The workflow starts by validating each review against a structured schema. This step ensures data quality and identifies any malformed or incomplete reviews.

Validation Checks:

  • • Validates product name is present and non-empty
  • • Ensures rating is a number between 1 and 5
  • • Verifies review text exists and meets minimum length
  • • Validates optional fields (date, author) if provided

Output: Separates reviews into valid and invalid categories, providing error details for invalid entries. This ensures downstream processing only works with high-quality data.

2
WorkflowDrivenAgent - Metrics Extraction Step

Comprehensive Metrics Extraction

This step processes all valid reviews to extract quantitative metrics and statistical insights. All calculations are performed deterministically without LLM costs.

Rating Metrics:

  • • Average rating across all reviews
  • • Rating distribution (count per star level)
  • • Total review count

Text Analysis:

  • • Average review text length
  • • Common keywords (top 10 most frequent)
  • • Word frequency analysis

Output: Structured metrics object containing average rating, rating distribution, keyword frequencies, and statistical summaries. This data is ready for visualization or further analysis.

3
WorkflowDrivenAgent - Aggregation Step

Data Aggregation & Summary Generation

The final workflow step aggregates all processed data and generates a structured summary. This prepares the data for consumption by LLM-based agents.

Aggregation Includes:

  • • All calculated metrics (ratings, keywords, statistics)
  • • Complete list of valid reviews
  • • Human-readable summary text
  • • Structured data ready for LLM analysis

Output: Complete processed data package with metrics, reviews, and summary. This structured output is then passed to ReactChampionAgents for sentiment analysis and insights generation.

LLM-Powered Analysis & Insights

After structured processing, ReactChampionAgents provide deep insights using natural language understanding

4
ReactChampionAgent

Sentiment Analysis

The Sentiment Analyzer ReactChampionAgent receives the processed review data and metrics. Using LLM-powered natural language understanding, it analyzes:

  • Overall sentiment trends: Identifies whether reviews are predominantly positive, negative, or neutral
  • Main themes and topics: Discovers what customers are talking about most frequently
  • Pain points and complaints: Highlights specific issues mentioned by customers
  • Positive aspects: Identifies strengths and features customers love
  • Emotional patterns: Analyzes how sentiment varies across different rating levels
5
ReactChampionAgent

Business Insights Generation

The Insights Generator ReactChampionAgent takes both the processed metrics and sentiment analysis to create actionable business recommendations:

  • Key findings: Summarizes the most important trends and patterns discovered
  • Priority areas: Identifies which issues should be addressed first based on frequency and impact
  • Strengths to leverage: Highlights what's working well and should be emphasized
  • Actionable recommendations: Provides specific, implementable suggestions for improvement
  • Executive summary: Creates a stakeholder-ready summary for decision-making

Example Output

Sentiment Analysis Results:

"Overall sentiment is mixed with 57% positive reviews. Main themes include battery life concerns, camera quality praise, and pricing feedback. Common pain points: overheating issues and battery drain. Positive aspects: screen quality and performance consistently praised."

Business Insights:

"Priority: Address battery life concerns (mentioned in 40% of negative reviews). Leverage camera quality as key selling point. Consider pricing strategy review. Recommended actions: 1) Battery optimization update, 2) Highlight camera in marketing, 3) Review pricing competitiveness."

When to Use WorkflowDrivenAgent vs ReactChampionAgent

Understanding when to use each agent type helps you build optimal mixed teams

Use WorkflowDrivenAgent For:

  • Well-defined, repeatable processes
  • Structured data validation and processing
  • Metric extraction and calculations
  • Deterministic operations (same input = same output)
  • Cost-sensitive structured tasks
  • Complex orchestration with conditionals and loops

Use ReactChampionAgent For:

  • Creative problem-solving and analysis
  • Natural language understanding
  • Sentiment analysis and emotional intelligence
  • Dynamic decision-making based on context
  • Content generation and summarization
  • Tasks requiring human-like reasoning

Interactive Mixed Agent Team Demo

Experience the power of combining WorkflowDrivenAgent with ReactChampionAgent. Try the interactive demo below to see how structured workflow processing and LLM-powered analysis work together to provide comprehensive review insights.

This demo showcases the collaborative AI agent workflow.Try the full version →

Ready to Build Your Mixed Agent Team?

Start combining WorkflowDrivenAgent and ReactChampionAgent to create powerful, cost-efficient AI solutions that leverage the best of both deterministic workflows and LLM-based reasoning.

GitHub Stars

We’re almost there! 🌟 Help us hit 100 stars!

Star KaibanJS - Only 100 to go! ⭐