{
  "version": "6.1",
  "id": "clvqpyldu0005pub4sj4fi9sx",
  "name": "محاسبه‌گر سریع کربن",
  "events": [
    {
      "id": "idpi6p77jtl07g95i59472ov",
      "outgoingEdgeId": "u6s1xbl0f22isp1yw59wgjpc",
      "graphCoordinates": {
        "x": 0,
        "y": 0
      },
      "type": "start"
    }
  ],
  "groups": [
    {
      "id": "x2x6f3wzxrtym647g57e4382",
      "title": "ورزش",
      "graphCoordinates": {
        "x": 190.73,
        "y": 331.22
      },
      "blocks": [
        {
          "id": "vivxy8mvydql0e5u6tecpx1q",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "به ماشین حساب سریع کربوهیدرات خوش آمدید!"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "dcopvbfbdvhq0te4g760pgn2",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": " من به شما کمک می‌کنم تا بفهمید چقدر سوخت برای بهترین عملکردتان نیاز دارید. بیایید شروع کنیم! 🚴‍♂️🏃"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "jdvfdtxzdce1busleqs9ure0",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "ابتدا، برای چه چیزی سوخت‌رسانی می‌کنید؟"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "yura2cvzxy8qea4x1m71ulcy",
          "outgoingEdgeId": "gnwha6pow6q6occm6gn3d9o3",
          "type": "choice input",
          "items": [
            {
              "id": "omopw9oy3srowddb0o3f4xs5",
              "content": "شنا 🏊‍♂️"
            },
            {
              "id": "anpwbn8hvolyod2vsh06et68",
              "content": "دوچرخه‌سواری 🚴‍♂️"
            },
            {
              "id": "uto1ghh5c6icwygszercxybz",
              "content": "دویدن 🏃"
            },
            {
              "id": "sau0amab8nmeqfqyhhzle03v",
              "content": "تری‌آتلون 🏊‍♂️🚴‍♂️🏃"
            },
            {
              "id": "tqvjhk0qmvn43h5hyc9ibdd3",
              "content": "سویم‌ران 🏊‍♂️🏃"
            },
            {
              "id": "mu0m5v7m55vfikbs29lpcm3h",
              "outgoingEdgeId": "hbh8d8q39wzgy1foclpy15s2",
              "content": "سایر"
            }
          ],
          "options": {
            "variableId": "vc5qxl1y2rzmy7uqeasq8bd3q"
          }
        }
      ]
    },
    {
      "id": "fdcibngr9fycd37o46dwlvuq",
      "title": "",
      "graphCoordinates": {
        "x": 589.06,
        "y": 781.87
      },
      "blocks": [
        {
          "id": "lglw9gtixolxnch9sqy4djyj",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "چه ورزشی؟"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "hcp2ebjsxmzjydpp6qkym5fo",
          "outgoingEdgeId": "pow7libu0danm0n84k5dvrh2",
          "type": "text input",
          "options": {
            "variableId": "vc5qxl1y2rzmy7uqeasq8bd3q"
          }
        }
      ]
    },
    {
      "id": "ujeec2r6ph4l0gbdlzvfen9c",
      "title": "مدت زمان",
      "graphCoordinates": {
        "x": 605.2,
        "y": 329.71
      },
      "blocks": [
        {
          "id": "gt4pnocv289vzg7lbrqvuld6",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "عالی! این فعالیت را چند دقیقه انجام می‌دهید؟"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "je03xo9p9vipnvw07y859ng7",
          "outgoingEdgeId": "ee0zj9456t8oj1cbgn0d5pci",
          "type": "text input",
          "options": {
            "variableId": "veiz4m7fe9er6k5qy676qwhfb"
          }
        }
      ]
    },
    {
      "id": "n45do8ao8c2fzgu107wdsrr3",
      "title": "شدت",
      "graphCoordinates": {
        "x": 1008.15,
        "y": 332.34
      },
      "blocks": [
        {
          "id": "zm8sjanqyezg1pk427t1ywph",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "متوجه شدم! حالا، چقدر سخت می‌روی؟"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "zxvlig3wytb4n7s81prfszau",
          "outgoingEdgeId": "r0sy9h8oux00p1pqkuczhg9n",
          "type": "rating input",
          "options": {
            "variableId": "vprpht8foqzxv4bs8hlozqoq7",
            "length": 7,
            "startsAt": 1,
            "labels": {
              "left": "Easy",
              "right": "Racing"
            }
          }
        }
      ]
    },
    {
      "id": "er51741iln7nja5jn8qrkyeh",
      "title": "تولید هوش مصنوعی",
      "graphCoordinates": {
        "x": 1730.53,
        "y": 325.38
      },
      "blocks": [
        {
          "id": "cnof27ok7s9d2ly8psdyoe4y",
          "type": "openai",
          "options": {
            "credentialsId": "clvqq3hey0007pub4almxnhk2",
            "action": "Create chat completion",
            "model": "gpt-4-turbo",
            "messages": [
              {
                "role": "system",
                "content": "وظیفه شما تخمین میزان کربوهیدراتی است که یک ورزشکار باید در طول مسابقه مصرف کند. شما همچنین باید یک استراتژی تغذیه ساده ایجاد کنید.\n\nشما برای شرکتی به نام Precision Hydration کار می کنید و ژل های 30 گرمی با یا بدون کافئین و ژل های 90 گرمی با یا بدون کافئین می فروشید.\n\nپاسخ شما باید بر اساس زمینه داخل عنصر XML <context> باشد.\n\n<context>\nمن برای {{Sport}} تمرین می کنم. هدف زمانی من {{Duration}} است. در مقیاس 1 تا 7، 1 آسان و 7 مسابقه شدید، من می گویم {{Intensity}}.\n</context>\n\nاز توضیح بیش از حد حدس خود خودداری کنید، مستقیماً کل کربوهیدرات را ارائه دهید، سپس یک توضیح سریع و در نهایت استراتژی سوخت رسانی."
              }
            ],
            "responseMapping": [
              {
                "variableId": "vi3aeka9tjab0hmuqnc1uvzjz"
              }
            ]
          }
        },
        {
          "id": "ncqf0arxg4a4gry512dqk2v7",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "{{Assistant message}}"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "peycxrwyv23d396c27j75nsy",
          "outgoingEdgeId": "bk3wsui0h91kbf9zobqh15pb",
          "type": "Email",
          "options": {
            "isCustomBody": true,
            "recipients": [
              "{{Email}}"
            ],
            "subject": "برنامه سوخت رسانی شما",
            "body": "سلام،\n\nاز پاسخگویی شما سپاسگزارم...\n\nدر اینجا تخمین آمده است:\n\n{{Assistant message}}\n\nبه زودی می بینمت،\nPerformance Hydration."
          }
        }
      ]
    },
    {
      "id": "i477wpsojbu2fbqct541qqa1",
      "title": "ایمیل",
      "graphCoordinates": {
        "x": 1370.12,
        "y": 338.17
      },
      "blocks": [
        {
          "id": "ro1y65vqxcozqxla4ghgrvs1",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "برای نگهداری سابقه محاسبات کربوهیدرات شما و ارجاع آسان در آینده، لطفاً آدرس ایمیل خود را ارائه دهید؟"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "u9vbh5h4009ujs3a2meknec5",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "با این روش می‌توانم برای شما خلاصه‌ای شخصی از طرح سوخت‌دهی خود ارسال کنم. 📧"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "prd6ni8tnjoi62tj29dnthlj",
          "outgoingEdgeId": "d7ihuksdgn0gdqm7138xnzf4",
          "type": "email input",
          "options": {
            "variableId": "vb0jqpcdbqr7c2fq1ijs7j3wt"
          }
        }
      ]
    },
    {
      "id": "h709w0mid2cu06xe0vu5agj1",
      "title": "دعوت به عمل",
      "graphCoordinates": {
        "x": 2080.11,
        "y": 324.59
      },
      "blocks": [
        {
          "id": "q7w7wypml8fpoqmrwdyv5zfm",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "حالا که می‌دانید به چه مقدار کربوهیدرات نیاز دارید، آیا دوست دارید نگاهی به مجموعه ژل‌های کربوهیدرات برتر و سایر محصولات سوخت‌رسانی ما بیندازید؟ 🛒"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "g0nd8jfs64h90lxy41ztufkf",
          "type": "choice input",
          "items": [
            {
              "id": "y7w3u1i6np6umnwxfs7u7x4a",
              "outgoingEdgeId": "nnaxabsjpk161s6kygdxm68k",
              "content": "رفتن به خرید"
            }
          ]
        }
      ]
    },
    {
      "id": "d5ihz070zlpirjzz26hx8ak4",
      "title": "",
      "graphCoordinates": {
        "x": 2425.42,
        "y": 591.25
      },
      "blocks": [
        {
          "id": "tukplu3km8f59cuqyrwhlnjz",
          "type": "Redirect",
          "options": {
            "url": "https://www.precisionhydration.com/eu/en/products/pf-30-gel/"
          }
        }
      ]
    },
    {
      "id": "irklbryotgaxozsrot5qxeoc",
      "title": "",
      "graphCoordinates": {
        "x": 269.91,
        "y": -3.13
      },
      "blocks": [
        {
          "id": "jl3b2nltipe5b5ejtqbfgx9j",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "شما باید اعتبارهای OpenAI را اضافه کنید تا این ربات به‌درستی کار کند.🪄"
                  }
                ]
              }
            ]
          }
        },
        {
          "id": "mnakzjvql9qrsctwscctzx74",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  {
                    "text": "وقتی تمام شد، این گروه را حذف کنید و آن را متصل کنید"
                  },
                  {
                    "bold": true,
                    "text": "شروع"
                  },
                  {
                    "text": " رویداد با "
                  },
                  {
                    "bold": true,
                    "text": "گروه ورزشی"
                  },
                  {
                    "text": " 🚀"
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ],
  "edges": [
    {
      "id": "hbh8d8q39wzgy1foclpy15s2",
      "from": {
        "blockId": "yura2cvzxy8qea4x1m71ulcy",
        "itemId": "mu0m5v7m55vfikbs29lpcm3h"
      },
      "to": {
        "groupId": "fdcibngr9fycd37o46dwlvuq"
      }
    },
    {
      "id": "gnwha6pow6q6occm6gn3d9o3",
      "from": {
        "blockId": "yura2cvzxy8qea4x1m71ulcy"
      },
      "to": {
        "groupId": "ujeec2r6ph4l0gbdlzvfen9c"
      }
    },
    {
      "id": "pow7libu0danm0n84k5dvrh2",
      "from": {
        "blockId": "hcp2ebjsxmzjydpp6qkym5fo"
      },
      "to": {
        "groupId": "ujeec2r6ph4l0gbdlzvfen9c"
      }
    },
    {
      "id": "ee0zj9456t8oj1cbgn0d5pci",
      "from": {
        "blockId": "je03xo9p9vipnvw07y859ng7"
      },
      "to": {
        "groupId": "n45do8ao8c2fzgu107wdsrr3"
      }
    },
    {
      "id": "r0sy9h8oux00p1pqkuczhg9n",
      "from": {
        "blockId": "zxvlig3wytb4n7s81prfszau"
      },
      "to": {
        "groupId": "i477wpsojbu2fbqct541qqa1"
      }
    },
    {
      "id": "d7ihuksdgn0gdqm7138xnzf4",
      "from": {
        "blockId": "prd6ni8tnjoi62tj29dnthlj"
      },
      "to": {
        "groupId": "er51741iln7nja5jn8qrkyeh"
      }
    },
    {
      "id": "bk3wsui0h91kbf9zobqh15pb",
      "from": {
        "blockId": "peycxrwyv23d396c27j75nsy"
      },
      "to": {
        "groupId": "h709w0mid2cu06xe0vu5agj1"
      }
    },
    {
      "id": "nnaxabsjpk161s6kygdxm68k",
      "from": {
        "blockId": "g0nd8jfs64h90lxy41ztufkf",
        "itemId": "y7w3u1i6np6umnwxfs7u7x4a"
      },
      "to": {
        "groupId": "d5ihz070zlpirjzz26hx8ak4"
      }
    },
    {
      "from": {
        "eventId": "idpi6p77jtl07g95i59472ov"
      },
      "to": {
        "groupId": "irklbryotgaxozsrot5qxeoc"
      },
      "id": "u6s1xbl0f22isp1yw59wgjpc"
    }
  ],
  "variables": [
    {
      "id": "vc5qxl1y2rzmy7uqeasq8bd3q",
      "name": "Sport",
      "isSessionVariable": true
    },
    {
      "id": "veiz4m7fe9er6k5qy676qwhfb",
      "name": "Duration",
      "isSessionVariable": true
    },
    {
      "id": "vprpht8foqzxv4bs8hlozqoq7",
      "name": "Intensity",
      "isSessionVariable": true
    },
    {
      "id": "vi3aeka9tjab0hmuqnc1uvzjz",
      "name": "Assistant message",
      "isSessionVariable": true
    },
    {
      "id": "vb0jqpcdbqr7c2fq1ijs7j3wt",
      "name": "Email",
      "isSessionVariable": true
    }
  ],
  "theme": {},
  "selectedThemeTemplateId": null,
  "settings": {},
  "createdAt": "2024-05-03T13:37:03.426Z",
  "updatedAt": "2024-05-03T13:48:08.061Z",
  "icon": "🏃‍♂️",
  "folderId": null,
  "publicId": "quick-carb-calculator-j4fi9sx",
  "customDomain": null,
  "workspaceId": "proWorkspace",
  "resultsTablePreferences": null,
  "isArchived": false,
  "isClosed": false,
  "whatsAppCredentialsId": null,
  "riskLevel": null,
  "organizationId": null
}