{
  "name": "SoloStack \u2014 Email Auto-Ingest",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "email-to-solostack",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "email-trigger",
      "name": "Email Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://localhost:8000/api/v1/webhook/email",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ from_name: $json.body?.from_name || $json.from_name || 'Email Client', from_email: $json.body?.from_email || $json.from_email || 'client@example.com', subject: $json.body?.subject || $json.subject || 'Project Inquiry', body: $json.body?.body || $json.body_text || $json.message || '' }) }}",
        "options": {
          "timeout": 30000
        }
      },
      "id": "solostack-email",
      "name": "SoloStack AI Analyze",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}"
      },
      "id": "respond-email",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        750,
        300
      ]
    }
  ],
  "connections": {
    "Email Webhook": {
      "main": [
        [
          {
            "node": "SoloStack AI Analyze",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SoloStack AI Analyze": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    "solostack",
    "automation"
  ]
}