{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "E585969B-1528-4ED9-AFE9-C882A81A900A",
    "name": "Worklittle: summary on every new applicant"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -58.97172236503856,
        "y": 4.010282776349612,
        "zoom": 0.9
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When someone applies to one of your jobs on your Worklittle careers page, matches the application to its posting, reads the candidate, has OpenAI write a short fit summary, saves it as a note on the candidate tied to the job, and asks the hiring manager in Slack. The manager's button moves the application to phone screening or Rejected, or leaves it in Applied.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When someone applies on the careers page, writes a fit summary to the candidate in Worklittle and asks the hiring manager in Slack what stage comes next.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Summarize the fit Result"
          },
          "tools": {},
          "position": {
            "x": 990,
            "y": 219
          }
        },
        "flowElementId": "57EAB090-E9AE-436C-A928-BB1828EB0F38",
        "groupId": null,
        "id": "E338CD0A-0237-434D-8A64-4AFFF674DCE7",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "gpt-5.5",
          "aiProvider": "OPEN_AI",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "OpenAI key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "OpenAI key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Fit summary",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read new job applicants for a hiring manager. You get the job posting and the candidate's Worklittle profile with their application answers. Reply with JSON only, with these fields:\nheadline: one line on how the candidate fits the posting, for example \"5 years on payments APIs, matches the Postgres and TypeScript asks, no on-call experience listed\"\nsummary: three to five plain sentences on the fit: the experience and skills that match what the posting asks for, anything the posting asks for that the profile does not show, and anything in the application answers worth a question on a first call\nKeep to what the profile and posting say. Do not score the candidate and do not recommend a stage; the hiring manager decides."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Job posting ("
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Matched",
                "subPathSegments": [
                  {
                    "key": "jobTitle",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "):\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Matched",
                "subPathSegments": [
                  {
                    "key": "posting",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nCandidate profile:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Candidate",
                "subPathSegments": [
                  {
                    "key": "profile",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Summarize the fit",
        "nextElementIds": [
          "6E9CF258-E168-4355-A9D6-7B5CF3C19428"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when someone applies to one of your jobs on your careers page. Event: candidate.application_submitted.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::onCandidateApplicationSubmitted",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::onCandidateApplicationSubmitted",
          "legacyElementId": null,
          "methodName": "onCandidateApplicationSubmitted",
          "position": {
            "x": 154,
            "y": 40
          }
        },
        "flowElementId": "2E0FDAE5-ED69-44E5-8F53-9ECC3C00780A",
        "groupId": null,
        "id": "A540028D-BBF0-4E74-9873-BB601C36BCB6",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onCandidateApplicationSubmitted",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Application event",
          "scope": "SINGLE_APP",
          "serviceId": "worklittle",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New application in Worklittle",
        "nextElementIds": [
          "EC80F7C1-458B-4394-9F2C-5D083098C8D5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Match the application to its job Result"
          },
          "position": {
            "x": 1315,
            "y": 49
          }
        },
        "flowElementId": "2D697224-81AF-46CD-BA42-6192E2371401",
        "groupId": null,
        "id": "85AA3160-07B1-4A8E-BF53-718AABCDAA46",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "event",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Application event",
                    "subPathSegments": null,
                    "type": "TRIGGER_DATA",
                    "value": "A540028D-BBF0-4E74-9873-BB601C36BCB6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "recent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Recent applications",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "EC80F7C1-458B-4394-9F2C-5D083098C8D5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postings",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Job postings",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "ECD27AE3-D7FA-4FC0-9EB0-C3338384B6B6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "// Worklittle does not document the fields inside a webhook's data yet, so look for the ids in the likely places.\nconst d = (event && event.data) || {};\nconst pick = (...v) => v.find(x => x !== undefined && x !== null && x !== '');\nconst appId = pick(d.application_id, d.candidate_job_id, d.application && d.application.id);\nconst candId = pick(d.candidate_id, d.candidate && d.candidate.id);\nconst jobId = pick(d.posted_job_id, d.job_id, d.job && d.job.id);\nconst apps = (recent && recent.applications) || [];\nconst app = apps.find(a => appId && String(a.id) === String(appId))\n  || apps.find(a => candId && String(a.candidate_id) === String(candId) && (!jobId || String(a.job_id) === String(jobId)))\n  || (!appId && !candId ? apps.find(a => a.stage_key === 'applied') : null);\nif (!app) throw new Error('No recent Worklittle application matches this event: ' + JSON.stringify(d).slice(0, 300));\nconst job = ((postings && postings.jobs) || []).find(j => String(j.id) === String(app.job_id)) || {};\nconst { application_fields, ...posting } = job;\nreturn {\n  applicationId: String(app.id),\n  candidateId: String(app.candidate_id),\n  jobId: String(app.job_id),\n  jobTitle: job.title || (app.job && app.job.title) || '',\n  posting: JSON.stringify(posting),\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Matched",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Match the application to its job",
        "nextElementIds": [
          "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists every job posting in your Worklittle Business organization that the key can see, in one response.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::listBusinessJobs",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read your job postings Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::listBusinessJobs",
          "legacyElementId": null,
          "methodName": "listBusinessJobs",
          "position": {
            "x": 981,
            "y": 40
          }
        },
        "flowElementId": "A57102AE-05B6-4EF0-8A16-046D32051324",
        "groupId": null,
        "id": "ECD27AE3-D7FA-4FC0-9EB0-C3338384B6B6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "sort",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortColumn",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listBusinessJobs",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Job postings",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read your job postings",
        "nextElementIds": [
          "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the message for the hiring manager Result"
          },
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "E8C8D473-A492-4252-B80E-E26876D38163",
        "groupId": null,
        "id": "AA3E4B73-D5A3-48FC-9BCB-63ACB46CC5B8",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Candidate",
                    "subPathSegments": [
                      {
                        "key": "profile",
                        "optional": false
                      },
                      {
                        "key": "candidate",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Candidate",
                    "subPathSegments": [
                      {
                        "key": "profile",
                        "optional": false
                      },
                      {
                        "key": "candidate",
                        "optional": false
                      },
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "linkedin",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Candidate",
                    "subPathSegments": [
                      {
                        "key": "profile",
                        "optional": false
                      },
                      {
                        "key": "candidate",
                        "optional": false
                      },
                      {
                        "key": "linkedin_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "jobTitle",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "jobTitle",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "headline",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Fit summary",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "headline",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E338CD0A-0237-434D-8A64-4AFFF674DCE7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "summary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Fit summary",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E338CD0A-0237-434D-8A64-4AFFF674DCE7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst who = linkedin ? `<${linkedin}|${name}>` : name;\nconst lines = [\n  `*New applicant for ${jobTitle}: ${who}*${email ? ` (${email})` : ''}`,\n  `_${headline}_`,\n  summary,\n  'The summary is saved as a note on the candidate in Worklittle.',\n].filter(Boolean);\nreturn {\n  text: `New applicant for ${jobTitle}: ${name}`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Move to phone screening' }, url: link('advance') },\n      { type: 'button', style: 'danger', text: { type: 'plain_text', text: 'Reject' }, url: link('reject') },\n      { type: 'button', text: { type: 'plain_text', text: 'Leave in Applied' }, url: link('keep') },\n    ] },\n  ],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Manager card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the message for the hiring manager",
        "nextElementIds": [
          "E41CEB5C-F7EB-4EDE-8675-0E51BD9B8591"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists applications (one candidate on one job) the key can see, most recently updated first. Pass meta.next_cursor as Cursor for the next page.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::listApplications",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read recent applications Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::listApplications",
          "legacyElementId": null,
          "methodName": "listApplications",
          "position": {
            "x": 594,
            "y": 40
          }
        },
        "flowElementId": "C33CE753-D861-4215-A74D-1840EDFE59FA",
        "groupId": null,
        "id": "EC80F7C1-458B-4394-9F2C-5D083098C8D5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "jobId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "candidateId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "stageKey",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 25
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listApplications",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Recent applications",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read recent applications",
        "nextElementIds": [
          "ECD27AE3-D7FA-4FC0-9EB0-C3338384B6B6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 553,
            "y": 389
          }
        },
        "flowElementId": "B672001D-76EC-46EB-928E-A44A4606250A",
        "groupId": null,
        "id": "E355E624-A626-4077-93C9-3799804F66B7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Manager answer",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the hiring manager's answer",
        "nextElementIds": [
          "2CD89353-6B98-4935-8F0D-AED00F84B411"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "be1b321e-d30b-495e-b45b-bfab920f62b3": "SIMPLE",
            "470be11f-73d2-4d4b-a6da-b8df68400f6b": "SIMPLE"
          },
          "position": {
            "x": 964,
            "y": 389
          }
        },
        "flowElementId": "99A5AA3A-6362-4BC7-AE38-799317F020F1",
        "groupId": null,
        "id": "2CD89353-6B98-4935-8F0D-AED00F84B411",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Manager pick",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "be1b321e-d30b-495e-b45b-bfab920f62b3",
              "label": "Move to phone screening",
              "nextComponents": [
                {
                  "componentId": "6FC08805-A907-457D-89EA-EA7DF88D7C60",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "advance"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "470be11f-73d2-4d4b-a6da-b8df68400f6b",
              "label": "Reject",
              "nextComponents": [
                {
                  "componentId": "5D46958C-95E7-4233-B244-1149F7461938",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "reject"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "90baa905-5a86-4e92-981a-78b3abcd464f",
              "label": "Everything Else",
              "nextComponents": [],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Manager answer",
                "subPathSegments": [
                  {
                    "key": "decision",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "E355E624-A626-4077-93C9-3799804F66B7"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "What did the manager pick?",
        "nextElementIds": [
          "6FC08805-A907-457D-89EA-EA7DF88D7C60",
          "5D46958C-95E7-4233-B244-1149F7461938"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Moves an application to another stage, the same as dragging it in the app. Moving it to Employee adds the person to Employees. Fires the candidate.stage_changed webhook.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::moveApplicationStage",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "stageKey": {
              "phone_screening": "Phone screening"
            }
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move to phone screening Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::moveApplicationStage",
          "legacyElementId": null,
          "methodName": "moveApplicationStage",
          "position": {
            "x": 1334,
            "y": 380
          }
        },
        "flowElementId": "F2683E35-60C1-4448-92C0-64C66FF8B49A",
        "groupId": null,
        "id": "6FC08805-A907-457D-89EA-EA7DF88D7C60",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "applicationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "applicationId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "stageKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "phone_screening"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendEmail",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "moveApplicationStage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Moved forward",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move to phone screening",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a note to a candidate, optionally tied to one job. Fires the candidate.note_created webhook.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::addCandidateNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Save the summary on the candidate Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::addCandidateNote",
          "legacyElementId": null,
          "methodName": "addCandidateNote",
          "position": {
            "x": 557,
            "y": 210
          }
        },
        "flowElementId": "A011A657-CBEB-4E7E-85C6-93D7D913B563",
        "groupId": null,
        "id": "6E9CF258-E168-4355-A9D6-7B5CF3C19428",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "candidateId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "candidateId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "note",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Fit summary for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "jobTitle",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ": "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Fit summary",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "headline",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E338CD0A-0237-434D-8A64-4AFFF674DCE7"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Fit summary",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E338CD0A-0237-434D-8A64-4AFFF674DCE7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "jobId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "jobId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addCandidateNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Saved note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Save the summary on the candidate",
        "nextElementIds": [
          "AA3E4B73-D5A3-48FC-9BCB-63ACB46CC5B8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Moves an application to another stage, the same as dragging it in the app. Moving it to Employee adds the person to Employees. Fires the candidate.stage_changed webhook.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::moveApplicationStage",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "stageKey": {
              "rejected": "Rejected"
            }
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move to Rejected Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::moveApplicationStage",
          "legacyElementId": null,
          "methodName": "moveApplicationStage",
          "position": {
            "x": 1351,
            "y": 510
          }
        },
        "flowElementId": "CF81FFDD-A507-467D-BC73-792A2BF3842F",
        "groupId": null,
        "id": "5D46958C-95E7-4233-B244-1149F7461938",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "applicationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "applicationId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "stageKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "rejected"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendEmail",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "moveApplicationStage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Moved to rejected",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move to Rejected",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the hiring manager Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 172,
            "y": 380
          }
        },
        "flowElementId": "01AF8D7A-23A9-49AA-8E4F-361C42B2ADC3",
        "groupId": null,
        "id": "E41CEB5C-F7EB-4EDE-8675-0E51BD9B8591",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Manager card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AA3E4B73-D5A3-48FC-9BCB-63ACB46CC5B8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Manager card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AA3E4B73-D5A3-48FC-9BCB-63ACB46CC5B8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to manager",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the hiring manager",
        "nextElementIds": [
          "E355E624-A626-4077-93C9-3799804F66B7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Returns a candidate's full profile: contact details, résumé, work history, education, skills, the jobs they are on, files and notes.",
          "elementId": "EXTENSION:::SHARED:::default:::worklittle:::getCandidate",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the candidate Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::worklittle:::getCandidate",
          "legacyElementId": null,
          "methodName": "getCandidate",
          "position": {
            "x": 1351,
            "y": 210
          }
        },
        "flowElementId": "44512BA3-B69E-41DE-89B7-61B0C9A2334F",
        "groupId": null,
        "id": "2E1BB246-CC49-4FEE-AEA6-4C36EF94AB90",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "candidateId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Matched",
                    "subPathSegments": [
                      {
                        "key": "candidateId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "85AA3160-07B1-4A8E-BF53-718AABCDAA46"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeAnswers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getCandidate",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Candidate",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "worklittle",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the candidate",
        "nextElementIds": [
          "E338CD0A-0237-434D-8A64-4AFFF674DCE7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "A540028D-BBF0-4E74-9873-BB601C36BCB6",
    "groups": [],
    "id": "6973719E-6316-458A-B543-D3CC7B4631C0",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "Your OpenAI key, used to write the fit summary.",
          "error": null,
          "name": "OpenAI key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the hiring manager's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:41:37.436Z"
}
