AI-Powered Customer Feedback Analysis System for Container Shipping

hapag-lloyd · Other · 2026 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Container-shipping product feedback analytics

Hapag-Lloyd needed to replace manual, reactive review of exported customer-feedback CSVs with a scalable system that identifies sentiment, themes, and actionable product insights quickly.

Constraints:

Architecture

Hapag-Lloyd's feedback system is a daily AWS pipeline: Lambda ingests feedback into S3, Bedrock classifies sentiment and performs semantic detection, OpenSearch indexes records as both full-text search and vector database, dashboards support stakeholder drill-down, and a Claude Sonnet 4.6 LangGraph chatbot queries the OpenSearch knowledge base under Bedrock Guardrails. A second biweekly Lambda aggregates trend reports for product ceremonies.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  feedback-collection-layer["feedback-collection-layer"]
  daily-lambda-ingestion["daily-lambda-ingestion"]
  s3-feedback-store["s3-feedback-store"]
  bedrock-sentiment-classifier["bedrock-sentiment-classifier"]
  opensearch-feedback-index["opensearch-feedback-index"]
  opensearch-dashboards["opensearch-dashboards"]
  langgraph-chatbot["langgraph-chatbot"]
  claude-sonnet-bedrock-model["claude-sonnet-bedrock-model"]
  bedrock-guardrails["bedrock-guardrails"]
  cross-region-inference["cross-region-inference"]
  biweekly-report-lambda["biweekly-report-lambda"]
  ses-report-delivery["ses-report-delivery"]
  monitoring-and-audit["monitoring-and-audit"]
  feedback-collection-layer --> daily-lambda-ingestion
  daily-lambda-ingestion --> s3-feedback-store
  daily-lambda-ingestion --> bedrock-sentiment-classifier
  daily-lambda-ingestion --> opensearch-feedback-index
  s3-feedback-store --> bedrock-sentiment-classifier
  bedrock-sentiment-classifier --> opensearch-feedback-index
  opensearch-feedback-index --> opensearch-dashboards
  opensearch-feedback-index --> langgraph-chatbot
  langgraph-chatbot --> claude-sonnet-bedrock-model
  langgraph-chatbot --> bedrock-guardrails
  cross-region-inference --> claude-sonnet-bedrock-model
  biweekly-report-lambda --> ses-report-delivery
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
feedback-collection-layer Web and mobile rating/comment capture from customer-facing products. daily-lambda-ingestion
daily-lambda-ingestion Daily AWS Lambda job that fetches new feedback records and starts processing. s3-feedback-store, bedrock-sentiment-classifier, opensearch-feedback-index
s3-feedback-store Storage layer for ingested customer feedback before semantic processing and indexing. bedrock-sentiment-classifier
bedrock-sentiment-classifier Bedrock-powered sentiment and semantic detection layer for open comments. opensearch-feedback-index
opensearch-feedback-index Full-text and vector index used by dashboards and the internal chatbot. opensearch-dashboards, langgraph-chatbot
opensearch-dashboards Interactive dashboard layer for sentiment, ratings, trends, filters, and root-cause drill-down. —
langgraph-chatbot Stakeholder-facing multi-agent chatbot that queries the feedback index through LangGraph tools. claude-sonnet-bedrock-model, bedrock-guardrails
claude-sonnet-bedrock-model Claude Sonnet 4.6 model used for internal feedback exploration conversations. —
bedrock-guardrails Safety and compliance controls applied to chatbot responses through LangChain configuration. —
cross-region-inference EU regional inference endpoint strategy for unplanned traffic bursts and resilience. claude-sonnet-bedrock-model
biweekly-report-lambda Trend-report aggregation job that produces key metrics, highlights, and sentiment breakdowns. ses-report-delivery
ses-report-delivery Email delivery channel for biweekly reports to product managers and owners. —
monitoring-and-audit CloudWatch, model invocation logging, and CloudTrail telemetry for operations, cost, latency, and auditability. —

Data flow

Customers leave ratings and comments in web/mobile products. Once per day, Lambda fetches new feedback, Bedrock classifies sentiment and semantics, records are indexed in OpenSearch, stakeholders explore dashboards or ask a guarded Claude Sonnet chatbot, and every two weeks another Lambda creates a trend report that is emailed through SES for planning and roadmap discussions.

3 supporting quotes
“A AWS Lambda function runs once per day to fetch the new feedback entries.”article, stated
“Processed records are indexed in Amazon OpenSearch Service, serving both as our full-text search engine and vector database.”article, stated
“Every two weeks, a second Lambda function aggregates and analyzes the latest feedback trends.”article, stated

Why this architecture

Hapag-Lloyd chose a batch-oriented AWS architecture because feedback analysis needed consistent, scalable insight rather than millisecond latency. OpenSearch supports both dashboard filtering and chatbot retrieval, LangChain/LangGraph coordinate multi-step generative workflows, guardrails and monitoring make the internal assistant governable, and CRIS protects stakeholder exploration during bursts.

3 supporting quotes
“The solution is built on AWS architecture designed to address these challenges through scalability, maintainability, and security.”article, stated
“Orchestration is a core foundation of our solution, because generative AI workflows typically involve multiple steps that need to be coordinated.”article, stated
“This cross-region capability ensures our feedback processing pipeline remains resilient during peak usage periods while maintaining consistent performance”article, stated

Models used: Claude Sonnet 4.6 · Amazon Bedrock foundation models

Scale

Alternatives considered (roads not taken)

