compose.yaml:
- Add hostname n8n.eks-intec.de to fix SMTP HELO rejection
- Add NODE_TLS_REJECT_UNAUTHORIZED=0 for internal CA trust
workflow-a-http.json:
- Replace Set node with Code node for reliable data extraction
- Strip HTML from thread bodies before AI analysis
- Preserve newlines as ¶ (pilcrow) in DB storage instead of flattening
workflow-b-http.json:
- Add Prepare Email Body node: restores ¶→\n, strips markdown,
converts numbered lists to <ol><li>, generates HTML email template
- Switch emailSend from plain text to HTML+text (multipart)
- Fix Log Reply to Freescout: use MAX(created_at)+1s to ensure
n8n reply appears as newest thread regardless of email header timestamps
- Fix emailSend typeVersion 1 with text field for reliable expression support
- Correct Freescout thread INSERT: type=2, cc/bcc='[]', customer_id via subquery
freescout-templates/:
- Modern reply_fancy.blade.php: blue header bar with mailbox name and
ticket number badge, quoted thread styling with left border accent, footer
- Modern auto_reply.blade.php: matching design for auto-reply emails
- Deploy to server: scp to /tmp, apply with sudo cp + artisan view:clear
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 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
- Added etcd service for distributed coordination
- Added MinIO service for object storage
- Added Milvus v2.4.0 vector database (standalone mode)
- Added PostgreSQL 15-alpine for knowledge base
- All services include healthchecks
- Updated .env with POSTGRES_PASSWORD and MILVUS_API_URL