{
  "version": "1.0",
  "exportedAt": "2026-10-23T21:12:58.484Z",
  "state": {
    "blocks": {
      "952101b7-8fd9-43ec-900b-26d32505eecd": {
        "id": "952101b7-8fd9-43ec-900b-26d32505eecd",
        "type": "start_trigger",
        "name": "Start",
        "position": {
          "x": 0,
          "y": 0
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "inputFormat": {
            "id": "inputFormat",
            "type": "input-format",
            "value": [
              {
                "id": "952101b7-8fd9-43ec-900b-26d32505eecd-brief",
                "name": "brief",
                "type": "string",
                "value": "How an AI tutor helps students build a weekly study plan that sticks",
                "collapsed": false
              },
              {
                "id": "952101b7-8fd9-43ec-900b-26d32505eecd-targetKeyword",
                "name": "targetKeyword",
                "type": "string",
                "value": "study plan",
                "collapsed": false
              },
              {
                "id": "952101b7-8fd9-43ec-900b-26d32505eecd-tone",
                "name": "tone",
                "type": "string",
                "value": "friendly, expert, encouraging",
                "collapsed": false
              },
              {
                "id": "952101b7-8fd9-43ec-900b-26d32505eecd-category",
                "name": "category",
                "type": "string",
                "value": "",
                "collapsed": false
              }
            ]
          },
          "runMetadata": {
            "id": "runMetadata",
            "type": "switch",
            "value": false
          }
        },
        "outputs": {},
        "data": {}
      },
      "88d58817-6bf6-4628-8d35-7b1bb959551c": {
        "id": "88d58817-6bf6-4628-8d35-7b1bb959551c",
        "type": "tutormigo_content",
        "name": "Write Blog Draft",
        "position": {
          "x": 330,
          "y": 0
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "tutormigo_content_generate"
          },
          "apiKey": {
            "id": "apiKey",
            "type": "short-input",
            "value": "{{TUTORMIGO_API_KEY}}"
          },
          "typeKey": {
            "id": "typeKey",
            "type": "dropdown",
            "value": "blog"
          },
          "brief": {
            "id": "brief",
            "type": "long-input",
            "value": "<start.brief>"
          },
          "targetKeyword": {
            "id": "targetKeyword",
            "type": "short-input",
            "value": "<start.targetKeyword>"
          },
          "tone": {
            "id": "tone",
            "type": "short-input",
            "value": "<start.tone>"
          },
          "length": {
            "id": "length",
            "type": "dropdown",
            "value": "standard"
          },
          "generateHero": {
            "id": "generateHero",
            "type": "switch",
            "value": true
          }
        },
        "outputs": {},
        "data": {}
      },
      "58cb2a2e-8fa3-4539-a29a-a116a751e997": {
        "id": "58cb2a2e-8fa3-4539-a29a-a116a751e997",
        "type": "tutormigo_content",
        "name": "Save Blog Draft",
        "position": {
          "x": 660,
          "y": 0
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "tutormigo_content_create_draft"
          },
          "apiKey": {
            "id": "apiKey",
            "type": "short-input",
            "value": "{{TUTORMIGO_API_KEY}}"
          },
          "typeKey": {
            "id": "typeKey",
            "type": "dropdown",
            "value": "blog"
          },
          "title": {
            "id": "title",
            "type": "short-input",
            "value": "<writeblogdraft.title>"
          },
          "excerpt": {
            "id": "excerpt",
            "type": "long-input",
            "value": "<writeblogdraft.excerpt>"
          },
          "tags": {
            "id": "tags",
            "type": "short-input",
            "value": "<writeblogdraft.tags>"
          },
          "category": {
            "id": "category",
            "type": "short-input",
            "value": "<start.category>"
          },
          "blocks": {
            "id": "blocks",
            "type": "long-input",
            "value": "<writeblogdraft.blocks>"
          },
          "heroImageId": {
            "id": "heroImageId",
            "type": "short-input",
            "value": "<writeblogdraft.heroImageId>"
          }
        },
        "outputs": {},
        "data": {}
      },
      "e1157a4b-4242-4ecd-81a0-cc41d379f8c6": {
        "id": "e1157a4b-4242-4ecd-81a0-cc41d379f8c6",
        "type": "agent",
        "name": "Write Social Captions",
        "position": {
          "x": 990,
          "y": 0
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "model": {
            "id": "model",
            "type": "combobox",
            "value": "gpt-5-mini"
          },
          "apiKey": {
            "id": "apiKey",
            "type": "short-input",
            "value": "{{OPENAI_API_KEY}}"
          },
          "messages": {
            "id": "messages",
            "type": "messages-input",
            "value": [
              {
                "role": "system",
                "content": "You write social posts that announce a new blog article for the brand that published it. Use only facts in the article title and excerpt. Never invent statistics, quotes or results. No Markdown. Do not include the link; it is added separately."
              },
              {
                "role": "user",
                "content": "Title: <writeblogdraft.title>\nExcerpt: <writeblogdraft.excerpt>\nTags: <writeblogdraft.tags>\n\nWrite: facebook (2-4 short sentences, 1-2 hashtags, ends with a call to read the article), linkedin (professional, 3-6 short paragraphs, up to 3 hashtags, under 1500 characters)."
              }
            ]
          },
          "responseFormat": {
            "id": "responseFormat",
            "type": "code",
            "value": "{\n  \"name\": \"social_captions\",\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"facebook\": {\n        \"type\": \"string\",\n        \"description\": \"Facebook Page post text\"\n      },\n      \"linkedin\": {\n        \"type\": \"string\",\n        \"description\": \"LinkedIn post text\"\n      }\n    },\n    \"required\": [\n      \"facebook\",\n      \"linkedin\"\n    ],\n    \"additionalProperties\": false\n  },\n  \"strict\": true\n}"
          }
        },
        "outputs": {},
        "data": {}
      },
      "e7fe285f-9f61-4675-b490-eb140c3b67aa": {
        "id": "e7fe285f-9f61-4675-b490-eb140c3b67aa",
        "type": "human_in_the_loop_v2",
        "name": "Approve Blog",
        "position": {
          "x": 1320,
          "y": 0
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "builderData": {
            "id": "builderData",
            "type": "response-format",
            "value": [
              {
                "id": "cc41d38d-a59d-4a60-b0c9-4bcab468c937",
                "name": "title",
                "type": "string",
                "value": "<writeblogdraft.title>",
                "collapsed": false
              },
              {
                "id": "fcb84a4e-55da-4ef0-b381-a997a95f1ffa",
                "name": "draftId",
                "type": "string",
                "value": "<saveblogdraft.id>",
                "collapsed": false
              },
              {
                "id": "4965c56e-0776-4b9b-a8d6-030ddc42e3df",
                "name": "excerpt",
                "type": "string",
                "value": "<writeblogdraft.excerpt>",
                "collapsed": false
              },
              {
                "id": "c0e95af1-12df-46ed-aee9-f2c80e930f61",
                "name": "heroImage",
                "type": "string",
                "value": "<writeblogdraft.heroImageUrl>",
                "collapsed": false
              },
              {
                "id": "737d58ef-6f9c-43ce-983e-964550577ee6",
                "name": "facebookPost",
                "type": "string",
                "value": "<writesocialcaptions.facebook>",
                "collapsed": false
              },
              {
                "id": "a5cf323d-42fe-4d5a-a201-b7227c47d094",
                "name": "linkedinPost",
                "type": "string",
                "value": "<writesocialcaptions.linkedin>",
                "collapsed": false
              }
            ]
          },
          "inputFormat": {
            "id": "inputFormat",
            "type": "input-format",
            "value": [
              {
                "id": "cfe698a1-54bb-477f-8e71-30931fe9a3c1",
                "name": "approved",
                "type": "boolean",
                "value": "",
                "collapsed": false
              },
              {
                "id": "abf5afb5-cce6-4991-b661-2228953ba989",
                "name": "notes",
                "type": "string",
                "value": "",
                "collapsed": false
              }
            ]
          }
        },
        "outputs": {},
        "data": {}
      },
      "693510a1-889e-42b7-a5b2-b8c99975d961": {
        "id": "693510a1-889e-42b7-a5b2-b8c99975d961",
        "type": "condition",
        "name": "Approved?",
        "position": {
          "x": 0,
          "y": 420
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "conditions": {
            "id": "conditions",
            "type": "condition-input",
            "value": "[{\"id\":\"693510a1-889e-42b7-a5b2-b8c99975d961-if\",\"title\":\"if\",\"value\":\"<approveblog.submission.approved> === true\"},{\"id\":\"693510a1-889e-42b7-a5b2-b8c99975d961-else\",\"title\":\"else\",\"value\":\"\"}]"
          }
        },
        "outputs": {},
        "data": {}
      },
      "c9c0d0ef-5960-4a15-a617-97ec854e9215": {
        "id": "c9c0d0ef-5960-4a15-a617-97ec854e9215",
        "type": "tutormigo_content",
        "name": "Publish Blog",
        "position": {
          "x": 330,
          "y": 420
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "tutormigo_content_publish"
          },
          "apiKey": {
            "id": "apiKey",
            "type": "short-input",
            "value": "{{TUTORMIGO_API_KEY}}"
          },
          "typeKey": {
            "id": "typeKey",
            "type": "dropdown",
            "value": "blog"
          },
          "postId": {
            "id": "postId",
            "type": "short-input",
            "value": "<saveblogdraft.id>"
          }
        },
        "outputs": {},
        "data": {}
      },
      "a967ba7d-1b7f-45ab-acb6-2a141981bf33": {
        "id": "a967ba7d-1b7f-45ab-acb6-2a141981bf33",
        "type": "facebook",
        "name": "Facebook Page",
        "position": {
          "x": 700,
          "y": 300
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "facebook_create_post"
          },
          "credential": {
            "id": "credential",
            "type": "oauth-input",
            "value": null
          },
          "pageId": {
            "id": "pageId",
            "type": "short-input",
            "value": ""
          },
          "message": {
            "id": "message",
            "type": "long-input",
            "value": "<writesocialcaptions.facebook>"
          },
          "link": {
            "id": "link",
            "type": "short-input",
            "value": "<publishblog.url>"
          }
        },
        "outputs": {},
        "data": {}
      },
      "708e6d30-a72a-4e4c-9bcc-0388f645982d": {
        "id": "708e6d30-a72a-4e4c-9bcc-0388f645982d",
        "type": "facebook",
        "name": "Facebook Page 2",
        "position": {
          "x": 700,
          "y": 520
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "facebook_create_post"
          },
          "credential": {
            "id": "credential",
            "type": "oauth-input",
            "value": null
          },
          "pageId": {
            "id": "pageId",
            "type": "short-input",
            "value": ""
          },
          "message": {
            "id": "message",
            "type": "long-input",
            "value": "<writesocialcaptions.facebook>"
          },
          "link": {
            "id": "link",
            "type": "short-input",
            "value": "<publishblog.url>"
          }
        },
        "outputs": {},
        "data": {}
      },
      "262fd272-d779-4059-b787-10b90119a93f": {
        "id": "262fd272-d779-4059-b787-10b90119a93f",
        "type": "linkedin",
        "name": "LinkedIn",
        "position": {
          "x": 700,
          "y": 740
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "operation": {
            "id": "operation",
            "type": "dropdown",
            "value": "share_post"
          },
          "credential": {
            "id": "credential",
            "type": "oauth-input",
            "value": null
          },
          "contentType": {
            "id": "contentType",
            "type": "dropdown",
            "value": "article"
          },
          "visibility": {
            "id": "visibility",
            "type": "dropdown",
            "value": "PUBLIC"
          },
          "text": {
            "id": "text",
            "type": "long-input",
            "value": "<writesocialcaptions.linkedin>"
          },
          "articleUrl": {
            "id": "articleUrl",
            "type": "short-input",
            "value": "<publishblog.url>"
          },
          "articleTitle": {
            "id": "articleTitle",
            "type": "short-input",
            "value": "<publishblog.title>"
          },
          "articleDescription": {
            "id": "articleDescription",
            "type": "long-input",
            "value": "<writeblogdraft.excerpt>"
          },
          "deliveryId": {
            "id": "deliveryId",
            "type": "short-input",
            "value": "tutormigo-blog-<saveblogdraft.id>"
          }
        },
        "outputs": {},
        "data": {}
      },
      "86219113-d84c-4b35-a403-45b6d6c563d8": {
        "id": "86219113-d84c-4b35-a403-45b6d6c563d8",
        "type": "function",
        "name": "Publish Summary",
        "position": {
          "x": 1070,
          "y": 520
        },
        "enabled": true,
        "horizontalHandles": true,
        "advancedMode": false,
        "triggerMode": false,
        "height": 0,
        "subBlocks": {
          "code": {
            "id": "code",
            "type": "code",
            "value": "return {\n  blogUrl: <publishblog.url>,\n  facebookPage: <facebookpage.permalink>,\n  facebookPage2: <facebookpage2.permalink>,\n  linkedin: <linkedin.postUrl>,\n}"
          }
        },
        "outputs": {},
        "data": {}
      }
    },
    "edges": [
      {
        "id": "952101b7-8fd9-43ec-900b-26d32505eecd-88d58817-6bf6-4628-8d35-7b1bb959551c",
        "source": "952101b7-8fd9-43ec-900b-26d32505eecd",
        "target": "88d58817-6bf6-4628-8d35-7b1bb959551c",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "88d58817-6bf6-4628-8d35-7b1bb959551c-58cb2a2e-8fa3-4539-a29a-a116a751e997",
        "source": "88d58817-6bf6-4628-8d35-7b1bb959551c",
        "target": "58cb2a2e-8fa3-4539-a29a-a116a751e997",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "58cb2a2e-8fa3-4539-a29a-a116a751e997-e1157a4b-4242-4ecd-81a0-cc41d379f8c6",
        "source": "58cb2a2e-8fa3-4539-a29a-a116a751e997",
        "target": "e1157a4b-4242-4ecd-81a0-cc41d379f8c6",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "e1157a4b-4242-4ecd-81a0-cc41d379f8c6-e7fe285f-9f61-4675-b490-eb140c3b67aa",
        "source": "e1157a4b-4242-4ecd-81a0-cc41d379f8c6",
        "target": "e7fe285f-9f61-4675-b490-eb140c3b67aa",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "e7fe285f-9f61-4675-b490-eb140c3b67aa-693510a1-889e-42b7-a5b2-b8c99975d961",
        "source": "e7fe285f-9f61-4675-b490-eb140c3b67aa",
        "target": "693510a1-889e-42b7-a5b2-b8c99975d961",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "693510a1-889e-42b7-a5b2-b8c99975d961-c9c0d0ef-5960-4a15-a617-97ec854e9215",
        "source": "693510a1-889e-42b7-a5b2-b8c99975d961",
        "target": "c9c0d0ef-5960-4a15-a617-97ec854e9215",
        "sourceHandle": "condition-693510a1-889e-42b7-a5b2-b8c99975d961-if",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "c9c0d0ef-5960-4a15-a617-97ec854e9215-a967ba7d-1b7f-45ab-acb6-2a141981bf33",
        "source": "c9c0d0ef-5960-4a15-a617-97ec854e9215",
        "target": "a967ba7d-1b7f-45ab-acb6-2a141981bf33",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "a967ba7d-1b7f-45ab-acb6-2a141981bf33-708e6d30-a72a-4e4c-9bcc-0388f645982d",
        "source": "a967ba7d-1b7f-45ab-acb6-2a141981bf33",
        "target": "708e6d30-a72a-4e4c-9bcc-0388f645982d",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "708e6d30-a72a-4e4c-9bcc-0388f645982d-262fd272-d779-4059-b787-10b90119a93f",
        "source": "708e6d30-a72a-4e4c-9bcc-0388f645982d",
        "target": "262fd272-d779-4059-b787-10b90119a93f",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      },
      {
        "id": "262fd272-d779-4059-b787-10b90119a93f-86219113-d84c-4b35-a403-45b6d6c563d8",
        "source": "262fd272-d779-4059-b787-10b90119a93f",
        "target": "86219113-d84c-4b35-a403-45b6d6c563d8",
        "sourceHandle": "source",
        "targetHandle": "target",
        "type": "default",
        "data": {}
      }
    ],
    "loops": {},
    "parallels": {},
    "variables": {}
  }
}
