{
  "openruna_format": "flow-graph-v1",
  "title": "Email mailbox as Todoist tasks",
  "slug": "email-mailbox-as-todoist-tasks",
  "source_filename": "1749_Todoist_Schedule_Send_Scheduled.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Mark As Read",
      "name": "Mark As Read",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Star",
      "name": "Star",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Get Starred From Inbox",
      "name": "Get Starred From Inbox",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Get Unread From Inbox",
      "name": "Get Unread From Inbox",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "If Task Not Exist",
      "name": "If Task Not Exist",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Structure Output Todoist Ready",
      "name": "Structure Output Todoist Ready",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "If AI responded properly",
      "name": "If AI responded properly",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Create Todoist Task",
      "name": "Create Todoist Task",
      "integration": "todoist",
      "kind": "action"
    },
    {
      "id": "Get Full Message",
      "name": "Get Full Message",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Summarize Message",
      "name": "Summarize Message",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Enrich Emails With Tasks",
      "name": "Enrich Emails With Tasks",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Enrich Tasks with Emails",
      "name": "Enrich Tasks with Emails",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "If Email Unstarred (Not Exist)",
      "name": "If Email Unstarred (Not Exist)",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Close Task",
      "name": "Close Task",
      "integration": "todoist",
      "kind": "action"
    },
    {
      "id": "Email Trigger (IMAP)",
      "name": "Email Trigger (IMAP)",
      "integration": "emailReadImap",
      "kind": "action"
    },
    {
      "id": "Schedule Trigger",
      "name": "Schedule Trigger",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Merge Starred and Unread Messages",
      "name": "Merge Starred and Unread Messages",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Get Open Tasks",
      "name": "Get Open Tasks",
      "integration": "todoist",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Mark As Read",
      "to": "Star"
    },
    {
      "from": "Get Open Tasks",
      "to": "Enrich Emails With Tasks"
    },
    {
      "from": "Get Open Tasks",
      "to": "Enrich Tasks with Emails"
    },
    {
      "from": "Get Full Message",
      "to": "Summarize Message"
    },
    {
      "from": "Schedule Trigger",
      "to": "No Operation, do nothing"
    },
    {
      "from": "If Task Not Exist",
      "to": "Get Full Message"
    },
    {
      "from": "Summarize Message",
      "to": "If AI responded properly"
    },
    {
      "from": "Email Trigger (IMAP)",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Get Unread From Inbox",
      "to": "Mark As Read"
    },
    {
      "from": "Get Unread From Inbox",
      "to": "Merge Starred and Unread Messages"
    },
    {
      "from": "Get Starred From Inbox",
      "to": "Merge Starred and Unread Messages"
    },
    {
      "from": "Enrich Emails With Tasks",
      "to": "If Task Not Exist"
    },
    {
      "from": "Enrich Tasks with Emails",
      "to": "If Email Unstarred (Not Exist)"
    },
    {
      "from": "If AI responded properly",
      "to": "Create Todoist Task"
    },
    {
      "from": "No Operation, do nothing",
      "to": "Get Unread From Inbox"
    },
    {
      "from": "No Operation, do nothing",
      "to": "Get Starred From Inbox"
    },
    {
      "from": "No Operation, do nothing",
      "to": "Get Open Tasks"
    },
    {
      "from": "If Email Unstarred (Not Exist)",
      "to": "Close Task"
    },
    {
      "from": "Merge Starred and Unread Messages",
      "to": "Enrich Emails With Tasks"
    },
    {
      "from": "Merge Starred and Unread Messages",
      "to": "Enrich Tasks with Emails"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "No Operation, do nothing"
    }
  ]
}