Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

Bibliothek / KI-Agenten & Assistenten

KI-Agenten & Assistenten

Investigate batch deviation root causes with GPT-4.1, QMS, and Slack

When an API call/webhook arrives, it runs an AI agent with OpenAI / ChatGPT using Postgres, Slack.

Was sie bewirkt

## AI Batch Deviation Root-Cause Investigator ### How it works This workflow receives a submitted batch deviation, prepares the investigation context, and uses an AI agent to investigate likely root causes using equipment, operator, environmental, and historical CAPA data. It logs the AI-generated root-cause analysis to Postgres, then branches based on confidence: low-confidence cases are routed for manual investigation, while sufficient-confidence cases go through QA review. If QA approves, the workflow updates the QMS deviation record, optionally creates a draft CAPA, and posts a final investigation summary to Slack. ### Setup steps - Configure the webhook URL and ensure the submitting system sends deviationId, batchId, product, and deviationDescription or compatible fields for the Set - Config node. - Add credentials for OpenAI Chat Model and configure the AI Agent prompt, model, and memory settings. - Configure the AI tool connections for equipment events, operator actions, environmental data, and historical CAPA vector search, including any required API keys or internal network access. - Set up Postgres credentials and confirm the RCA investigation logging table/schema matches the insert or update performed by the Postgres node. - Configure Slack credentials, target channels, and message templates for QA review, manual investigation notices, rejection notices, and final summaries. - Configure QMS API credentials and endpoints for updating deviation records and creating optional CAPA draft records. - Verify the Wait node resume behavior and QA approval payload format so the IF - QA Approved condition can evaluate decisions correctly. ### Customization Adjust the AI investigation prompt, confidence threshold, QA approval logic, CAPA recommendation criteria, Slack channels, and QMS endpoint mappings to match the organization’s deviation and CAPA process.

Die Schritte

  1. When Deviation Submitted
  2. Set Deviation Configuration
  3. Query Equipment Events
  4. Query Operator Actions
  5. Query Environmental Data
  6. Search Historical CAPAs
  7. OpenAI GPT-4 Chat
  8. Buffer AI Memory
  9. Deviation Analysis Agent
  10. Parse Agent Output
  11. Log RCA Investigation
  12. If Hypothesis Confidence High
  13. Notify Manual Investigation
  14. Send QA Review Request

Insgesamt 22 Schritte.

Ähnliche Automatisierungen