const e={data:{edges:[{id:"edge-1",selected:!1,source:"3-1",sourceHandle:"right",target:"3-2",targetHandle:"left"},{id:"edge-3",selected:!1,source:"3-3",sourceHandle:"chatModel",target:"3-4",targetHandle:"top"},{id:"edge-4",selected:!1,source:"3-3",sourceHandle:"memory",target:"3-5",targetHandle:"top"},{id:"edge-5",selected:!1,source:"3-3",sourceHandle:"right",target:"3-6",targetHandle:"left"},{id:"edge-6",selected:!1,source:"3-6",sourceHandle:"right",target:"3-7",targetHandle:"left"},{id:"edge-7",selected:!1,source:"3-7",sourceHandle:"right",target:"3-8",targetHandle:"left"},{id:"edge-8",selected:!1,source:"3-7",sourceHandle:"right",target:"3-9",targetHandle:"left"},{id:"edge-9",selected:!1,source:"3-7",sourceHandle:"right",target:"3-10",targetHandle:"left"},{id:"edge-10",selected:!1,source:"3-2",sourceHandle:"right",target:"3-3",targetHandle:"left"}],nodes:[{connectable:!0,data:[],dragging:!1,height:70,id:"3-1",position:{x:50,y:225},positionAbsolute:{x:117,y:110},selected:!1,sourcePosition:"right",targetPosition:"left",type:"trigger",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"3-2",position:{x:430,y:225},positionAbsolute:{x:497,y:110},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"3-3",position:{x:810,y:225},positionAbsolute:{x:877,y:107.5},selected:!1,sourcePosition:"right",targetPosition:"left",type:"aiAgent",width:240},{connectable:!0,data:{subNodeType:"chatModel"},dragging:!1,height:75,id:"3-4",position:{x:835,y:435},positionAbsolute:{x:807.7957356759243,y:409.3070836939285},selected:!1,sourcePosition:"top",targetPosition:"top",type:"subNode",width:75},{connectable:!0,data:{subNodeType:"memory"},dragging:!1,height:75,id:"3-5",position:{x:950,y:435},positionAbsolute:{x:918.2616916219117,y:410.8184317119326},selected:!1,sourcePosition:"top",targetPosition:"top",type:"subNode",width:75},{connectable:!0,data:[],dragging:!1,height:75,id:"3-6",position:{x:1190,y:222.5},positionAbsolute:{x:1257,y:105},selected:!1,sourcePosition:"right",targetPosition:"left",type:"jsonParser",width:75},{connectable:!0,data:[],dragging:!1,height:75,id:"3-7",position:{x:1405,y:222.5},positionAbsolute:{x:1472,y:105},selected:!1,sourcePosition:"right",targetPosition:"left",type:"router",width:75},{connectable:!0,data:[],dragging:!1,height:70,id:"3-8",position:{x:1620,y:85},positionAbsolute:{x:1687,y:107.5},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"3-9",position:{x:1620,y:225},positionAbsolute:{x:1687,y:107.5},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:[],dragging:!1,height:70,id:"3-10",position:{x:1620,y:365},positionAbsolute:{x:1687,y:107.5},selected:!1,sourcePosition:"right",targetPosition:"left",type:"action",width:240},{connectable:!0,data:{color:"purple",text:`## Weekly Report Trigger

Starts the report automatically every week.`},dragging:!1,height:150,id:"3-11",position:{x:59.70844708668005,y:37.59294649189371},positionAbsolute:{x:59.70844708668005,y:37.59294649189371},selected:!1,sourcePosition:"right",style:{height:150,width:220},targetPosition:"left",type:"stickyNote",width:220,zIndex:-1},{connectable:!0,data:{color:"green",text:`## Fetch Sales Data

Gets WooCommerce orders.`},dragging:!1,height:150,id:"3-12",position:{x:435.07394241951965,y:42.94628318042504},positionAbsolute:{x:435.07394241951965,y:42.94628318042504},selected:!1,sourcePosition:"right",style:{height:150,width:220},targetPosition:"left",type:"stickyNote",width:220,zIndex:-1},{connectable:!0,data:{color:"red",text:`## AI Sales Analyst

Summarizes weekly revenue, orders, top products, payment methods, issues, and next actions.`},dragging:!1,height:150,id:"3-13",position:{x:799.1608640069197,y:44.027273057383525},positionAbsolute:{x:799.1608640069197,y:44.027273057383525},resizing:!1,selected:!1,sourcePosition:"right",style:{height:150,width:235},targetPosition:"left",type:"stickyNote",width:235,zIndex:-1},{connectable:!0,data:{color:"blue",text:`## Parse Report Output

Separates the AI report into fields for Gmail, Router, Telegram, and Google Sheets.`},dragging:!1,height:150,id:"3-14",position:{x:1111.9044359420693,y:41.234919736533996},positionAbsolute:{x:1111.9044359420693,y:41.234919736533996},selected:!1,sourcePosition:"right",style:{height:150,width:220},targetPosition:"left",type:"stickyNote",width:220,zIndex:-1},{connectable:!0,data:{color:"orange",text:`## Send Weekly Report

Emails the weekly WooCommerce sales report to the store owner or admin.`},dragging:!1,height:150,id:"3-16",position:{x:1627.4806173725774,y:-113.09956176271476},positionAbsolute:{x:1627.4806173725774,y:-113.09956176271476},selected:!1,sourcePosition:"right",style:{height:150,width:220},targetPosition:"left",type:"stickyNote",width:220,zIndex:-1},{connectable:!0,data:{color:"green",text:`## Save Report Summary

Stores the weekly report summary in Google Sheets for future comparison.`},dragging:!1,height:121,id:"3-17",position:{x:1971.2084339456778,y:192.76834922077413},positionAbsolute:{x:1971.2084339456778,y:192.76834922077413},resizing:!1,selected:!1,sourcePosition:"right",style:{height:121,width:246},targetPosition:"left",type:"stickyNote",width:246,zIndex:-1},{connectable:!0,data:{color:"blue",text:`## Attention Alert

Notifies the team only when the weekly report finds failed orders, payment issues, refund mentions, or other risks.`},dragging:!1,height:150,id:"3-18",position:{x:1623.8911331560146,y:475.76763134568444},positionAbsolute:{x:1623.8911331560146,y:475.76763134568444},resizing:!1,selected:!1,sourcePosition:"right",style:{height:150,width:238},targetPosition:"left",type:"stickyNote",width:238,zIndex:-1}],viewport:{x:0,y:0,zoom:1}},map:{id:"3-1",next:{id:"3-2",next:{id:"3-3",next:{id:"3-6",next:{id:"3-7",next:[{id:"3-8",previous:"3-7",type:"action"},{id:"3-9",previous:"3-7",type:"action"},{id:"3-10",previous:"3-7",type:"action"}],previous:"3-6",type:"router"},previous:"3-3",type:"jsonParser"},previous:"3-2",subNode:{chatModel:"3-4",memory:"3-5",tools:[]},type:"aiAgent"},previous:"3-1",type:"action"},previous:null,type:"trigger"},nodes:[{app_slug:"tools",data:{schedule:[{interval:"week",time:"0:00",weekday:"sunday",xMinutes:null}]},field_mapping:null,machine_slug:"schedule",node_id:"3-1",variables:null},{app_slug:"wooCommerce",data:{},field_mapping:null,machine_slug:"getAllOrders",node_id:"3-2",variables:[{key:"data",type:"array",value:[{key:0,type:"collection",value:[{key:"id",type:"integer",value:58},{key:"parent_id",type:"integer",value:0},{key:"status",type:"string",value:"processing"},{key:"currency",type:"string",value:"BDT"},{key:"version",type:"string",value:"10.8.1"},{key:"prices_include_tax",type:"boolean",value:!1},{key:"date_created",type:"collection",value:[]},{key:"date_modified",type:"collection",value:[]},{key:"discount_total",type:"string",value:"0"},{key:"discount_tax",type:"string",value:"0"},{key:"shipping_total",type:"string",value:"0"},{key:"shipping_tax",type:"string",value:"0"},{key:"cart_tax",type:"string",value:"0"},{key:"total",type:"string",value:"184999.00"},{key:"total_tax",type:"string",value:"0"},{key:"customer_id",type:"integer",value:1},{key:"order_key",type:"string",value:"wc_order_1vpLs9Hmb79PW"},{key:"billing",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"email",type:"string",value:"lunojon@mailinator.com"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"shipping",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"payment_method",type:"string",value:"cod"},{key:"payment_method_title",type:"string",value:"Cash on delivery"},{key:"transaction_id",type:"string",value:""},{key:"customer_ip_address",type:"string",value:"103.133.203.102"},{key:"customer_user_agent",type:"string",value:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36"},{key:"created_via",type:"string",value:"store-api"},{key:"customer_note",type:"string",value:""},{key:"date_completed",type:"NULL",value:null},{key:"date_paid",type:"NULL",value:null},{key:"cart_hash",type:"string",value:"088a7b910960846e3c924fe8e385b123"},{key:"order_stock_reduced",type:"boolean",value:!0},{key:"download_permissions_granted",type:"boolean",value:!0},{key:"new_order_email_sent",type:"boolean",value:!0},{key:"recorded_sales",type:"boolean",value:!0},{key:"recorded_coupon_usage_counts",type:"boolean",value:!0},{key:"number",type:"string",value:"58"},{key:"meta_data",type:"array",value:[{key:0,type:"collection",value:[]},{key:1,type:"collection",value:[]},{key:2,type:"collection",value:[]},{key:3,type:"collection",value:[]},{key:4,type:"collection",value:[]},{key:5,type:"collection",value:[]},{key:6,type:"collection",value:[]},{key:7,type:"collection",value:[]},{key:8,type:"collection",value:[]},{key:9,type:"collection",value:[]},{key:10,type:"collection",value:[]},{key:11,type:"collection",value:[]},{key:12,type:"collection",value:[]},{key:13,type:"collection",value:[]},{key:14,type:"collection",value:[]},{key:15,type:"collection",value:[]},{key:16,type:"collection",value:[]},{key:17,type:"collection",value:[]},{key:18,type:"collection",value:[]},{key:19,type:"collection",value:[]}]},{key:"line_items",type:"collection",value:[{key:6,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"tax_lines",type:"collection",value:[]},{key:"shipping_lines",type:"collection",value:[{key:7,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"fee_lines",type:"collection",value:[]},{key:"coupon_lines",type:"collection",value:[]}]},{key:1,type:"collection",value:[{key:"id",type:"integer",value:57},{key:"parent_id",type:"integer",value:0},{key:"status",type:"string",value:"processing"},{key:"currency",type:"string",value:"BDT"},{key:"version",type:"string",value:"10.8.1"},{key:"prices_include_tax",type:"boolean",value:!1},{key:"date_created",type:"collection",value:[]},{key:"date_modified",type:"collection",value:[]},{key:"discount_total",type:"string",value:"0"},{key:"discount_tax",type:"string",value:"0"},{key:"shipping_total",type:"string",value:"0"},{key:"shipping_tax",type:"string",value:"0"},{key:"cart_tax",type:"string",value:"0"},{key:"total",type:"string",value:"79999.00"},{key:"total_tax",type:"string",value:"0"},{key:"customer_id",type:"integer",value:1},{key:"order_key",type:"string",value:"wc_order_J6pjf9iklruhi"},{key:"billing",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"email",type:"string",value:"lunojon@mailinator.com"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"shipping",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"payment_method",type:"string",value:"cod"},{key:"payment_method_title",type:"string",value:"Cash on delivery"},{key:"transaction_id",type:"string",value:""},{key:"customer_ip_address",type:"string",value:"103.133.203.102"},{key:"customer_user_agent",type:"string",value:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36"},{key:"created_via",type:"string",value:"store-api"},{key:"customer_note",type:"string",value:""},{key:"date_completed",type:"NULL",value:null},{key:"date_paid",type:"NULL",value:null},{key:"cart_hash",type:"string",value:"41a5565913b7b77c4348c0df689ba42b"},{key:"order_stock_reduced",type:"boolean",value:!0},{key:"download_permissions_granted",type:"boolean",value:!0},{key:"new_order_email_sent",type:"boolean",value:!0},{key:"recorded_sales",type:"boolean",value:!0},{key:"recorded_coupon_usage_counts",type:"boolean",value:!0},{key:"number",type:"string",value:"57"},{key:"meta_data",type:"array",value:[{key:0,type:"collection",value:[]},{key:1,type:"collection",value:[]},{key:2,type:"collection",value:[]},{key:3,type:"collection",value:[]},{key:4,type:"collection",value:[]},{key:5,type:"collection",value:[]},{key:6,type:"collection",value:[]},{key:7,type:"collection",value:[]},{key:8,type:"collection",value:[]},{key:9,type:"collection",value:[]},{key:10,type:"collection",value:[]},{key:11,type:"collection",value:[]},{key:12,type:"collection",value:[]},{key:13,type:"collection",value:[]},{key:14,type:"collection",value:[]},{key:15,type:"collection",value:[]},{key:16,type:"collection",value:[]},{key:17,type:"collection",value:[]},{key:18,type:"collection",value:[]}]},{key:"line_items",type:"collection",value:[{key:4,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"tax_lines",type:"collection",value:[]},{key:"shipping_lines",type:"collection",value:[{key:5,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"fee_lines",type:"collection",value:[]},{key:"coupon_lines",type:"collection",value:[]}]},{key:2,type:"collection",value:[{key:"id",type:"integer",value:40},{key:"parent_id",type:"integer",value:0},{key:"status",type:"string",value:"completed"},{key:"currency",type:"string",value:"BDT"},{key:"version",type:"string",value:"10.8.1"},{key:"prices_include_tax",type:"boolean",value:!1},{key:"date_created",type:"collection",value:[]},{key:"date_modified",type:"collection",value:[]},{key:"discount_total",type:"string",value:"0"},{key:"discount_tax",type:"string",value:"0"},{key:"shipping_total",type:"string",value:"0"},{key:"shipping_tax",type:"string",value:"0"},{key:"cart_tax",type:"string",value:"0"},{key:"total",type:"string",value:"1190.00"},{key:"total_tax",type:"string",value:"0"},{key:"customer_id",type:"integer",value:1},{key:"order_key",type:"string",value:"wc_order_g9G651hJHPu85"},{key:"billing",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"email",type:"string",value:"lunojon@mailinator.com"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"shipping",type:"collection",value:[{key:"first_name",type:"string",value:"Ulysses"},{key:"last_name",type:"string",value:"Simon"},{key:"company",type:"string",value:""},{key:"address_1",type:"string",value:"85 West Hague Drive"},{key:"address_2",type:"string",value:"Quis tempor pariatur"},{key:"city",type:"string",value:"Almaty"},{key:"state",type:"string",value:"Almaty"},{key:"postcode",type:"string",value:"050000"},{key:"country",type:"string",value:"KZ"},{key:"phone",type:"string",value:"+7 777 123 4567"}]},{key:"payment_method",type:"string",value:"cheque"},{key:"payment_method_title",type:"string",value:"Check payments"},{key:"transaction_id",type:"string",value:""},{key:"customer_ip_address",type:"string",value:"103.133.203.102"},{key:"customer_user_agent",type:"string",value:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36"},{key:"created_via",type:"string",value:"store-api"},{key:"customer_note",type:"string",value:"Irure quia in nisi l"},{key:"date_completed",type:"collection",value:[]},{key:"date_paid",type:"collection",value:[]},{key:"cart_hash",type:"string",value:"b11413dd6cd749f1767abb7606c4a951"},{key:"order_stock_reduced",type:"boolean",value:!0},{key:"download_permissions_granted",type:"boolean",value:!0},{key:"new_order_email_sent",type:"boolean",value:!0},{key:"recorded_sales",type:"boolean",value:!0},{key:"recorded_coupon_usage_counts",type:"boolean",value:!0},{key:"number",type:"string",value:"40"},{key:"meta_data",type:"array",value:[{key:0,type:"collection",value:[]},{key:1,type:"collection",value:[]},{key:2,type:"collection",value:[]},{key:3,type:"collection",value:[]},{key:4,type:"collection",value:[]},{key:5,type:"collection",value:[]},{key:6,type:"collection",value:[]},{key:7,type:"collection",value:[]},{key:8,type:"collection",value:[]},{key:9,type:"collection",value:[]},{key:10,type:"collection",value:[]},{key:11,type:"collection",value:[]},{key:12,type:"collection",value:[]},{key:13,type:"collection",value:[]},{key:14,type:"collection",value:[]},{key:15,type:"collection",value:[]},{key:16,type:"collection",value:[]},{key:17,type:"collection",value:[]},{key:18,type:"collection",value:[]},{key:19,type:"collection",value:[]}]},{key:"line_items",type:"collection",value:[{key:1,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"tax_lines",type:"collection",value:[]},{key:"shipping_lines",type:"collection",value:[{key:3,type:"collection",value:[{key:"legacy_values",type:"NULL",value:null},{key:"legacy_cart_item_key",type:"NULL",value:null},{key:"legacy_package_key",type:"NULL",value:null}]}]},{key:"fee_lines",type:"collection",value:[]},{key:"coupon_lines",type:"collection",value:[]}]}]}]},{app_slug:"tools",data:{aiAgent:{maxIterations:[{type:"string",value:"10"}],prompt:[{type:"string",value:"Analyze this WooCommerce weekly sales data and create a business report."},{type:"string",value:`
`},{type:"string",value:"Report period:"},{type:"string",value:`
`},{type:"string",value:`
`},{type:"string",value:"WooCommerce order data:"},{type:"string",value:`
`},{dType:"array",label:"2. data [ ]",mixInputId:"gold-eyes-fold",nodeId:"3-2",path:"data",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Rules:"},{type:"string",value:`
`},{type:"string",value:"- Summarize the weekly sales in a clear business-friendly way."},{type:"string",value:`
`},{type:"string",value:"- Calculate or estimate total orders, total revenue, average order value, top products, payment method split, and order status summary based on the provided data."},{type:"string",value:`
`},{type:"string",value:"- Identify important issues such as failed orders, pending payments, high COD orders, refund mentions, urgent customer notes, delivery issues, or unusually high-value orders."},{type:"string",value:`
`},{type:"string",value:"- Mention top-selling products if product data is available."},{type:"string",value:`
`},{type:"string",value:"- Mention customer or fulfillment risks only if the data shows them."},{type:"string",value:`
`},{type:"string",value:"- Suggest 3 practical next actions for the store owner or sales team."},{type:"string",value:`
`},{type:"string",value:"- Keep the Gmail report clean and easy to scan."},{type:"string",value:`
`},{type:"string",value:"- Do not invent numbers that are not present in the order data."},{type:"string",value:`
`},{type:"string",value:"- If data is missing, mention what is missing."},{type:"string",value:`
`},{type:"string",value:"- Return only valid JSON."},{type:"string",value:`
`},{type:"string",value:"- Do not add markdown."},{type:"string",value:`
`},{type:"string",value:"- Do not add explanation outside the JSON."},{type:"string",value:`
`},{type:"string",value:"Output format:"},{type:"string",value:`
`},{type:"string",value:"{"},{type:"string",value:`
`},{type:"string",value:'  "report_title": "Weekly WooCommerce Sales Report",'},{type:"string",value:`
`},{type:"string",value:'  "report_period": "Start Date to End Date",'},{type:"string",value:`
`},{type:"string",value:'  "total_orders": "",'},{type:"string",value:`
`},{type:"string",value:'  "total_revenue": "",'},{type:"string",value:`
`},{type:"string",value:'  "average_order_value": "",'},{type:"string",value:`
`},{type:"string",value:'  "top_products": "",'},{type:"string",value:`
`},{type:"string",value:'  "payment_summary": "",'},{type:"string",value:`
`},{type:"string",value:'  "order_status_summary": "",'},{type:"string",value:`
`},{type:"string",value:'  "key_issues": "",'},{type:"string",value:`
`},{type:"string",value:'  "sales_insight": "",'},{type:"string",value:`
`},{type:"string",value:'  "next_actions": "",'},{type:"string",value:`
`},{type:"string",value:'  "attention_required": "Yes | No",'},{type:"string",value:`
`},{type:"string",value:'  "attention_reason": "",'},{type:"string",value:`
`},{type:"string",value:'  "gmail_subject": "Weekly WooCommerce Sales Report - [report period]",'},{type:"string",value:`
`},{type:"string",value:'  "gmail_body": "Clean weekly sales report email body.",'},{type:"string",value:`
`},{type:"string",value:'  "sheet_summary": "Short report summary for Google Sheets.",'},{type:"string",value:`
`},{type:"string",value:'  "report_status": "Completed"'},{type:"string",value:`
`},{type:"string",value:"}"}],promptSource:"prompt",responseFormat:"text",systemPrompt:[{type:"string",value:"You are a WooCommerce sales analyst for an internal business team."},{type:"string",value:`
`},{type:"string",value:"Analyze weekly order data and return only valid JSON with sales summary, risks, trends, and next actions."}]}},field_mapping:null,machine_slug:"aiAgent",node_id:"3-3",variables:[{key:"status",type:"string",value:"success"},{key:"response",type:"collection",value:[{key:"report_title",type:"string",value:"Weekly WooCommerce Sales Report"},{key:"report_period",type:"string",value:"Not provided"},{key:"total_orders",type:"string",value:"3"},{key:"total_revenue",type:"string",value:"BDT 266,188.00"},{key:"average_order_value",type:"string",value:"BDT 88,729.33"},{key:"top_products",type:"string",value:"Not available. Product names, SKUs, quantities, and item-level totals are missing from the provided line_items data."},{key:"payment_summary",type:"string",value:"Cash on delivery: 2 orders totaling BDT 264,998.00. Check payments: 1 order totaling BDT 1,190.00."},{key:"order_status_summary",type:"string",value:"Processing: 2 orders totaling BDT 264,998.00. Completed: 1 order totaling BDT 1,190.00. No failed, cancelled, refunded, or on-hold orders are shown in the provided data."},{key:"key_issues",type:"string",value:"Two high-value Cash on Delivery orders are still in processing status and have no paid date. Orders #58 and #57 represent nearly all reported revenue. Shipping total is BDT 0.00 on all orders, including international shipping address data. Order date fields are missing or empty, so the weekly reporting period cannot be validated from the order data. Product-level details are also missing."},{key:"sales_insight",type:"string",value:"Sales value is heavily concentrated in 2 processing COD orders totaling BDT 264,998.00 out of BDT 266,188.00. Completed revenue is only BDT 1,190.00, so most reported revenue is not yet finalized. No discounts, taxes, or shipping charges were recorded in the provided orders."},{key:"next_actions",type:"string",value:"1. Contact or verify COD orders #58 and #57 before dispatch due to their high value and unpaid status. 2. Review shipping configuration because all orders show BDT 0.00 shipping, including international delivery addresses. 3. Improve WooCommerce export/reporting data to include order dates, product names, SKUs, quantities, and item-level totals."},{key:"attention_required",type:"string",value:"Yes"},{key:"attention_reason",type:"string",value:"Attention is required because 2 high-value COD orders remain in processing status, shipping charges are zero on all orders, and key reporting data such as dates and product details is missing."},{key:"gmail_subject",type:"string",value:"Weekly WooCommerce Sales Report - Period Not Provided"},{key:"gmail_body",type:"string",value:`Weekly WooCommerce Sales Report
Period: Not provided

Summary
- Total orders: 3
- Total revenue: BDT 266,188.00
- Average order value: BDT 88,729.33

Payment Summary
- Cash on delivery: 2 orders totaling BDT 264,998.00
- Check payments: 1 order totaling BDT 1,190.00

Order Status
- Processing: 2 orders totaling BDT 264,998.00
- Completed: 1 order totaling BDT 1,190.00
- No failed, cancelled, refunded, or on-hold orders are shown.

Top Products
- Not available. Product names, SKUs, quantities, and item-level totals are missing.

Key Issues
- Two high-value COD orders are still processing and unpaid.
- Most revenue is not yet completed.
- Shipping total is BDT 0.00 on all orders, including international address data.
- Order date fields are missing or empty, so the weekly period cannot be validated.

Recommended Next Actions
1. Verify COD orders #58 and #57 before dispatch.
2. Review shipping settings for all delivery zones.
3. Improve WooCommerce reporting/export fields to include dates and product-level details.

Attention Required: Yes`},{key:"sheet_summary",type:"string",value:"3 orders | BDT 266,188.00 revenue | AOV BDT 88,729.33 | 2 processing COD orders worth BDT 264,998.00 | Shipping BDT 0.00 | Product/date data missing."},{key:"report_status",type:"string",value:"Completed"}]},{key:"iterations",type:"integer",value:1},{key:"finish_reason",type:"string",value:"stop"},{key:"tool_calls",type:"collection",value:[]}]},{app_slug:"openAiChatModel",data:{db:{connectionId:21,model:"gpt-5.5"}},field_mapping:{configs:{"connection-id":{value:21},"show-advance-feature":{value:!1}},data:[{path:"model",value:"gpt-5.5"},{path:"max_tokens",value:[]},{path:"reasoning_effort",value:null},{path:"temperature",value:[]},{path:"top_p",value:[]},{path:"frequency_penalty",value:[]},{path:"presence_penalty",value:[]}],repeaters:[]},machine_slug:"chatModel",node_id:"3-4",variables:null},{app_slug:"simpleMemory",data:{db:{memoryKey:[{dType:"integer",label:"2. id",mixInputId:"proud-rivers-retire",nodeId:"3-2",path:"data.0.id",type:"variable"}]}},field_mapping:{configs:[],data:[{path:"memoryKey",value:[{dType:"integer",label:"2. id",mixInputId:"proud-rivers-retire",nodeId:"3-2",path:"data.0.id",type:"variable"}]},{path:"contextLength",value:[{type:"string",value:"5"}]}],repeaters:[]},machine_slug:"simpleMemory",node_id:"3-5",variables:null},{app_slug:"tools",data:{jsonParser:{value:[{dType:"collection",label:"3. response",mixInputId:"tender-toes-look",nodeId:"3-3",path:"response",type:"variable"}]}},field_mapping:null,machine_slug:"jsonParser",node_id:"3-6",variables:[{key:"report_title",type:"string",value:"Weekly WooCommerce Sales Report"},{key:"report_period",type:"string",value:"Not provided"},{key:"total_orders",type:"string",value:"3"},{key:"total_revenue",type:"string",value:"BDT 266,188.00"},{key:"average_order_value",type:"string",value:"BDT 88,729.33"},{key:"top_products",type:"string",value:"Not available. Product names, SKUs, quantities, and item-level totals are missing from the provided line_items data."},{key:"payment_summary",type:"string",value:"Cash on delivery: 2 orders totaling BDT 264,998.00. Check payments: 1 order totaling BDT 1,190.00."},{key:"order_status_summary",type:"string",value:"Processing: 2 orders totaling BDT 264,998.00. Completed: 1 order totaling BDT 1,190.00. No failed, cancelled, refunded, or on-hold orders are shown in the provided data."},{key:"key_issues",type:"string",value:"Two high-value Cash on Delivery orders are still in processing status and have no paid date. Orders #58 and #57 represent nearly all reported revenue. Shipping total is BDT 0.00 on all orders, including international shipping address data. Order date fields are missing or empty, so the weekly reporting period cannot be validated from the order data. Product-level details are also missing."},{key:"sales_insight",type:"string",value:"Sales value is heavily concentrated in 2 processing COD orders totaling BDT 264,998.00 out of BDT 266,188.00. Completed revenue is only BDT 1,190.00, so most reported revenue is not yet finalized. No discounts, taxes, or shipping charges were recorded in the provided orders."},{key:"next_actions",type:"string",value:"1. Contact or verify COD orders #58 and #57 before dispatch due to their high value and unpaid status. 2. Review shipping configuration because all orders show BDT 0.00 shipping, including international delivery addresses. 3. Improve WooCommerce export/reporting data to include order dates, product names, SKUs, quantities, and item-level totals."},{key:"attention_required",type:"string",value:"Yes"},{key:"attention_reason",type:"string",value:"Attention is required because 2 high-value COD orders remain in processing status, shipping charges are zero on all orders, and key reporting data such as dates and product details is missing."},{key:"gmail_subject",type:"string",value:"Weekly WooCommerce Sales Report - Period Not Provided"},{key:"gmail_body",type:"string",value:`Weekly WooCommerce Sales Report
Period: Not provided

Summary
- Total orders: 3
- Total revenue: BDT 266,188.00
- Average order value: BDT 88,729.33

Payment Summary
- Cash on delivery: 2 orders totaling BDT 264,998.00
- Check payments: 1 order totaling BDT 1,190.00

Order Status
- Processing: 2 orders totaling BDT 264,998.00
- Completed: 1 order totaling BDT 1,190.00
- No failed, cancelled, refunded, or on-hold orders are shown.

Top Products
- Not available. Product names, SKUs, quantities, and item-level totals are missing.

Key Issues
- Two high-value COD orders are still processing and unpaid.
- Most revenue is not yet completed.
- Shipping total is BDT 0.00 on all orders, including international address data.
- Order date fields are missing or empty, so the weekly period cannot be validated.

Recommended Next Actions
1. Verify COD orders #58 and #57 before dispatch.
2. Review shipping settings for all delivery zones.
3. Improve WooCommerce reporting/export fields to include dates and product-level details.

Attention Required: Yes`},{key:"sheet_summary",type:"string",value:"3 orders | BDT 266,188.00 revenue | AOV BDT 88,729.33 | 2 processing COD orders worth BDT 264,998.00 | Shipping BDT 0.00 | Product/date data missing."},{key:"report_status",type:"string",value:"Completed"}]},{app_slug:"gmail",data:{db:{bodyDb:[{dType:"string",label:"6. gmail_body",mixInputId:"sharp-singers-type",nodeId:"3-6",path:"gmail_body",type:"variable"}],connectionId:4,emailTo:[[{name:"email",value:[{type:"string",value:"example@gmail.com"}]}]],fromEmail:[{type:"string",value:"example@gmail.com"}],subjectDb:[{dType:"string",label:"6. gmail_subject",mixInputId:"khaki-poems-kick",nodeId:"3-6",path:"gmail_subject",type:"variable"}]}},field_mapping:{configs:{"connection-id":{value:4}},data:[{path:"subject",value:[{dType:"string",label:"6. gmail_subject",mixInputId:"khaki-poems-kick",nodeId:"3-6",path:"gmail_subject",type:"variable"}]},{path:"body",value:[{dType:"string",label:"6. gmail_body",mixInputId:"sharp-singers-type",nodeId:"3-6",path:"gmail_body",type:"variable"}]},{path:"body_type",value:"plain"},{path:"label",value:null},{path:"from_email",value:[{type:"string",value:"example@gmail.com"}]},{path:"from_name",value:null},{path:"reply_to",value:null}],repeaters:{attachment:{value:[]},"bcc-email":{value:[[{key:"email",value:[]}]]},"cc-email":{value:[[{key:"email",value:[]}]]},"email-to":{value:[[{key:"email",value:[{type:"string",value:"example@gmail.com"}]}]]}}},machine_slug:"sendEmail",node_id:"3-8",variables:null},{app_slug:"googleSheet",data:{db:{connectionId:7,rowData:[[{name:"column",value:"A"},{name:"value",value:[{dType:"string",label:"6. total_orders",mixInputId:"fine-beans-build",nodeId:"3-6",path:"total_orders",type:"variable"}]}],[{name:"column",value:"B"},{name:"value",value:[{dType:"string",label:"3. top_products",mixInputId:"khaki-banks-change",nodeId:"3-3",path:"response.top_products",type:"variable"}]}],[{name:"column",value:"C"},{name:"value",value:[{dType:"string",label:"6. payment_summary",mixInputId:"chatty-mirrors-move",nodeId:"3-6",path:"payment_summary",type:"variable"}]}],[{name:"column",value:"D"},{name:"value",value:[{dType:"string",label:"6. order_status_summary",mixInputId:"stale-ends-wait",nodeId:"3-6",path:"order_status_summary",type:"variable"}]}],[{name:"column",value:"E"},{name:"value",value:[{dType:"string",label:"6. sales_insight",mixInputId:"slow-radios-relate",nodeId:"3-6",path:"sales_insight",type:"variable"}]}],[{name:"column",value:"F"},{name:"value",value:[{dType:"string",label:"6. key_issues",mixInputId:"tricky-buckets-sit",nodeId:"3-6",path:"key_issues",type:"variable"}]}],[{name:"column",value:"G"},{name:"value",value:[{dType:"string",label:"6. attention_reason",mixInputId:"tame-trains-fail",nodeId:"3-6",path:"attention_reason",type:"variable"}]}]],sheetTitle:"Sheet1",spreadsheetId:"1RUqrEi8IAJcocwpdHz7Jx5KOlTEc2ok43gqM1_w3WdQ"}},field_mapping:{configs:{"connection-id":{value:7},"insert-data-option":{value:"INSERT_ROWS"},"sheet-title":{value:"Sheet1"},"spreadsheet-id":{value:"1RUqrEi8IAJcocwpdHz7Jx5KOlTEc2ok43gqM1_w3WdQ"},"value-input-option":{value:"USER_ENTERED"}},data:[{value:""}],repeaters:{"row-data":{path:"rowData",value:[[{key:"column",value:"A"},{key:"value",value:[{dType:"string",label:"6. total_orders",mixInputId:"fine-beans-build",nodeId:"3-6",path:"total_orders",type:"variable"}]}],[{key:"column",value:"B"},{key:"value",value:[{dType:"string",label:"3. top_products",mixInputId:"khaki-banks-change",nodeId:"3-3",path:"response.top_products",type:"variable"}]}],[{key:"column",value:"C"},{key:"value",value:[{dType:"string",label:"6. payment_summary",mixInputId:"chatty-mirrors-move",nodeId:"3-6",path:"payment_summary",type:"variable"}]}],[{key:"column",value:"D"},{key:"value",value:[{dType:"string",label:"6. order_status_summary",mixInputId:"stale-ends-wait",nodeId:"3-6",path:"order_status_summary",type:"variable"}]}],[{key:"column",value:"E"},{key:"value",value:[{dType:"string",label:"6. sales_insight",mixInputId:"slow-radios-relate",nodeId:"3-6",path:"sales_insight",type:"variable"}]}],[{key:"column",value:"F"},{key:"value",value:[{dType:"string",label:"6. key_issues",mixInputId:"tricky-buckets-sit",nodeId:"3-6",path:"key_issues",type:"variable"}]}],[{key:"column",value:"G"},{key:"value",value:[{dType:"string",label:"6. attention_reason",mixInputId:"tame-trains-fail",nodeId:"3-6",path:"attention_reason",type:"variable"}]}]]}}},machine_slug:"addRow",node_id:"3-9",variables:[{key:"spreadsheetId",type:"string",value:"1RUqrEi8IAJcocwpdHz7Jx5KOlTEc2ok43gqM1_w3WdQ"},{key:"updates",type:"collection",value:[{key:"spreadsheetId",type:"string",value:"1RUqrEi8IAJcocwpdHz7Jx5KOlTEc2ok43gqM1_w3WdQ"},{key:"updatedRange",type:"string",value:"Sheet1!A2:G2"},{key:"updatedRows",type:"integer",value:1},{key:"updatedColumns",type:"integer",value:7},{key:"updatedCells",type:"integer",value:7}]}]},{app_slug:"telegram",data:{db:{chat:[],connection:1,text:[{type:"string",value:"Weekly WooCommerce Report Title: "},{dType:"string",label:"6. report_title",mixInputId:"spicy-peaches-travel",nodeId:"3-6",path:"report_title",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Payment Summary: "},{dType:"string",label:"6. payment_summary",mixInputId:"cuddly-towns-know",nodeId:"3-6",path:"payment_summary",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Order Status Summary: "},{dType:"string",label:"6. order_status_summary",mixInputId:"tangy-deer-battle",nodeId:"3-6",path:"order_status_summary",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Key Issues: "},{dType:"string",label:"6. key_issues",mixInputId:"slick-mails-warn",nodeId:"3-6",path:"key_issues",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Sales Insight: "},{dType:"string",label:"6. sales_insight",mixInputId:"silent-crews-find",nodeId:"3-6",path:"sales_insight",type:"variable"}]}},field_mapping:{configs:{"connection-id":{value:1},"message-reply":{path:"advance-feature",value:"false"}},data:[{path:"chat_id",value:[]},{path:"text",value:[{type:"string",value:"Weekly WooCommerce Report Title: "},{dType:"string",label:"6. report_title",mixInputId:"spicy-peaches-travel",nodeId:"3-6",path:"report_title",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Payment Summary: "},{dType:"string",label:"6. payment_summary",mixInputId:"cuddly-towns-know",nodeId:"3-6",path:"payment_summary",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Order Status Summary: "},{dType:"string",label:"6. order_status_summary",mixInputId:"tangy-deer-battle",nodeId:"3-6",path:"order_status_summary",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Key Issues: "},{dType:"string",label:"6. key_issues",mixInputId:"slick-mails-warn",nodeId:"3-6",path:"key_issues",type:"variable"},{type:"string",value:`
`},{type:"string",value:"Sales Insight: "},{dType:"string",label:"6. sales_insight",mixInputId:"silent-crews-find",nodeId:"3-6",path:"sales_insight",type:"variable"}]},{path:"message_thread_id",value:[]},{path:"parse_mode",value:"HTML"},{path:"disable_notification",value:"true"},{path:"disable_web_page_preview",value:"true"},{path:"protect_content",value:"false"},{path:"reply_to_message_id",value:[]}],repeaters:{"reply-markup":{path:"data",value:[]}}},machine_slug:"sendOrReplyMessage",node_id:"3-10",variables:[{key:"ok",type:"boolean",value:!0},{key:"result",type:"collection",value:[{key:"message_id",type:"integer",value:108},{key:"from",type:"collection",value:[{key:"id",type:"integer",value:8605659737},{key:"is_bot",type:"boolean",value:!0},{key:"first_name",type:"string",value:"Mystore"},{key:"username",type:"string",value:"Mystore_wo_bot"}]},{key:"chat",type:"collection",value:[{key:"id",type:"integer",value:-0xe9b245a9ee},{key:"title",type:"string",value:"Bit"},{key:"type",type:"string",value:"supergroup"}]},{key:"date",type:"integer",value:1781082358},{key:"text",type:"string",value:`Weekly WooCommerce Report Title: Weekly WooCommerce Sales Report
Payment Summary: Cash on delivery: 2 orders totaling BDT 264,998.00. Check payments: 1 order totaling BDT 1,190.00.
Order Status Summary: Processing: 2 orders totaling BDT 264,998.00. Completed: 1 order totaling BDT 1,190.00. No failed, cancelled, refunded, or on-hold orders are shown in the provided data.
Key Issues: Two high-value Cash on Delivery orders are still in processing status and have no paid date. Orders #58 and #57 represent nearly all reported revenue. Shipping total is BDT 0.00 on all orders, including international shipping address data. Order date fields are missing or empty, so the weekly reporting period cannot be validated from the order data. Product-level details are also missing.
Sales Insight: Sales value is heavily concentrated in 2 processing COD orders totaling BDT 264,998.00 out of BDT 266,188.00. Completed revenue is only BDT 1,190.00, so most reported revenue is not yet finalized. No discounts, taxes, or shipping charges were recorded in the provided orders.`}]}]}]};export{e as default};
