| 1 |
{ |
| 2 |
"name": "First flow", |
| 3 |
"status": "draft", |
| 4 |
"trigger": "ticket_purchased", |
| 5 |
"flow_config": { |
| 6 |
"nodes": [ |
| 7 |
{ |
| 8 |
"id": "node_1", |
| 9 |
"type": "trigger", |
| 10 |
"name": "trigger ", |
| 11 |
"data": { |
| 12 |
"label": "trigger: ticket_purchased", |
| 13 |
"subtitle": "Event Ticket Purchased" |
| 14 |
}, |
| 15 |
"position": { |
| 16 |
"x": 200, |
| 17 |
"y": 50 |
| 18 |
} |
| 19 |
}, |
| 20 |
{ |
| 21 |
"id": "node_2", |
| 22 |
"type": "end", |
| 23 |
"name": "end", |
| 24 |
"data": { |
| 25 |
"label": "end_flow", |
| 26 |
"subtitle": "End execution ends" |
| 27 |
}, |
| 28 |
"position": { |
| 29 |
"x": 507.63901582154574, |
| 30 |
"y": 509.8755711969561 |
| 31 |
} |
| 32 |
}, |
| 33 |
{ |
| 34 |
"id": "node_3", |
| 35 |
"type": "condition", |
| 36 |
"name": "condition", |
| 37 |
"data": { |
| 38 |
"field": "order_amount", |
| 39 |
"operator": "<", |
| 40 |
"value": "2025-5-20", |
| 41 |
"label": "order_amount", |
| 42 |
"subtitle": "Order Amount < 10" |
| 43 |
}, |
| 44 |
"position": { |
| 45 |
"x": 200, |
| 46 |
"y": 230 |
| 47 |
} |
| 48 |
}, |
| 49 |
{ |
| 50 |
"id": "end_3", |
| 51 |
"type": "end", |
| 52 |
"name": "end", |
| 53 |
"data": { |
| 54 |
"label": "End Flow", |
| 55 |
"subtitle": "Automation stops here" |
| 56 |
}, |
| 57 |
"position": { |
| 58 |
"x": -106, |
| 59 |
"y": 668 |
| 60 |
} |
| 61 |
}, |
| 62 |
{ |
| 63 |
"id": "node_5", |
| 64 |
"type": "action", |
| 65 |
"name": "email", |
| 66 |
"data": { |
| 67 |
"actionType": "send_email", |
| 68 |
"receiverType": "admin_email", |
| 69 |
"label": "send_email", |
| 70 |
"subtitle": "Subject: This is test subj", |
| 71 |
"recipient": "[email protected]", |
| 72 |
"subject": "This is test subj", |
| 73 |
"body": "<p>hello dear,</p><p><br></p><p>Thank you for purchasing. You have ordered total {{order_amount}} on date: {{order_date}}</p><p><br></p><p>product link :<a href=\"https://ashikur-on-web.vercel.app/\" rel=\"noopener noreferrer\" target=\"_blank\"> https://ashikur-on-web.vercel.app/</a></p><ul><li>line 1</li><li>line 2</li></ul><p><br></p><p>We will send further details on this mail: {{email}}</p><p>Thank you</p>" |
| 74 |
}, |
| 75 |
"position": { |
| 76 |
"x": 506.50000000000006, |
| 77 |
"y": 328 |
| 78 |
} |
| 79 |
}, |
| 80 |
{ |
| 81 |
"id": "node_6", |
| 82 |
"type": "action", |
| 83 |
"name": "delay", |
| 84 |
"data": { |
| 85 |
"actionType": "add_delay", |
| 86 |
"label": "add_delay", |
| 87 |
"subtitle": "Wait for 30 minutes", |
| 88 |
"delay": 30, |
| 89 |
"delayUnit": "minutes", |
| 90 |
"delayDependency": "created_at", |
| 91 |
"delayCondition": "after" |
| 92 |
}, |
| 93 |
"position": { |
| 94 |
"x": -107, |
| 95 |
"y": 308 |
| 96 |
} |
| 97 |
}, |
| 98 |
{ |
| 99 |
"id": "node_7", |
| 100 |
"type": "action", |
| 101 |
"name": "email", |
| 102 |
"data": { |
| 103 |
"actionType": "send_email", |
| 104 |
"receiverType": "admin_email", |
| 105 |
"label": "send_email", |
| 106 |
"subtitle": "Subject: THis is test 2 subj", |
| 107 |
"recipient": "[email protected]", |
| 108 |
"subject": "THis is test 2 subj", |
| 109 |
"body": "<p>hello {{email}},</p><p>My name is <strong>Ashik</strong></p><p>Thank you for purchasing. I have ordered {{order_amount}} on date: {{order_date}}</p><p><br></p><p>product link :<a href=\" https://ashikur-on-web.vercel.app/\" rel=\"noopener noreferrer\" target=\"_blank\"> https://ashikur-on-web.vercel.app/</a></p><p><br></p><p>bye</p>" |
| 110 |
}, |
| 111 |
"position": { |
| 112 |
"x": -106.5, |
| 113 |
"y": 488 |
| 114 |
} |
| 115 |
} |
| 116 |
], |
| 117 |
"edges": [ |
| 118 |
{ |
| 119 |
"id": "edge_node_1->node_3", |
| 120 |
"source": "node_1", |
| 121 |
"target": "node_3", |
| 122 |
"label": null |
| 123 |
}, |
| 124 |
{ |
| 125 |
"id": "edge_node_3->node_5", |
| 126 |
"source": "node_3", |
| 127 |
"target": "node_5", |
| 128 |
"label": "true" |
| 129 |
}, |
| 130 |
{ |
| 131 |
"id": "edge_node_5_node_2", |
| 132 |
"source": "node_5", |
| 133 |
"target": "node_2", |
| 134 |
"label": "true" |
| 135 |
}, |
| 136 |
{ |
| 137 |
"id": "edge_node_3->node_6", |
| 138 |
"source": "node_3", |
| 139 |
"target": "node_6", |
| 140 |
"label": "false" |
| 141 |
}, |
| 142 |
{ |
| 143 |
"id": "edge_node_6->node_7", |
| 144 |
"source": "node_6", |
| 145 |
"target": "node_7", |
| 146 |
"label": "false" |
| 147 |
}, |
| 148 |
{ |
| 149 |
"id": "edge_node_7->end_3", |
| 150 |
"source": "node_7", |
| 151 |
"target": "end_3", |
| 152 |
"label": "false" |
| 153 |
} |
| 154 |
] |
| 155 |
} |
| 156 |
} |