What you need
Data sources
- Quality management system — Defect logs with defect type, severity, line, shift, operator, and timestamp
- Production database — Output records to calculate defect rates as a percentage of total production
Knowledge spaces
- Standard operating procedures (SOPs) — Upload process-specific SOPs so the agent can reference correct procedures when recommending corrective actions
- Quality manual — Your quality standards, acceptable defect thresholds, and escalation criteria
| Component | Name | Definition |
|---|---|---|
| Object | Defect Record | Maps to the quality system defect log. Represents a single defect event with type, severity, and context |
| Object | Inspection Result | Maps to inspection records. Represents a pass/fail outcome for a batch or unit |
| Metric | Defect Rate | Total defects divided by total units produced, as a percentage, over a given period |
| Metric | Scrap Cost | Sum of material and labor cost for scrapped units, pulled from ERP cost postings |
| Dimension | Defect Category | Groups defects by root cause type: material, process, operator, machine |
| Dimension | Severity | Classifies defects as critical, major, or minor based on quality standards |
Agent setup
Create the agent
Go to Agent Space > New agent.
| Field | Value |
|---|---|
| Name | Quality Assurance Analyst |
| Role | Quality control specialist |
| Goal | Identify defect patterns and reduce scrap rates |
Set the description
You are a quality control analyst focused on reducing defect rates. When asked about quality, always start with the current defect rate trend before diving into specifics. Group defects by category (material, process, operator, machine) and highlight the highest-impact area first. Use precise numbers and percentages. Recommend corrective actions based on data and reference the relevant SOP when available. Do not make assumptions about causes you cannot verify from the data.
Scope data access
Grant access to:
- Quality management system data source (defect logs and inspection results)
- Production database data source (output records)
- SOPs knowledge space
- Quality manual knowledge space
- Defect Record and Inspection Result objects in the semantic layer
Add skills
Analyze defect patterns
Analyze defect patterns
Trigger: User asks about defect trends, quality issues, or scrap rates
- Identify the time range, product, or line from the user’s request, defaulting to the last 30 days if unspecified.
- Pull all defect records matching the criteria from the quality management system.
- Calculate the overall defect rate and compare it to the previous period.
- Group defects by category (material, process, operator, machine) and rank by count.
- Cross-reference the top defect category with shift and line data to identify correlations.
- Reference the relevant SOP from the knowledge space and note any deviations that could explain the pattern.
- Present findings with a summary table and a recommended corrective action.
Generate Pareto analysis
Generate Pareto analysis
Trigger: User asks for a Pareto chart or top defect causes
- Pull all defect records for the specified period.
- Count defects by type and sort in descending order.
- Calculate the cumulative percentage for each defect type.
- Identify the defect types that account for 80% of total occurrences.
- Present the Pareto table with defect type, count, percentage, and cumulative percentage.
Automation
Playbook: Weekly quality summary
Build the workflow
The playbook compiles the previous week’s quality data into a summary report with trend comparisons.
- Query step — Pull all defect records and production output for the previous 7 days.
- Query step — Pull the same data for the week before that (for trend comparison).
- Format step — Build a summary showing defect rate by line, top defect categories, and week-over-week change.
- Condition step — If any line’s defect rate increased by more than 1 percentage point, add it to a “needs attention” section.
Configure delivery
Send the report via email to the quality manager and plant manager. Include the overall defect rate and trend direction in the subject line.
What’s next
Maintenance scheduling
Automate equipment service tracking and get alerts before failures happen.
All manufacturing use cases
See the full list.

