Clause JSON file tester

    Shared 2/19/2026

    1 views

    Visual Workflow

    JSON Code

    {
      "nodes": [
        {
          "name": "Schedule Trigger",
          "type": "n8n-nodes-base.cron",
          "position": [
            250,
            300
          ],
          "parameters": {
            "cronExpression": "0 8 * * *"
          },
          "typeVersion": 1
        },
        {
          "name": "Fetch Reddit Posts",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            450,
            300
          ],
          "parameters": {
            "url": "https://www.reddit.com/r/FacebookAds/new.json?limit=5",
            "options": {
              "headers": {
                "User-Agent": "n8n-workflow/1.0"
              }
            }
          },
          "typeVersion": 1
        },
        {
          "name": "Process Posts",
          "type": "n8n-nodes-base.function",
          "position": [
            650,
            300
          ],
          "parameters": {
            "functionCode": "const posts = items[0].json.data.children.map(post => {\n  return {\n    title: post.data.title,\n    url: `https://reddit.com${post.data.permalink}`\n  };\n});\nreturn posts;"
          },
          "typeVersion": 1
        },
        {
          "name": "Send Email",
          "type": "n8n-nodes-base.emailSend",
          "position": [
            850,
            300
          ],
          "parameters": {
            "text": "Here are the latest posts from r/FacebookAds:\n\n{{#each $json}}\n- {{title}} {{url}}\n{{/each}}",
            "subject": "Daily Digest: Latest Posts from r/FacebookAds",
            "toEmail": "timi@goheave.co.uk",
            "fromEmail": "timi@goheave.co.uk"
          },
          "typeVersion": 1
        }
      ],
      "connections": {
        "Process Posts": {
          "main": [
            [
              {
                "node": "Send Email",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Schedule Trigger": {
          "main": [
            [
              {
                "node": "Fetch Reddit Posts",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Fetch Reddit Posts": {
          "main": [
            [
              {
                "node": "Process Posts",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    }