Manual CSV review before product ceremonies

Rejected because: Manual review took hours or days and could not scale when faster or deeper insight was needed.

“manually analyzing customer feedback could take hours, sometimes days, when hundreds of ratings and comments needed to be reviewed.”article, stated

Dashboards only

Rejected because: The system adds a natural-language chatbot so product managers and support teams can ask context-rich questions beyond fixed visualizations.

“Product managers and support teams can ask natural-language questions, for example, “What pain points do customers mention most often?””article, stated

Rigid step-by-step chatbot workflows

Rejected because: LangGraph lets an LLM dynamically select tools and actions for feedback exploration.

“instead of rigid step-by-step flows, we use an agent-based approach where an LLM selects the right tools and actions dynamically to answer user queries.”article, stated

Uncoordinated team-by-team AI spaces

Rejected because: The AI-Native Umbrella Program standardizes infrastructure, security, and guardrails while still allowing independent team exploration.

“By providing standardized infrastructure, security, and guardrails, we aim to enable every role in the department”article, stated

Patterns

batch-offline-processing (feedback-ingestion)

A daily Lambda job ingests new feedback, classifies sentiment, embeds records, and indexes them before dashboards and reports consume them.

“A AWS Lambda function runs once per day to fetch the new feedback entries.”article, stated

rag-retrieval (feedback-chatbot)

The internal chatbot queries the OpenSearch index as a knowledge base to answer stakeholder questions about feedback.

“Our stakeholder-facing chatbot queries the OpenSearch index as its knowledge base.”article, stated

multi-agent-orchestration (stakeholder-assistant)

LangGraph defines assistants with their own logic and tools, letting an LLM select actions dynamically for user feedback queries.

“we rely on LangGraph to implement a multi-agent architecture. Each assistant is defined declaratively in LangGraph, encapsulating its own logic and tools.”article, stated

guardrails-io-filtering (responsible-ai)

The chatbot applies Bedrock guardrails through LangChain configuration to keep feedback exploration responsible and secure.

“The model is configured with guardrails applied directly through LangChain configuration:”article, stated

observability-tracing (ai-operations)

CloudWatch, Bedrock invocation logging, and CloudTrail record metrics, model inputs/outputs, metadata, and API events for optimization and audit.

“We monitor the parts of the application using Amazon CloudWatch, which collects raw data and processes it into readable, near real-time metrics.”article, stated
“We enabled model invocation logging to collect invocation logs, model input data, and model output data for the invocations”article, stated

data-quality-loop (product-feedback-action)

AI reports identify negative feedback, guide product changes, and then track whether sentiment improved after release.

“After its release, AI-driven reports allowed us to track user reactions in detail.”article, stated

Tradeoffs

How to expose feedback insights to teams.

Chose dashboards plus a natural-language chatbot and biweekly reports over raw CSV exports and manual review ceremonies.

Rationale: Different stakeholders need both high-level trends and drill-down access to features, comments, sentiment, and root causes.

“Dashboards support filtering by time period, comment sentiment, product version, and more, enabling targeted root cause analysis.”article, stated

How to scale AI adoption internally.

Chose standardized infrastructure, security, and guardrails under an AI-Native Umbrella Program over uncoordinated team-by-team AI spaces.

Rationale: The company wants lower experimentation barriers while maintaining consistency, responsibility, and scalability.

“By providing standardized infrastructure, security, and guardrails, we aim to enable every role in the department”article, stated

Gotchas (what bit them)

Manual review was too reactive and slow for product decisions.

Root cause: Product managers exported CSVs every two weeks and manually categorized hundreds of ratings/comments before review ceremonies.

Resolution: The automated pipeline collects, classifies, indexes, summarizes, and reports feedback continuously.

“Every two weeks, Product Managers exported customer feedback data as CSV files, read through large volumes of comments, and manually categorized sentiment and themes.”article, stated

Peak usage could disrupt stakeholder feedback exploration.

Root cause: Unplanned traffic bursts can strain regional model capacity for a global stakeholder base.

Resolution: Hapag-Lloyd uses geographic Cross-Region Inference Service endpoints across EU AWS Regions.

“This cross-region capability ensures our feedback processing pipeline remains resilient during peak usage periods while maintaining consistent performance”article, stated

AI recommendations need traceability into operational behavior.

Root cause: Teams need to optimize latency/cost and understand request/response metadata, not just read final summaries.

Resolution: The solution logs invocations, input/output data, metadata, and CloudTrail API events.

“This generates insights that you can use to optimize the applications further like improving response latency or reducing costs.”article, stated

Evaluation

Hapag-Lloyd evaluates sentiment classification on a labeled test set, monitors app/model operations, tracks latency/cost signals, and compares user feedback before and after product decisions.

Metrics: monthly feedback volume · sentiment classification accuracy · time from insight to action · positive/negative comment trends · latency · cost

“The solution processes over 15,000 feedback items per month with an accuracy of 95% for sentiment classification on a labeled test dataset.”article, stated
“By continuously monitoring customer feedback, we can react quickly to early signals, adjust decisions, and correct course when needed.”article, implied

Outcomes

Hapag-Lloyd operates 313 container ships, 2.5 million TEU transport capacity, 400-plus offices, and connections across more than 600 ports.

“teams can now receive clear, structured summaries in seconds that highlight the most important topics and recurring signals.”article, stated
“Feedback related specifically to this feature showed that the previously frequent requests for preview capability were effectively resolved”article, stated