A decision step is a point where the Workflow judges the results and decides what happens next. It is what turns a Workflow from something that always does the same thing into something that responds to what it found.The mechanics are simple. Steps can be marked conditional, which means they do not run on their own. A decision step then reads the run’s results and decides whether to release them. Nothing meaningful happened this week, and the report is written but the email never goes out. Churn crossed the line you care about, and it does.You write the criteria in plain language, the same way you write a notification preference. The difference is scope: a notification preference gates one email, while a decision step can gate several steps at once, including reports and exports rather than just notifications.A decision runs at one of two points:
After dependencies, before the outputs are generated. Use this to skip producing something entirely when it is not warranted.
After reports, once the artifacts exist. Use this when the judgment depends on reading the finished output.
You control what the decision gets to look at: metric values, notebook outputs, and for late decisions the finished reports and exports. Give it the context the judgment actually needs and no more, since a decision reading everything is slower and no sharper.
If all you want is “email me only when something changed”, write it as a
notification preference instead. See Notification
Preference. Reach for a decision
step when the condition has to gate more than one thing.
A Workflow normally runs a notebook. That is the recommended default and what you get from the Create Workflow dialog.There is a second option. If you have a set of tracked metrics and what you want is recurring reporting on those specific numbers, a Workflow can read the metrics directly instead of re-deriving them in a notebook. The Workflow becomes a reporting layer over numbers Orion already tracks, rather than an analysis of its own.
Each metric in the Workflow has a refresh setting, and it is off by
default. With refresh off, the run uses the metric’s last known value rather
than querying for a current one, which means a daily Workflow can email
yesterday’s number without anything appearing to be wrong. Turn refresh on
for any metric whose freshness matters.
This is the main thing to get right when using metrics as a source. A notebook-sourced Workflow queries your data on every run by definition. A metric-sourced one only does if you tell it to.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Orion Public Docs","description":"Documentation for Orion, the collaborative analytics platform built by Gravity (bygravity.com). Learn how to connect data sources, run analyses in natural language, build shared Context, and turn insights into dashboards, reports, and scheduled workflows.","colors":{"primary":"#0d9488","light":"#14b8a6","dark":"#134e4a"},"logo":{"light":"https://mintcdn.com/gravity-8db392ea/M5QrrLg7uEV27J6q/logo/orion-logo-charcoal.svg?fit=max\u0026auto=format\u0026n=M5QrrLg7uEV27J6q\u0026q=85\u0026s=4e64d863f48c2a81bdbbea46b631b952","dark":"https://mintcdn.com/gravity-8db392ea/M5QrrLg7uEV27J6q/logo/orion-logo-dark.svg?fit=max\u0026auto=format\u0026n=M5QrrLg7uEV27J6q\u0026q=85\u0026s=fb58ab7b667aad66b5b5b0a9839da9dc"},"favicon":"https://mintcdn.com/gravity-8db392ea/4asdrY4OKG8YwKh8/favicon.svg?fit=max\u0026auto=format\u0026n=4asdrY4OKG8YwKh8\u0026q=85\u0026s=54889911a86c33fc393a262d1e8c9075","navbar":{"links":[{"href":"mailto:help@bygravity.com","label":"Support"}],"primary":{"type":"button","label":"Website","href":"https://bygravity.com"}},"footer":{"socials":{"x":"https://x.com/OrionByGravity","linkedin":"https://linkedin.com/company/gravity-foundation"}},"seo":{"organization":{"name":"Gravity","url":"https://bygravity.com","logo":"https://bygravity.com/gravity-logo.svg"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"markdown":{"instructions":"Orion is a collaborative analytics platform built by Gravity (bygravity.com). It connects to data warehouses, to Looker and dbt for existing business logic, and to a small set of external-context sources, and it lets teams ask questions in natural language to get shared analyses, dashboards, reports, and slide decks. The Connecting Data Sources page is the authoritative list of supported sources. When referencing Orion features, always link to the relevant documentation page. Orion is not open-source; it is a commercial SaaS product accessed at runorion.com."},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://bygravity.com"},{"anchor":"Blog","icon":"newspaper","href":"https://bygravity.com/resources"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gravity-8db392ea","hasAudioNarration":false,"actualSubdomain":"gravity-8db392ea","customDomains":["docs.runorion.com"],"gitSource":{"type":"github","owner":"gravity-foundation","repo":"orion-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ade7b47bcfaf11b9abbd847","collectionId":"98b24c05-621e-4c43-b7ba-3383a6ca807d","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ade7b47bcfaf11b9abbd847"},"entitlements":{},"buildId":"6aded49b256b020fc349eb84","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Docs","count":53},{"language":"default","tag":"Chat","count":7},{"language":"default","tag":"Configuration","count":6},{"language":"default","tag":"Core Concepts","count":6},{"language":"default","tag":"Dashboards","count":5},{"language":"default","tag":"Context","count":5},{"language":"default","tag":"MCP Server","count":5},{"language":"default","tag":"Workflows","count":5},{"language":"default","tag":"Profile \u0026 Settings","count":4},{"language":"default","tag":"Metrics","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"page-status.css","content":"body:has([data-page-status=beta]) #page-title::before{content:\"Beta\";display:inline-block;vertical-align:middle;margin-right:.75rem;padding:.125rem .5rem;border:1px solid rgba(13,148,136,.25);border-radius:.375rem;background:rgba(13,148,136,.08);color:#0f766e;font-size:.75rem;font-weight:600;line-height:1.25rem;letter-spacing:0;transform:translateY(-.15rem)}html.dark body:has([data-page-status=beta]) #page-title::before{border-color:rgba(45,212,191,.25);background:rgba(45,212,191,.08);color:#5eead4}"}],"page":{"pagePath":"workflows/advanced","slug":"/workflows/advanced","pageMetadata":{"title":"Advanced Workflows","description":"Decision steps and using metrics as the source","icon":"code-branch","href":"/workflows/advanced"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Decision steps and using metrics as the source\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Most Workflows are a straight line: run the analysis, produce the output, email it. These two features are for the ones that are not.`}),`\n`,_jsx(Heading,{level:`2`,id:`decision-steps`,children:`Decision Steps`}),`\n`,_jsx(_components.p,{children:`A decision step is a point where the Workflow judges the results and decides what happens next. It is what turns a Workflow from something that always does the same thing into something that responds to what it found.`}),`\n`,_jsxs(_components.p,{children:[`The mechanics are simple. Steps can be marked `,_jsx(_components.strong,{children:`conditional`}),`, which means they do not run on their own. A decision step then reads the run’s results and decides whether to release them. Nothing meaningful happened this week, and the report is written but the email never goes out. Churn crossed the line you care about, and it does.`]}),`\n`,_jsx(_components.p,{children:`You write the criteria in plain language, the same way you write a notification preference. The difference is scope: a notification preference gates one email, while a decision step can gate several steps at once, including reports and exports rather than just notifications.`}),`\n`,_jsx(_components.p,{children:`A decision runs at one of two points:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`After dependencies`}),`, before the outputs are generated. Use this to skip producing something entirely when it is not warranted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`After reports`}),`, once the artifacts exist. Use this when the judgment depends on reading the finished output.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You control what the decision gets to look at: metric values, notebook outputs, and for late decisions the finished reports and exports. Give it the context the judgment actually needs and no more, since a decision reading everything is slower and no sharper.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If all you want is “email me only when something changed”, write it as a\nnotification preference instead. See `,_jsx(_components.a,{href:`/workflows/outputs#notification-preference`,children:`Notification\nPreference`}),`. Reach for a decision\nstep when the condition has to gate more than one thing.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`using-metrics-as-the-source`,children:`Using Metrics as the Source`}),`\n`,_jsx(_components.p,{children:`A Workflow normally runs a notebook. That is the recommended default and what you get from the Create Workflow dialog.`}),`\n`,_jsx(_components.p,{children:`There is a second option. If you have a set of tracked metrics and what you want is recurring reporting on those specific numbers, a Workflow can read the metrics directly instead of re-deriving them in a notebook. The Workflow becomes a reporting layer over numbers Orion already tracks, rather than an analysis of its own.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Each metric in the Workflow has a `,_jsx(_components.strong,{children:`refresh`}),` setting, and it is off by\ndefault. With refresh off, the run uses the metric’s last known value rather\nthan querying for a current one, which means a daily Workflow can email\nyesterday’s number without anything appearing to be wrong. Turn refresh on\nfor any metric whose freshness matters.`]})}),`\n`,_jsx(_components.p,{children:`This is the main thing to get right when using metrics as a source. A notebook-sourced Workflow queries your data on every run by definition. A metric-sourced one only does if you tell it to.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Advanced Workflows","description":"Decision steps and using metrics as the source","icon":"code-branch","href":"/workflows/advanced"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Decision Steps","slug":"decision-steps","depth":2,"children":[]},{"title":"Using Metrics as the Source","slug":"using-metrics-as-the-source","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gravity-8db392ea","siteName":"Orion Public Docs","title":"Advanced Workflows - Orion Public Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-27T18:29:30.974Z","originalFileLocation":"workflows/advanced.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Decision steps and using metrics as the source\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orion Public Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Advanced Workflows - Orion Public Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Decision steps and using metrics as the source\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orion Public Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runorion.com/workflows/advanced\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gravity-8db392ea.mintlify.app/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Advanced+Workflows\u0026amp;description=Decision+steps+and+using+metrics+as+the+source\u0026amp;theme=7b51b2ce58dd2314bb609478\u0026amp;signature=05eb29ff6e6f4b8474c0c5da1df297f329b75e2b192bb2f8caeebce86fb8b3dd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Advanced Workflows - Orion Public Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Decision steps and using metrics as the source\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gravity-8db392ea.mintlify.app/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Advanced+Workflows\u0026amp;description=Decision+steps+and+using+metrics+as+the+source\u0026amp;theme=7b51b2ce58dd2314bb609478\u0026amp;signature=05eb29ff6e6f4b8474c0c5da1df297f329b75e2b192bb2f8caeebce86fb8b3dd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gravity-8db392ea/UtPVDZ47XLdW1r-w/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orion Public Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0d9488\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.runorion.com/workflows/advanced\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/workflows/advanced.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://bygravity.com/#organization\",\"name\":\"Gravity\",\"url\":\"https://bygravity.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://bygravity.com/gravity-logo.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.runorion.com#website\",\"name\":\"Orion Public Docs\",\"url\":\"https://docs.runorion.com\",\"publisher\":{\"@id\":\"https://bygravity.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.runorion.com/workflows/advanced#webpage\",\"url\":\"https://docs.runorion.com/workflows/advanced\",\"name\":\"Advanced Workflows\",\"description\":\"Decision steps and using metrics as the source\",\"dateModified\":\"2026-07-27T18:29:30.974Z\",\"isPartOf\":{\"@id\":\"https://docs.runorion.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runorion.com/workflows/advanced#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runorion.com/workflows/advanced#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workflows\",\"item\":\"https://docs.runorion.com/workflows/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced Workflows\",\"item\":\"https://docs.runorion.com/workflows/advanced\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.runorion.com/workflows/advanced#article\",\"headline\":\"Advanced Workflows\",\"name\":\"Advanced Workflows\",\"description\":\"Decision steps and using metrics as the source\",\"url\":\"https://docs.runorion.com/workflows/advanced\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runorion.com/workflows/advanced#webpage\"},\"dateModified\":\"2026-07-27T18:29:30.974Z\",\"publisher\":{\"@id\":\"https://bygravity.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.runorion.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orion Public Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Orion Public Docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://bygravity.com"},{"anchor":"Blog","icon":"newspaper","href":"https://bygravity.com/resources"}]},"tabs":[{"tab":"Docs","groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Orion","icon":"compass","href":""},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Data Sources","pages":[{"title":"Data Sources Management","icon":"database","href":"/configuration/data-sources"},{"title":"Connecting Data Sources","icon":"plug","href":"/connecting-data-sources"}]},{"group":"Core Concepts","pages":[{"title":"Projects","icon":"folder","href":"/core-concepts/projects"},{"title":"Warp Drive","icon":"bolt","href":"/core-concepts/warp-drive"},{"title":"Context","icon":"book-open","href":"/core-concepts/knowledge-base"},{"title":"Workflows","icon":"repeat","href":"/core-concepts/workflows"},{"title":"Search","icon":"magnifying-glass","href":"/core-concepts/search"},{"title":"Portals","icon":"door-open","href":"/core-concepts/portals"}]},{"group":"Profile \u0026 Settings","pages":[{"title":"User Onboarding \u0026 Invitations","icon":"user-plus","href":"/profile-settings/user-onboarding"},{"title":"Profile Management","icon":"user","href":"/profile-settings/profile-management"},{"title":"Integrations \u0026 Connectors","icon":"plug-circle-plus","href":"/profile-settings/integrations"},{"title":"Email Digest","icon":"envelope","href":"/profile-settings/email-digest"}]},{"group":"Chat","pages":[{"title":"Basics \u0026 Navigation","icon":"map","href":"/chat/basics-navigation"},{"title":"Running Analyses","icon":"chart-mixed","href":"/chat/running-analyses"},{"title":"Share Chat Conversations","icon":"share-nodes","href":"/chat/share-conversations"},{"title":"Rooms","icon":"users","href":"/chat/rooms"},{"title":"File Uploads","icon":"file-upload","href":"/chat/file-uploads"},{"title":"Memory","icon":"brain","href":"/chat/memory"},{"title":"Best Practices","icon":"lightbulb","href":"/chat/best-practices"}]},{"group":"Metrics","pages":[{"title":"Metrics","icon":"arrow-trend-up","href":"/metrics/overview"},{"title":"Managing Metrics","icon":"sliders","href":"/metrics/manage"},{"title":"Metrics Catalog","icon":"gauge","href":"/metrics/catalog"}]},{"group":"Dashboards","pages":[{"title":"Dashboards","icon":"table-columns","href":"/dashboards/overview"},{"title":"Filter and Explore","icon":"filter","href":"/dashboards/explore"},{"title":"Investigate","icon":"magnifying-glass-chart","href":"/dashboards/investigate"},{"title":"Edit a Dashboard","icon":"pen-to-square","href":"/dashboards/edit"},{"title":"Publish and Share","icon":"share-nodes","href":"/dashboards/publish"}]},{"group":"Workflows","pages":[{"title":"Create a Workflow","icon":"plus","href":"/workflows/create"},{"title":"Outputs and Delivery","icon":"paper-plane","href":"/workflows/outputs"},{"title":"Manage Workflows","description":"Schedules, run history, change history, and editing a Workflow after it exists","icon":"sliders","href":"/workflows/manage"},{"title":"Advanced Workflows","icon":"code-branch","href":"/workflows/advanced"},{"title":"Workflow Best Practices","description":"How to build automations that keep working","icon":"lightbulb","href":"/workflows/best-practices"}]},{"group":"Context","pages":[{"title":"Context Pages","icon":"book","href":"/knowledge-base/overview"},{"title":"Creating \u0026 Managing Pages","icon":"square-plus","href":"/knowledge-base/creating-pages"},{"title":"External Wiki Integrations","icon":"puzzle-piece","href":"/knowledge-base/wiki-integrations"},{"title":"Best Practices","icon":"list-check","href":"/knowledge-base/best-practices"},{"title":"Metrics Catalog","icon":"signs-post","href":"/knowledge-base/metrics-catalog"}]},{"group":"Configuration","pages":[{"title":"Global Configuration","icon":"gear","href":"/configuration/global-configuration"},{"title":"Company Information","icon":"building","href":"/configuration/company-information"},{"title":"User Management","icon":"users","href":"/configuration/user-management"},{"title":"Groups","icon":"user-group","href":"/configuration/groups"},{"title":"Sudo","icon":"user-secret","href":"/configuration/sudo"},{"title":"SSO","icon":"key","href":"/configuration/sso"}]},{"group":"Version Control","pages":[{"title":"Export Orion Snapshots to Git","sidebarTitle":"Git snapshots","tag":"Beta","icon":"code-merge","href":"/version-control/sync-to-git"},{"title":"Export a Project","icon":"file-export","href":"/version-control/export"},{"title":"Import a Project","icon":"file-import","href":"/version-control/import"}]},{"group":"MCP Server","pages":[{"title":"MCP Server","icon":"server","href":"/mcp/overview"},{"title":"Setup","icon":"wrench","href":"/mcp/setup"},{"title":"Gemini Enterprise","icon":"google","href":"/mcp/gemini-enterprise"},{"title":"Tools Reference","icon":"screwdriver-wrench","href":"/mcp/tools"},{"title":"Troubleshooting","icon":"bug","href":"/mcp/troubleshooting"}]}]}]},"title":"Advanced Workflows - Orion Public Docs","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}