Use the Agent Node in Automation Pro to automatically analyze monthly quality defect records, identify recurring issues and high-risk processes, and recommend improvements. Quality teams spend less time compiling reports and gain clearer insights into where improvements are needed.
Before you start
Enable AI Features under Management > Business Settings. Super admins and the business owner can enable this setting. Agent Node executions use AI credits.
Prepare the following forms:
Form | Purpose |
Monthly Quality Analysis | Stores AI-generated monthly quality reports. |
Quality Defect Records | Stores individual quality defect records, including defect types, causes, quantities, and corrective actions. |
Product Info | Provides additional context, such as product categories, key processes, risk levels, and inspection requirements. |
How it works
Monthly scheduled trigger → Calculate the reporting month → Agent queries and analyzes quality defect records → Add Record saves the monthly report.
The automation runs once a month to analyze quality defect records from the previous calendar month. The results are saved in the Monthly Quality Analysis form for quality teams and managers to review.
See it in action
At the beginning of each month, AI automatically reviews the previous month's quality defect records:
Summarizes quality performance: Counts defect records and calculates the total number of defective units.
Identifies recurring issues: Highlights major defect types and common causes.
Pinpoints high-risk areas: Identifies recurring problems across products, processes, production lines, and production teams.
Recommends improvements: Provides actionable suggestions based on the identified issues and risks.
The AI-generated analysis is saved directly in the Monthly Quality Analysis form, as shown below:
How to set it up
Step 1: Create the automation and set its trigger
Open Monthly Quality Analysis, go to Extension > Automation Pro, and create an automation named Monthly Quality Defect Analysis.
Select Scheduled Trigger as the trigger type.
Configure the trigger node as follows:
Trigger Time: Select Trigger by custom time and set the start time based on your business needs.
Recurrence: Select Trigger once monthly.
End Time: Set an end time based on your business needs.
We recommend scheduling the automation for the first day of each month to analyze the previous month's records.
Step 2: Calculate the reporting period
Add two Add Formula nodes to calculate the report generation time and reporting month.
Current Time
Configure the first Add Formula node as follows:
Node Name: Current Time
Calculation Method: Formula Calculation
Formula:
NOW()Calculation Result: Date&Time
Reporting Month
Configure the second Add Formula node as follows:
Node Name: Reporting Month
Calculation Method: Formula Calculation
Formula:
CONCATENATE(TEXT(DATEDELTA(TODAY(), -DAY(TODAY())), "yyyy-MM"))Calculation Result: Text
Step 3: Add the Agent Node
Click + on the connection line and add an Agent Node to analyze quality defect records and generate a monthly report.
Configure the node as follows:
Execution Instructions: Use Reporting Month from the preceding node as the AI input. Refer to the sample prompt at the end of this guide.
Allowed Tools:Click Add Tool, select Query Data, and configure the Query Data - Quality Defect Records tool.
Tool Description: Retrieve quality defect records for the specified reporting month.
Query Form: Select Quality Defect Records. Configure the query to retrieve records whose Discovery Date falls within the reporting month, including the fields required by the sample prompt.
Output Fields: Add the following output fields:
Field Name | Type | Description |
Total Defect Records | Number | Number of retrieved defect records |
Total Defective Units | Number | Total quantity of defective units |
Major Defect Types | Text | Analysis of the most common defect types |
Recurring Defect Causes | Text | Analysis of frequent and recurring causes |
High-Risk Areas | Text | Key processes and areas requiring attention |
Improvement Recommendations | Text | Actionable quality improvement suggestions |
Monthly Summary | Text | Overall quality performance and key findings |
Step 4: Save the monthly report
Click + on the connection line and add an Add Record node.
Configure the node as follows:
Target Form: Select Monthly Quality Analysis.
Set Field Values: Map the fields to the corresponding outputs from the preceding nodes.
Form Field | Field Value |
Analysis Month | Reporting Month - Reporting Month |
Total Defect Records | Agent - Total Defect Records |
Total Defective Units | Agent - Total Defective Units |
Major Defect Types | Agent - Major Defect Types |
Recurring Defect Causes | Agent - Recurring Defect Causes |
High-Risk Areas | Agent - High-Risk Areas |
Improvement Recommendations | Agent - Improvement Recommendations |
Monthly Summary | Agent - Monthly Summary |
Generated Time | Current Time - Current Time |
Click Save & Enable to activate the automation.
Sample prompt
In the sample prompt below, Reporting Month is a field reference. After copying the prompt, replace it with the corresponding field from the upstream node in your Automation Pro.
Monthly quality defect analysis
## Role
You are an experienced quality management analyst specializing in manufacturing defect analysis, risk identification, and process improvement.
## Goal
Analyze quality defect records for the specified reporting month, identify recurring quality issues and high-risk areas, and generate a structured monthly quality report with actionable improvement recommendations.
## Input
Reporting Month: Reporting Month—Reporting Month
## Tools
Query Quality Defect Records: Retrieves quality defect records for the specified reporting month, including the following fields:
- Discovery Date
- Product Name
- Product Model
- Production Batch
- Production Line
- Process
- Production Team
- Defect Type
- Defect Description
- Defect Cause
- Responsible Process
- Severity
- Defective Quantity
- Corrective Actions
- Closure Status
- Person Responsible
## Workflow
1. Identify the reporting month from the input.
2. Retrieve quality defect records whose Discovery Date falls within the specified month.
3. Count the retrieved defect records and calculate the total number of defective units.
4. Analyze major defect types, their frequency, and defective quantities.
5. Identify recurring defect causes and common patterns across products, batches, and processes.
6. Identify high-risk products, production lines, processes, and production teams based on defect frequency, quantity, severity, and closure status.
7. Review existing corrective actions and identify unresolved or recurring issues.
8. Provide targeted improvement recommendations based on the identified issues and risks.
9. Generate a structured monthly quality report using the output format below.
## Data Retrieval Rules
- Query Quality Defect Records for the entire reporting month.
- Use the configured monthly date range filter.
- Do not use an exact date match to query monthly records.
- Count all retrieved defect records.
- Calculate Total Defective Units by summing Defective Quantity.
- If no records are returned, report the query result and indicate whether the full reporting month was searched.
- Do not assume that an empty query result means there were no quality defects during the month.
## Constraints
- Use only the retrieved records. Do not invent or modify data.
- Ensure all analyzed records fall within the specified reporting month.
- Distinguish the number of defect records from the total number of defective units.
- Do not assume the retrieved records represent the entire month if the query results are incomplete.
- Distinguish recorded defect causes from inferred patterns.
- Do not calculate defect rates without sufficient production quantity data.
- If no records are found, return 0 for both numeric output fields and explain that no quality defect records are available for the reporting month.
- Focus on recurring issues and significant risks rather than repeating individual records.
- Provide specific, practical, and actionable improvement recommendations.
- Use concise, professional language suitable for quality management reporting.
- Keep all seven output fields.
## Output
### Total Defect Records
Return the total number of retrieved quality defect records as a number.
### Total Defective Units
Return the sum of Defective Quantity across the retrieved records as a number.
### Major Defect Types
Provide a brief overall assessment followed by 2–4 key findings.
Identify the most common defect types, their record counts, defective quantities, and concentrations across products or processes.
### Recurring Defect Causes
Provide a brief overall assessment followed by 2–4 key findings.
Identify frequent defect causes, recurring patterns, and common process control issues.
### High-Risk Areas
Provide a brief overall assessment followed by 2–3 key findings.
Identify high-risk products, production lines, processes, or production teams. Highlight critical defects, recurring issues, and unresolved problems that require attention.
### Improvement Recommendations
Provide 3 specific and actionable recommendations based on the identified issues and risks.
Prioritize recurring defects, critical quality issues, and unresolved problems. Consider process optimization, equipment calibration, inspection controls, and operator training where supported by the records.
### Monthly Summary
Summarize the overall quality performance in 3–5 sentences, covering:
- Total defect records and defective units.
- Major defect types and recurring causes.
- Key quality risks and unresolved issues.
- Improvement priorities for the following month.
State any data limitations where applicable.
## Formatting
- Return numeric values only for Total Defect Records and Total Defective Units.
- Use short paragraphs and clear line breaks for text outputs.
- Format numbered findings as follows:
1. [Keyword]: Explanation
2. [Keyword]: Explanation
3. [Keyword]: Explanation
- Avoid unnecessary introductory or concluding statements.
- Return each result in its corresponding output field.








