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
- fixed
Standard Header
Brand logo header
- AI fields
Text Block
Headline + HTML body (Hebrew RTL)
- fixed
Uploaded Image
Full-width linked image
- fixed
Footer
Legal + Shopify Email compliance tokens
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": {}
}
]
}