{
  "tool": "clay",
  "format": "clay-columns",
  "artifact": {
    "columns": [
      {
        "name": "Sintr draft",
        "type": "http-api",
        "method": "POST",
        "url": "https://dashboard.sintr.dev/api/automation/drafts",
        "headers": {
          "Authorization": "Bearer {{SINTR_TOKEN}}",
          "Idempotency-Key": "{{Domain}}",
          "Content-Type": "application/json"
        },
        "body": {
          "clientRef": "{{Domain}}",
          "name": "{{Company Name}}",
          "template": "local-business",
          "brief": {
            "businessName": "{{Company Name}}",
            "phone": "{{Phone}}",
            "address": {
              "city": "{{City}}"
            }
          }
        }
      }
    ]
  },
  "notes": [
    "Add an HTTP API column to your table and copy these settings into it.",
    "Add ?org=<organisation id> to the Sintr URLs only if your token covers more than one organisation.",
    "Replace {{SINTR_TOKEN}} with an automation token.",
    "The response holds siteId and previewUrl; map them to columns for the next step.",
    "To write a richer brief, add your AI step before this column and map its output into brief.",
    "Dedupe on the Sintr-Event-Id header: a delivery can rarely be sent twice, so ignore an event id you have already handled."
  ]
}