ROOTINE · Emails

Email workspace

Section-based compiler aligned with the rootine-agentic-orchestrations playbook. Output is Shopify Email Liquid/HTML (600px, RTL, compliance tokens in the footer).

Baseline sections

Compile API

POST /api/emails/compile with subject + sections. Example payload is ready for local testing.

{
  "subject": "צמחים חדשים מחכים לך",
  "previewText": "הגעה טרייה מהחממה",
  "sections": [
    {
      "sectionId": "header",
      "data": {
        "logoUrl": "https://cdn.shopify.com/s/files/1/0000/0000/files/rootine-logo.png"
      }
    },
    {
      "sectionId": "text",
      "data": {
        "headline": "השבוע בחממה",
        "htmlBody": "<p style=\"margin:0 0 16px; font-family:Arial,Helvetica,sans-serif; font-size:16px; color:#422B1C; line-height:1.6;\">הגיעו צמחים חדשים — מושלמים לפינות עם אור בינוני.</p>"
      }
    },
    {
      "sectionId": "footer",
      "data": {}
    }
  ]
}
← Back to hub