{
  "name": "Rendex — Email an HTML Report as a PNG Attachment",
  "flow": [
    {
      "id": 1,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": false,
        "useNewZLibDeCompress": true
      },
      "mapper": {
        "url": "https://api.rendex.dev/v1/screenshot",
        "method": "post",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer rdx_YOUR_API_KEY"
          }
        ],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\n  \"html\": \"<!doctype html><html><head><style>body{font-family:system-ui,sans-serif;color:#0f172a;padding:40px;width:1000px}h1{color:#ea580c;margin:0 0 24px}.cards{display:flex;gap:16px}.card{flex:1;padding:20px;border:1px solid #e2e8f0;border-radius:12px}.lbl{font-size:12px;text-transform:uppercase;color:#64748b}.val{font-size:32px;font-weight:700}</style></head><body><h1>Weekly Performance — {{week}}</h1><div class='cards'><div class='card'><div class='lbl'>MRR</div><div class='val'>{{mrr}}</div></div><div class='card'><div class='lbl'>New signups</div><div class='val'>{{signups}}</div></div><div class='card'><div class='lbl'>Churn</div><div class='val'>{{churn}}</div></div></div></body></html>\",\n  \"data\": {\n    \"week\": \"2026-06-01\",\n    \"mrr\": \"$48,250\",\n    \"signups\": \"312\",\n    \"churn\": \"1.8%\"\n  },\n  \"format\": \"png\",\n  \"width\": 1000,\n  \"fullPage\": true,\n  \"deviceScaleFactor\": 2\n}",
        "serializeUrl": false,
        "shareCookies": false,
        "parseResponse": false,
        "followRedirect": true,
        "useQuerystring": false,
        "followAllRedirects": false,
        "timeout": "",
        "ca": "",
        "rejectUnauthorized": true,
        "gzip": true,
        "useMtls": false
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Rendex — Render Report PNG"
        },
        "restore": {
          "expect": {
            "method": {
              "mode": "chose",
              "label": "POST"
            },
            "bodyType": {
              "label": "Raw"
            },
            "contentType": {
              "label": "JSON (application/json)"
            }
          }
        },
        "notes": "Renders the report HTML to a PNG. parseResponse is OFF so the module's binary output (1.data) is the raw image you attach below. Map your real KPI values into the data{} object. Replace rdx_YOUR_API_KEY with your key. Add a Schedule trigger (Make's 'Scheduling' on the scenario) for recurring delivery."
      }
    },
    {
      "id": 2,
      "module": "email:ActionSendEmail",
      "version": 6,
      "parameters": {
        "__IMTCONN__": 1000002
      },
      "mapper": {
        "to": ["team@example.com"],
        "subject": "Weekly performance report",
        "contentType": "text",
        "html": "This week's performance report is attached as a PNG.",
        "attachments": [
          {
            "fileName": "weekly-report.png",
            "data": "{{1.data}}"
          }
        ],
        "copy": [],
        "blindCopy": []
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Email — Send the Report"
        },
        "notes": "On import, select (or create) your email/SMTP connection. The attachment data maps from the Rendex HTTP module's binary output (1.data). Set the recipient in 'to'."
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "us1.make.com"
  }
}
