Commit Graph

4 Commits

Author SHA1 Message Date
Claude Code
2fb4a54f75 fix: add Item Lists node to properly split data array from SQL response
- Replace splitInBatches with itemLists node for better data handling
- Configure splitField to 'data' to extract individual items from API response
- Adjust node positions and connections accordingly
- Fixes issue where only first item was being processed
2026-03-17 11:06:50 +01:00
Claude Code
b8d9023d00 fix: update LLM model to gpt-oss_120b_128k-gpu
- Replace unavailable gpt-3.5-turbo with available gpt-oss_120b_128k-gpu model
- Model is confirmed available on LiteLLM API endpoint
- Maintains all prompt structure and JSON response requirements
2026-03-17 11:02:47 +01:00
Claude Code
ce921f603d fix: correct SQL query syntax in Workflow A - replace NOT IN with LEFT JOIN for MariaDB compatibility
- Use LEFT JOIN with IS NULL condition instead of NOT IN subquery
- Change GROUP_CONCAT separator from '\n' to ',' (MariaDB syntax)
- Query now successfully returns unprocessed conversations from Freescout DB
- Verified: returns 20 conversations with proper data structure
2026-03-17 10:41:48 +01:00
Claude Code
96d70d9edf fix: resolve MariaDB collation error by switching from mysql-connector to PyMySQL
- Replace mysql-connector-python with PyMySQL driver for better MariaDB compatibility
- PyMySQL handles utf8mb4_0900_ai_ci collation properly without errors
- Update Dockerfile.sql-executor to install PyMySQL and psycopg2-binary
- Refactor sql-query-executor.py to use PyMySQL API (pymysql.connect, DictCursor)
- Verified sql-executor service with SELECT, INSERT, UPDATE operations on Freescout DB
- Add n8n workflow definitions: workflow-a-http.json and workflow-b-http.json
  * Workflow A: Polls unprocessed conversations, analyzes with LiteLLM, saves suggestions
  * Workflow B: Polls approved suggestions, executes Baramundi jobs or email replies
- Update compose.yaml with sql-executor service configuration and dependencies

All SQL operations now execute successfully against MariaDB 11.3.2
2026-03-17 09:31:03 +01:00