Download icon
Script icon
Docker icon
Query icon
SlackIncomingWebhook icon

Automated Customer Feedback Sentiment Analysis and Reporting

Use Kestra to orchestrate a pipeline that downloads customer feedback, uses OpenAI for sentiment analysis, aggregates data with DuckDB, and sends a Slack alert.

Categories
AIBusinessData

How it works

This blueprint automates the triage and analysis of customer feedback. It downloads a dataset of recent customer reviews, utilizes a Python script to call the OpenAI API (using gpt-4o-mini) to determine the sentiment (Positive, Neutral, Negative) and the main topic of each piece of feedback. Then, it uses DuckDB to rapidly aggregate these results into a report and fetches the top negative topics. Finally, it sends a formatted Slack notification to the Customer Success team.

What you get

  • A CSV report containing the aggregated feedback.
  • A Slack notification highlighting the most urgent issues.

Who it's for

  • Customer Success and Product teams looking to automate their feedback loops.

Why orchestrate this with Kestra

Kestra makes it easy to stitch together various data tools (like Python, OpenAI, DuckDB, and Slack) into a single, cohesive workflow.

Prerequisites

You need to have an OpenAI account and a Slack webhook URL.

Secrets

  • OPENAI_API_KEY: Your OpenAI API Key.
  • SLACK_WEBHOOK_URL: Your Slack Incoming Webhook URL.

Quick start

Add your secrets and run the flow.

How to extend

You can extend this blueprint by saving the aggregated data to a data warehouse like BigQuery or Snowflake for long-term reporting.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.