{
  "meta": {
    "instanceId": "c8c9ba5d3eb26ae47a06d24ff164a01c0d73ed4753a74903c2bb609d434a0f6b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "5048b8bc-e508-4722-af5b-146ec0f9f057",
      "name": "Search Airtable Contacts",
      "type": "n8n-nodes-base.airtable",
      "position": [
        208,
        0
      ],
      "parameters": {
        "base": {
          "__rl": true,
          "mode": "list",
          "value": "app1bfDNQWWNpiwal",
          "cachedResultUrl": "https://airtable.com/app1bfDNQWWNpiwal",
          "cachedResultName": "Contacts"
        },
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "tblubuxXAzrkV59GY",
          "cachedResultUrl": "https://airtable.com/app1bfDNQWWNpiwal/tblubuxXAzrkV59GY",
          "cachedResultName": "Contacts"
        },
        "options": {
          "fields": [
            "Company Name",
            "Name",
            "Email"
          ]
        },
        "operation": "search",
        "filterByFormula": "IS_SAME({Created}, TODAY(), 'day')"
      },
      "credentials": {
        "airtableTokenApi": {
          "id": "credential-id",
          "name": "Airtable Personal Access Token account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1c2b77e7-6244-47e5-b0d9-7beb5e0655af",
      "name": "Convert to HTML Table",
      "type": "n8n-nodes-base.html",
      "position": [
        416,
        0
      ],
      "parameters": {
        "options": {},
        "operation": "convertToHtmlTable"
      },
      "typeVersion": 1.2
    },
    {
      "id": "f0be4258-8972-46cf-842c-891618c32b6a",
      "name": "Send Daily Contacts Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        0
      ],
      "webhookId": "3b32a5d8-2f02-48af-b7ca-f81631b04807",
      "parameters": {
        "sendTo": "user@example.com",
        "message": "=<h3> New Contacts Today</h3>\n\n{{ $json.table }}",
        "options": {},
        "subject": "New Contacts Today"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "credential-id",
          "name": "vasarmilan@gmail.com"
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "35fa79cd-3699-47e0-bc01-79b59d469eab",
      "name": "Daily Evening Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 23
            }
          ]
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "doc-note-1771263655470",
      "name": "Workflow Description",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -150
      ],
      "parameters": {
        "width": 600,
        "height": 817,
        "content": "## Workflow Overview\n\nThis automation sends you a daily email summary of all new contacts added to your Airtable base. Every evening, it searches for contacts created that day, formats them into a clean HTML table, and delivers them directly to your inbox—keeping you updated without any manual effort.\n\n### First Setup\n\n**Airtable Connection:**\n1. Create a Personal Access Token at [airtable.com/create/tokens](https://airtable.com/create/tokens)\n2. Add these scopes: `data.records:read`, `data.records:write`, and `schema.bases:read`\n3. Grant access to your bases and paste the token into n8n credentials\n\n**Gmail Connection:**\n- Connect your Gmail account through n8n's OAuth2 authentication\n\n### Configuration\n\n- **Schedule**: The trigger is set to run daily at 11 PM. Adjust the time in the Schedule Trigger node to match your preference\n- **Airtable Base & Table**: Update the Search records node to point to your own Airtable base and contacts table\n- **Email Recipient**: Change the recipient email address in the Gmail node to your own\n- **Data Fields**: Customize which contact fields appear in the report by modifying the Output Fields in the Airtable node"
      },
      "typeVersion": 1
    },
    {
      "id": "video-note-1771263723265",
      "name": "Video Walkthrough",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -500
      ],
      "parameters": {
        "width": 420,
        "height": 340,
        "content": "# Video Walkthrough\n[![image.png](https://vasarmilan-public.s3.us-east-1.amazonaws.com/blog_thumbnails/thumbnail_recidrbznaXlmqFUI.jpg)](https://youtu.be/lQh1fuIrBN8)"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Convert to HTML Table": {
      "main": [
        [
          {
            "node": "Send Daily Contacts Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Evening Schedule": {
      "main": [
        [
          {
            "node": "Search Airtable Contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Airtable Contacts": {
      "main": [
        [
          {
            "node": "Convert to HTML Table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}