kenso war das
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# n8n Workflows für EmailSorter
|
||||
# n8n Workflows für MailFlow
|
||||
|
||||
Dieses Verzeichnis enthält optionale n8n Workflows zur E-Mail-Automatisierung.
|
||||
|
||||
@@ -11,7 +11,7 @@ Dieses Verzeichnis enthält optionale n8n Workflows zur E-Mail-Automatisierung.
|
||||
2. **Credentials einrichten**
|
||||
- Gmail OAuth2 Credentials
|
||||
- Mistral AI API Key (https://console.mistral.ai/)
|
||||
- HTTP Header Auth für EmailSorter API
|
||||
- HTTP Header Auth für MailFlow API
|
||||
|
||||
## Workflows
|
||||
|
||||
@@ -23,7 +23,7 @@ Haupt-Workflow für die E-Mail-Sortierung:
|
||||
2. **Gmail: E-Mail abrufen**: Holt E-Mail-Details
|
||||
3. **Mistral AI: Klassifizieren**: KI kategorisiert die E-Mail
|
||||
4. **Gmail: Label setzen**: Fügt entsprechendes Label hinzu
|
||||
5. **Statistiken aktualisieren**: Sendet Update an EmailSorter API
|
||||
5. **Statistiken aktualisieren**: Sendet Update an MailFlow API
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -51,18 +51,18 @@ n8n import:workflow --input=workflows/email-sorter-workflow.json
|
||||
### 3. Environment Variables
|
||||
|
||||
```env
|
||||
EMAILSORTER_API_URL=http://localhost:3000
|
||||
EMAILSORTER_API_KEY=your-api-key
|
||||
MAILFLOW_API_URL=http://localhost:3000
|
||||
MAILFLOW_API_KEY=your-api-key
|
||||
```
|
||||
|
||||
### 4. Webhook URL notieren
|
||||
|
||||
Nach dem Aktivieren des Workflows wird eine Webhook-URL generiert:
|
||||
```
|
||||
https://your-n8n-instance.com/webhook/email-sorter-webhook
|
||||
https://your-n8n-instance.com/webhook/mailflow-webhook
|
||||
```
|
||||
|
||||
Diese URL im EmailSorter Backend konfigurieren.
|
||||
Diese URL im MailFlow Backend konfigurieren.
|
||||
|
||||
## Anpassungen
|
||||
|
||||
@@ -89,7 +89,7 @@ Nach dem Label-Node einen "Gmail: Archive" Node hinzufügen:
|
||||
|
||||
- Ausführungen in n8n UI überwachen
|
||||
- Fehler-Benachrichtigungen einrichten
|
||||
- Statistiken im EmailSorter Dashboard prüfen
|
||||
- Statistiken im MailFlow Dashboard prüfen
|
||||
|
||||
## Skalierung
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "EmailSorter - Automatische E-Mail-Sortierung",
|
||||
"name": "MailFlow - Automatische E-Mail-Sortierung",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
@@ -13,7 +13,7 @@
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 1,
|
||||
"position": [250, 300],
|
||||
"webhookId": "email-sorter-webhook"
|
||||
"webhookId": "mailflow-webhook"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
@@ -81,7 +81,7 @@
|
||||
"resource": "message",
|
||||
"operation": "addLabels",
|
||||
"messageId": "={{ $('Gmail: E-Mail abrufen').item.json.id }}",
|
||||
"labelIds": ["EmailSorter/Newsletter"]
|
||||
"labelIds": ["MailFlow/Newsletter"]
|
||||
},
|
||||
"id": "gmail-label-newsletter",
|
||||
"name": "Gmail: Newsletter Label",
|
||||
@@ -100,7 +100,7 @@
|
||||
"resource": "message",
|
||||
"operation": "addLabels",
|
||||
"messageId": "={{ $('Gmail: E-Mail abrufen').item.json.id }}",
|
||||
"labelIds": ["={{ 'EmailSorter/' + $('Mistral AI: Klassifizieren').item.json.choices[0].message.content.trim() }}"]
|
||||
"labelIds": ["={{ 'MailFlow/' + $('Mistral AI: Klassifizieren').item.json.choices[0].message.content.trim() }}"]
|
||||
},
|
||||
"id": "gmail-label-other",
|
||||
"name": "Gmail: Kategorie Label",
|
||||
@@ -116,7 +116,7 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{ $env.EMAILSORTER_API_URL }}/api/email/stats/update",
|
||||
"url": "={{ $env.MAILFLOW_API_URL }}/api/email/stats/update",
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth",
|
||||
"sendBody": true,
|
||||
|
||||
Reference in New Issue
Block a user