.branch([
[
async ({ getStepResult }) =>
getStepResult(classifyContent).classification === "product_page",
expandProductDetailsWorkflow,
],
])
.map({
url: {
step: fetchUrlWorkflow,
path: "url",
},
content: {
step: expandProductDetailsWorkflow,
path: "content",
},
})
.branch([
[
async ({ getStepResult }) =>
getStepResult(classifyContent).classification === "product_page",
expandProductDetailsWorkflow,
],
])
.map({
url: {
step: fetchUrlWorkflow,
path: "url",
},
content: {
step: expandProductDetailsWorkflow,
path: "content",
},
})