The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "AI Email Assistant",
"nodes": [
{
"parameters": {
"host": "imap.example.com",
"port": 993,
"secure": true,
"user": "={{ $credentials.imapUser }}",
"password": "={{ $credentials.imapPassword }}"
},
"id": "imap-trigger",
"name": "E-Mail abrufen",
"type": "n8n-nodes-base.emailTrigger",
"typeVersion": 1.1,
"position": [
220,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.from }}",
"operation": "notContains",
"value2": "newsletter"
}
]
}
},
"id": "filter-node",
"name": "Filter: Keine Newsletter",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"prompt": "={{ $('Prompt: Zusammenfassung').item.json.prompt }}\n\nE-Mail von: {{$json.from}}\nBetreff: {{$json.subject}}\nDatum: {{$json.date}}\n\nInhalt:\n{{$json.text}}",
"model": "claude-3-5-sonnet-20241022",
"options": {}
},
"id": "claude-summary",
"name": "Claude: Zusammenfassen",
"type": "@anthropic-ai/anthropic",
"typeVersion": 1,
"position": [
700,
200
],
"credentials": {
"anthropicApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"prompt": "={{ $('Prompt: Antwort').item.json.prompt }}\n\nE-Mail von: {{$json.from}}\nBetreff: {{$json.subject}}\n\nZusammenfassung: {{$node['Claude: Zusammenfassen'].json.message.content[0].text}}",
"model": "claude-3-5-sonnet-20241022",
"options": {}
},
"id": "claude-response",
"name": "Claude: Antwort-Entwurf",
"type": "@anthropic-ai/anthropic",
"typeVersion": 1,
"position": [
700,
400
],
"credentials": {
"anthropicApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "absender",
"value": "={{ $json.from }}"
},
{
"name": "betreff",
"value": "={{ $json.subject }}"
},
{
"name": "zusammenfassung",
"value": "={{ $('Claude: Zusammenfassen').json.message.content[0].text }}"
},
{
"name": "antwortEntwurf",
"value": "={{ $('Claude: Antwort-Entwurf').json.message.content[0].text }}"
}
]
}
},
"id": "template-builder",
"name": "Template zusammenstellen",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
940,
300
]
},
{
"parameters": {
"channel": "#email-assistant",
"text": "\ud83d\udce7 Neue E-Mail:\n*Von:* {{$json.absender}}\n*Betreff:* {{$json.betreff}}\n\n*Zusammenfassung:*\n{{$json.zusammenfassung}}\n\n*Antwort-Entwurf:*\n{{$json.antwortEntwurf}}"
},
"id": "slack-notify",
"name": "An Slack senden",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.1,
"position": [
1180,
300
],
"credentials": {
"slackApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"key": "prompt",
"value": "Du bist ein professioneller E-Mail-Assistent f\u00fcr ein deutsches KMU.\n\nAufgabe: Fasse die folgende E-Mail pr\u00e4zise zusammen.\n\nFormat:\n\ud83d\udccc KERNPUNKT: [Hauptanliegen in einem Satz]\n\ud83d\udccb DETAILS:\n- [Detail 1]\n- [Detail 2]\n\u23f0 DRINGLICHKEIT: [hoch/mittel/niedrig]\n\ud83d\udca1 HANDLUNGSEMPFEHLUNG: [Was sollte getan werden?]"
},
"id": "prompt-summary",
"name": "Prompt: Zusammenfassung",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
220,
120
]
},
{
"parameters": {
"key": "prompt",
"value": "Du bist ein professioneller E-Mail-Assistent f\u00fcr ein deutsches KMU.\n\nAufgabe: Erstelle einen Antwortentwurf auf die zusammengefasste E-Mail.\n\nRegeln:\n- Professioneller, freundlicher Ton\n- Auf Deutsch\n- H\u00f6fliche Gru\u00dfformel\n- Klare Antworten auf alle Punkte\n- Bei Unklarheiten: R\u00fcckfrage formulieren\n\nFormat:\nSehr geehrte(r) [Anrede],\n\n[Antworttext]\n\nMit freundlichen Gr\u00fc\u00dfen\n[Dein Unternehmen]"
},
"id": "prompt-response",
"name": "Prompt: Antwort",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
220,
480
]
}
],
"connections": {
"Prompt: Zusammenfassung": {
"main": [
[
{
"node": "Claude: Zusammenfassen",
"type": "main",
"index": 0
}
]
]
},
"Prompt: Antwort": {
"main": [
[
{
"node": "Claude: Antwort-Entwurf",
"type": "main",
"index": 0
}
]
]
},
"E-Mail abrufen": {
"main": [
[
{
"node": "Filter: Keine Newsletter",
"type": "main",
"index": 0
}
]
]
},
"Filter: Keine Newsletter": {
"main": [
[
{
"node": "Claude: Zusammenfassen",
"type": "main",
"index": 0
},
{
"node": "Claude: Antwort-Entwurf",
"type": "main",
"index": 0
}
],
[]
]
},
"Claude: Zusammenfassen": {
"main": [
[
{
"node": "Template zusammenstellen",
"type": "main",
"index": 0
}
]
]
},
"Claude: Antwort-Entwurf": {
"main": [
[
{
"node": "Template zusammenstellen",
"type": "main",
"index": 0
}
]
]
},
"Template zusammenstellen": {
"main": [
[
{
"node": "An Slack senden",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"tags": [],
"triggerCount": 1,
"updatedAt": "2026-04-23T00:00:00.000Z",
"versionId": "1"
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
anthropicApislackApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI Email Assistant. Uses emailTrigger, @anthropic-ai/anthropic, slack. Event-driven trigger; 8 nodes.
Source: https://github.com/ceeceeceecee/ai-email-assistant/blob/main/workflow/ai-email-assistant.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Who is this for? Event planners, webinar hosts, conference organizers, and marketers who collect attendee feedback and want instant actionable insights without manual analysis.
Turn any web page into a compelling LinkedIn post — complete with an AI-generated image. This automation is ideal for sharing content like blog posts, case studies, or product updates in a polished an
Email Automation AI-Powered Operations Internal Productivity Tools
This n8n template monitors active support issues in Linear.app to track the mood of their ongoing conversation between reporter and assignee using Sentiment Analysis. When sentiment dips into the nega
This n8n workflow acts as an AI-powered Inbox Assistant that automatically summarizes and classifies Gmail emails, prioritizes important messages, and sends a daily digest to Slack. It’s ideal for sta