1import{B as x}from"./VIZ6hXE0.js";import{_ as f}from"./CIDiPwif.js";import{u as y}from"./D5uRFHo4.js";import{u as v}from"./DEs_pdsY.js";import{l as w,y as q,s as k,A as S,g as o,d as t,j as n,h as C,a3 as l,i as c,Q as d,F as E,G as P,f as _,E as N,B as i,t as A,N as O}from"./MJ188exM.js";import"./B4XK0ib0.js";const T={class:"min-h-screen bg-base-100"},R={class:"max-w-6xl px-6 py-16 mx-auto"},I={class:"lg:grid lg:grid-cols-[1fr_220px] lg:gap-10"},M={class:"min-w-0"},B={class:"p-6 mt-8 border rounded-lg bg-primary/10 border-primary/20"},F={class:"flex gap-4"},H={class:"my-12 border-t border-base-300 pt-8"},J={class:"grid grid-cols-1 gap-4 md:grid-cols-2"},L={key:0,class:"hidden lg:block"},j={class:"sticky top-8"},D={class:"list-none space-y-1 text-sm border-l border-base-300"},U=["href"],Y=w({__name:"how-email-automation-works",setup(G){const{headings:m,activeId:p,extractHeadings:g,setupScrollSpy:b}=y(),a=N();let u;return q(()=>{k(()=>{a.value&&(g(a.value),u=b())})}),S(()=>{u?.()}),v({title:"How email automation works â EmailConnect.eu",description:"Email comes in, gets parsed to JSON, optional attachment processing, then a JSON webhook triggers your automation. No complex integrations, no vendor lock-in.",headline:"How email automation works",datePublished:"2025-09-10",dateModified:"2026-02-22"}),(V,e)=>{const h=x,r=f;return i(),o("div",T,[t("div",R,[n(h,{items:[{name:"Home",path:"/"},{name:"Learn",path:"/learn/"},{name:"Guides",path:"/learn/guides/"},{name:"How email automation works"}]}),t("div",I,[t("article",M,[e[10]||(e[10]=t("h1",{class:"text-3xl font-bold mb-6"},"How email automation works",-1)),t("div",{ref_key:"contentRef",ref:a,class:"help-content"},[e[7]||(e[7]=C(`<div class="p-6 mb-8 border rounded-lg bg-primary/10 border-primary/20"><h2 class="mb-3 text-xl font-semibold text-primary">âï¸ Simple concept, powerful results</h2><p class="font-medium text-base-content/90"> Email comes in â Parse content to JSON â Optional attachment processing â JSON webhook triggers your automation. No complex integrations, no vendor lock-in, works with any system that can receive HTTP requests. </p></div><h2>The complete email automation flow</h2><p> EmailConnect transforms unstructured emails into structured JSON data that integrates seamlessly with your existing tools and workflows. Here's exactly how it works: </p><div class="p-6 my-8 rounded-lg bg-base-200"><div class="space-y-6"><div class="flex items-center gap-4"><div class="flex items-center justify-center flex-shrink-0 w-7 h-7 mt-0.5 text-sm font-bold rounded-full bg-primary text-primary-content">1</div><div><h3 class="font-semibold">Email arrives at your subdomain</h3><p class="text-sm text-base-content/80">Customer sends to [email protected] (can be masked by TLD alias)</p></div></div><div class="flex items-center gap-4"><div class="flex items-center justify-center flex-shrink-0 w-7 h-7 mt-0.5 text-sm font-bold rounded-full bg-primary text-primary-content">2</div><div><h3 class="font-semibold">DNS forwarding routes to EmailConnect</h3><p class="text-sm text-base-content/80">Your MX record points to our EU servers</p></div></div><div class="flex items-center gap-4"><div class="flex items-center justify-center flex-shrink-0 w-7 h-7 mt-0.5 text-sm font-bold rounded-full bg-primary text-primary-content">3</div><div><h3 class="font-semibold">Parse email content to structured JSON</h3><p class="text-sm text-base-content/80">Subject, sender, content extraction with optional attachment processing</p></div></div><div class="flex items-center gap-4"><div class="flex items-center justify-center flex-shrink-0 w-7 h-7 mt-0.5 text-sm font-bold rounded-full bg-primary text-primary-content">4</div><div><h3 class="font-semibold">JSON webhook delivers to your endpoint</h3><p class="text-sm text-base-content/80">Clean data hits your CRM, support tool, or custom app</p></div></div></div></div><h2>What the JSON webhook looks like</h2><p>Every processed email becomes a structured JSON payload that's easy to work with:</p><div class="p-4 my-6 rounded-lg bg-base-300"><pre class="overflow-x-auto text-sm"><code>{ 2 "id": "email_abc123", 3 "timestamp": "2025-08-23T14:30:00Z", 4 "alias": "[email protected]", 5 "from": { 6 "email": "[email protected]", 7 "name": "Sarah Johnson" 8 }, 9 "subject": "Login issues with mobile app", 10 "content": { 11 "text": "Hi, I can't log in to the mobile app...", 12 "html": "<p>Hi, I can't log in to the mobile app...</p>" 13 }, 14 "analysis": { 15 "intent": "technical_support", 16 "sentiment": "frustrated", 17 "priority": "medium", 18 "language": "en" 19 }, 20 "attachments": [ 21 { 22 "filename": "screenshot.png", 23 "url": "https://attachments.emailconnect.eu/abc123.png", 24 "size": 245760 25 } 26 ] 27}</code></pre></div><h2>
27Multiple webhook destinations</h2><p>The real power comes from routing different email types to different systems:</p><div class="grid grid-cols-1 gap-4 my-8 md:grid-cols-2 lg:grid-cols-3"><div class="p-4 border rounded-lg bg-info/5 border-info/20"><h4 class="mb-2 font-semibold text-info">Support emails</h4><p class="mb-3 text-sm text-base-content/80">[email protected]</p><p class="text-xs text-base-content/60">â Webhook to Zendesk API</p><p class="text-xs text-base-content/60">â Auto-create tickets</p><p class="text-xs text-base-content/60">â Priority routing</p></div><div class="p-4 border rounded-lg bg-success/5 border-success/20"><h4 class="mb-2 font-semibold text-success">Sales inquiries</h4><p class="mb-3 text-sm text-base-content/80">[email protected]</p><p class="text-xs text-base-content/60">â Webhook to HubSpot API</p><p class="text-xs text-base-content/60">â Lead qualification</p><p class="text-xs text-base-content/60">â Sales rep assignment</p></div><div class="p-4 border rounded-lg bg-warning/5 border-warning/20"><h4 class="mb-2 font-semibold text-warning">Invoice processing</h4><p class="mb-3 text-sm text-base-content/80">[email protected]</p><p class="text-xs text-base-content/60">â Webhook to Xero API</p><p class="text-xs text-base-content/60">â Extract invoice data</p><p class="text-xs text-base-content/60">â Auto-entry to accounting</p></div></div><h2>Integration patterns that work</h2><p>EmailConnect's webhook approach works with virtually any modern business tool:</p><h3>Direct API integrations</h3><ul><li><strong>CRM systems:</strong> Salesforce, HubSpot, Pipedrive - create leads and contacts automatically</li><li><strong>Support platforms:</strong> Zendesk, Freshdesk, Intercom - generate tickets with context</li><li><strong>Project management:</strong> Asana, Trello, Monday.com - convert emails to tasks</li><li><strong>Accounting software:</strong> QuickBooks, Xero, FreshBooks - process invoices and receipts</li></ul><h3>Automation platform bridges</h3><p>For complex workflows, route EmailConnect webhooks through automation platforms:</p><div class="p-4 my-6 rounded-lg bg-base-200"><div class="grid grid-cols-1 gap-4 text-center md:grid-cols-3"><div><div class="mb-2 font-semibold">EmailConnect</div><div class="text-sm text-base-content/80">Parses email to JSON</div></div><div class="flex items-center justify-center"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg></div><div><div class="mb-2 font-semibold">Zapier/Make/n8n</div><div class="text-sm text-base-content/80">Orchestrates complex workflows</div></div></div><p class="mt-4 text-sm text-center text-base-content/80"> Best of both worlds: EmailConnect handles email parsing securely, automation platforms handle complex logic </p></div><h3>Custom application webhooks</h3><p>For businesses with custom software, EmailConnect webhooks integrate seamlessly:</p><div class="p-4 my-4 rounded-lg bg-base-300"><pre class="overflow-x-auto text-sm"><code>// Simple Node.js webhook receiver 28app.post('/webhooks/emailconnect', (req, res) => { 29 const email = req.body; 30 31 // Route based on email intent 32 if (email.analysis.intent === 'technical_support') { 33 createSupportTicket(email); 34 } else if (email.analysis.intent === 'sales_inquiry') { 35 notifySalesTeam(email); 36 } 37 38 res.status(200).send('OK'); 39});</code></pre></div><h2>Content analysis capabilities</h2><p>EmailConnect can analyze email content to provide additional context for your automations:</p><h3>Intent classification</h3><ul><li><strong>Technical support:</strong> Product issues, bug reports, how-to questions</li><li><strong>Sales inquiries:</strong> Pricing questions, demo requests, partnership proposals</li><li><strong>Billing issues:</strong> Payment problems, invoice disputes, account changes</li><li><strong>General inquiries:</strong> Company information, contact requests, feedback</li></ul><h3>Sentiment and priority detection</h3><div class="grid grid-cols-1 gap-4 my-6 md:grid-cols-3"><div class="p-4 border rounded-lg bg-error/5 border-error/20"><h4 class="mb-2 font-semibold text-error">High priority indicators</h4><ul class="space-y-1 text-sm"><li>⢠Angry or frustrated language</li><li>⢠Urgent keywords ("ASAP", "emergency")</li><li>⢠Service disruption mentions</li><li>
39⢠VIP customer identification</li></ul></div><div class="p-4 border rounded-lg bg-warning/5 border-warning/20"><h4 class="mb-2 font-semibold text-warning">Medium priority indicators</h4><ul class="space-y-1 text-sm"><li>⢠Feature requests</li><li>⢠General product questions</li><li>⢠Billing inquiries</li><li>⢠Account modifications</li></ul></div><div class="p-4 border rounded-lg bg-success/5 border-success/20"><h4 class="mb-2 font-semibold text-success">Low priority indicators</h4><ul class="space-y-1 text-sm"><li>⢠Thank you messages</li><li>⢠Newsletter responses</li><li>⢠General compliments</li><li>⢠Information requests</li></ul></div></div><h3>Multi-language support</h3><p>Content analysis works across European languages:</p><ul><li><strong>Language detection:</strong> Automatically identify email language</li><li><strong>Content extraction:</strong> Extract key data regardless of language</li><li><strong>Character encoding:</strong> Proper handling of European character sets</li><li><strong>Date parsing:</strong> Support for different European date formats</li></ul><h2>Attachment and media processing</h2><p>EmailConnect handles more than just textâstructured processing of email attachments:</p><h3>Document processing capabilities</h3><ul><li><strong>PDF content extraction:</strong> Pull text from invoices, contracts, reports</li><li><strong>Image text recognition:</strong> OCR for screenshots, scanned documents</li><li><strong>Spreadsheet parsing:</strong> Extract data from Excel and CSV files</li><li><strong>File metadata:</strong> Size, type, creation date information</li></ul><h3>Secure attachment handling</h3><ul><li><strong>EU-only storage:</strong> All attachments stored on European servers</li><li><strong>Temporary URLs:</strong> Time-limited access links for security</li><li><strong>Configurable retention:</strong> Automatic deletion based on your policies</li><li><strong>Virus scanning:</strong> All attachments scanned before processing</li></ul><h2>Reliability and error handling</h2><p>Production-ready email automation requires robust error handling and delivery guarantees:</p><h3>Webhook delivery reliability</h3><ul><li><strong>Retry logic:</strong> Automatic retries with exponential backoff</li><li><strong>Dead letter queues:</strong> Failed deliveries preserved for manual review</li><li><strong>Delivery confirmation:</strong> Track webhook success/failure rates</li><li><strong>Multiple endpoints:</strong> Send same email to multiple webhooks if needed</li></ul><h3>Monitoring and debugging</h3><ul><li><strong>Processing logs:</strong> Detailed logs for every email processed</li><li><strong>Webhook logs:</strong> Full request/response details for debugging</li><li><strong>Error alerts:</strong> Get notified when processing fails</li><li><strong>Performance metrics:</strong> Processing time and delivery success rates</li></ul><h2>Getting started: simple to advanced</h2><p>EmailConnect grows with your automation needs:</p><h3>Level 1: Basic email forwarding</h3><div class="p-4 my-4 rounded-lg bg-base-200"><p class="mb-2 text-sm"><strong>Setup time:</strong> 10 minutes</p><p class="mb-2 text-sm"><strong>Use case:</strong> Forward contact form emails to your CRM</p><p class="text-sm"><strong>Result:</strong> Structured JSON data instead of raw email parsing</p></div><h3>Level 2: Enhanced processing</h3><div class="p-4 my-4 rounded-lg bg-base-200"><p class="mb-2 text-sm"><strong>Setup time:</strong> 30 minutes</p><p class="mb-2 text-sm"><strong>Use case:</strong> Process attachments and route emails with content analysis</p><p class="text-sm"><strong>Result:</strong> Better data extraction and smarter routing decisions</p></div><h3>Level 3: Multi-system automation</h3><div class="p-4 my-4 rounded-lg bg-base-200"><p class="mb-2 text-sm"><strong>Setup time:</strong> 1-2 hours</p><p class="mb-2 text-sm"><strong>Use case:</strong> Process invoices, create support tickets, qualify sales leads</p><p class="text-sm"><strong>Result:</strong> Fully automated email-driven business processes</p></div>`,49)),t("div",B,[e[2]||(e[2]=t("h3",{class:"mb-3 text-lg font-semibold text-primary"},"Ready to see it in action?",-1)),e[3]||(e[3]=t("p",{class:"mb-4"}," EmailConnect provides webhook testing tools so you can see exactly what JSON data your emails will generate before you commit to the full setup. Try it with your actual emails to see the structured data quality. ",-1)),t("div",F,[e[1]||(e[1]=t("a",{href:"https://app.emailconnect.eu/login",class:"btn btn-primary btn-sm"}," Get started free ",-1)),n(r,{to:"/learn/guides/built-for-european-privacy/",class:"btn btn-outline btn-primary btn-sm"},{default:l(()=>[...e[0]||(e[0]=[c(" Learn about EU compliance ",-1)])]),_:1})])]),t("div",H,[e[6]||(e[6]=t("h2",{class:"text-xl font-semibold mb-4"},"Related",-1)),t("div",J,[n(r,{to:"/learn/guides/why-businesses-automate-email-first/",class:"flex flex-col p-4 no-underline transition-all border rounded-lg hover:border-primary/40 border-base-300 hover:shadow-md"},{default:l(()=>[...e[4]||(e[4]=[t("span",{class:"text-sm font-medium"},"Why businesses automate email first",-1),t("span",{class:"mt-1 text-xs text-base-content/60"},"Email automation delivers 300% better ROI than starting with CRM or inventory.",-1)])]),_:1}),n(r,{to:"/learn/guides/selective-email-access-vs-full-mailbox/",class:"flex flex-col p-4 no-underline transition-all border rounded-lg hover:border-primary/40 border-base-300 hover:shadow-md"},{default:l(()=>[...e[5]||(e[5]=[t("span",{class:"text-sm font-medium"},"Selective email access vs full mailbox",-1),t("span",{class:"mt-1 text-xs text-base-content/60"},"Security and privacy implications of forwarding-based vs OAuth mailbox access.",-1)])]),_:1})])]),e[8]||(e[8]=t("div",{class:"my-8 divider"},null,-1)),e[9]||(e[9]=t("p",{class:"text-sm text-base-content/80"},[t("em",null,[c("Need help designing your email automation architecture? I provide technical consulting for businesses implementing email-to-webhook workflows. Contact "),t("a",{href:"mailto:[email protected]",class:"link link-primary"},"[email protected]"),c(".")])],-1))],512)]),d(m).length>2?(i(),o("aside",L,[t("nav",j,[e[11]||(e[11]=t("h4",{class:"text-xs font-semibold tracking-widest uppercase text-base-content/80 mb-3"},"On this page",-1)),t("ul",D,[(i(!0),o(E,null,P(d(m),s=>(i(),o("li",{key:s.id},[t("a",{href:`#${s.id}`,class:A(["block py-1 transition-colors hover:text-primary",[s.level===3?"pl-6":"pl-3",d(p)===s.id?"text-primary border-l-2 border-primary -ml-px font-medium":"text-base-content/60"]])},O(s.text),11,U)]))),128))])])])):_("",!0)])])])}}});
39export{Y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.