Send it back as If-Match when you change the flow.
Example:
"3f9a1c0d7e2b4a61"
stats
object | null
Example:
{ "total_sent": 0, "total_triggered": 0 }
created_at
string<date-time>
updated_at
string<date-time>
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FlowIQ API Documentation","colors":{"primary":"#C4520F","light":"#F36E21","dark":"#C4520F"},"logo":{"light":"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/light-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=15f1f6f316bbdf2d7518f3a9d2332758","dark":"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/dark-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=67fbd1065c93902594f3149a6f454259"},"favicon":"https://mintcdn.com/flowapt/YLAUShXn-JEVOqCc/favicon.png?fit=max\u0026auto=format\u0026n=YLAUShXn-JEVOqCc\u0026q=85\u0026s=16459ff4684135640c651a7182c643a7","api":{"openapi":["flowiq-api-reference/openapi.json","flowiq-api-reference/openapi-send-text.json","flowiq-api-reference/openapi-send-image.json","flowiq-api-reference/openapi-send-video.json","flowiq-api-reference/openapi-send-audio.json","flowiq-api-reference/openapi-send-document.json","flowiq-api-reference/openapi-send-location.json","flowiq-api-reference/openapi-send-contacts.json","flowiq-api-reference/openapi-send-interactive-buttons.json","flowiq-api-reference/openapi-send-interactive-list.json","flowiq-api-reference/openapi-send-reaction.json","flowiq-api-reference/openapi-send-typing.json","flowiq-api-reference/openapi-send-read.json","flowiq-api-reference/openapi-send-template.json","flowiq-api-reference/openapi-broadcast-analytics.json","flowiq-api-reference/openapi-instagram.json","flowiq-api-reference/openapi-instagram-send-text.json","flowiq-api-reference/openapi-instagram-send-image.json","flowiq-api-reference/openapi-instagram-send-video.json","flowiq-api-reference/openapi-instagram-send-audio.json","flowiq-api-reference/openapi-messenger.json","flowiq-api-reference/openapi-messenger-send-text.json","flowiq-api-reference/openapi-messenger-send-image.json","flowiq-api-reference/openapi-messenger-send-video.json","flowiq-api-reference/openapi-messenger-send-audio.json","flowiq-api-reference/openapi-messenger-send-file.json"]},"navbar":{"links":[{"href":"mailto:dev@flowapt.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.flowiq.live"}},"footer":{"socials":{"x":"https://x.com/byflowapt","linkedin":"https://linkedin.com/company/flowapt"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://app.flowiq.live"},{"anchor":"Support","icon":"envelope","href":"mailto:dev@flowapt.com"},{"anchor":"Flowapt","icon":"globe","href":"https://flowapt.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flowapt","hasAudioNarration":false,"actualSubdomain":"flowapt","customDomains":["docs.flowapt.com"],"gitSource":{"type":"github","owner":"mattflowapt","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0f3ce7567151eb505c107f","clientVersion":"0.0.4389","searchFilterCounts":[{"language":"default","tag":"Send Messages","count":21},{"language":"default","tag":"WhatsApp","count":17},{"language":"default","tag":"Calling","count":12},{"language":"default","tag":"Flows","count":11},{"language":"default","tag":"Subscriptions","count":7},{"language":"default","tag":"Webhooks","count":7},{"language":"default","tag":"Messenger","count":7},{"language":"default","tag":"Manage flows","count":6},{"language":"default","tag":"Instagram","count":6},{"language":"default","tag":"Answer and end","count":4}]},"assistantConfig":{},"basePath":"","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"flowiq-api-reference/endpoint/get-flow","slug":"/flowiq-api-reference/endpoint/get-flow","pageMetadata":{"title":"Get a flow","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}","description":"One flow with its full definition and its etag. Scope: read.","href":"/flowiq-api-reference/endpoint/get-flow"},"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: \"One flow with its full definition and its etag. Scope: read.\"\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`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the full `,_jsx(_components.code,{children:`definition`}),` and the `,_jsx(_components.code,{children:`etag`}),` you send back when you `,_jsx(_components.a,{href:`/flowiq-api-reference/endpoint/update-flow`,children:`change the flow`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`basic-usage`,children:`Basic Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.flowiq.live/v1/flows/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FLOW_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer fiq_YOUR_API_KEY\"`})]}),`\n`]})})})]})}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":"Get a flow","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}","description":"One flow with its full definition and its etag. Scope: read.","href":"/flowiq-api-reference/endpoint/get-flow"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Basic Usage","slug":"basic-usage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getFlow","tags":["Flows"],"summary":"Get a flow","description":"One flow with its full definition and its etag. Scope: read.","parameters":["a1d1a78b-8a8f-4c09-91fd-c23905e0efa1"],"responses":{"200":"5fc66791-132d-4680-9208-15c4c34cab15","401":"51c02f38-97e4-4919-afcc-a5dd3fd36528","403":"94fa302e-3870-464c-a9a4-9befce8099d9","404":"a3fff63d-e113-48e8-990d-54c4bab0b180","429":"894937d6-1dfc-48b7-ac84-f574e2a51822"},"method":"get","type":"path","servers":["070b5a61-3d50-47be-b889-6fc4eb5b5e68"],"security":["07abddc2-6201-4339-9890-b7504147f8a8"],"path":"/v1/flows/{id}","baseUrlOptions":["https://api.flowiq.live"],"title":"Get a flow","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a1d1a78b-8a8f-4c09-91fd-c23905e0efa1":{"name":"id","in":"path","required":true,"description":"The flow's id","schema":{"type":"string","format":"uuid","isRequired":true,"description":"The flow's id","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"responses":{"5fc66791-132d-4680-9208-15c4c34cab15":{"description":"The flow","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","example":"Abandoned checkout","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","enum":["live","off"],"example":"off","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"repeat":{"type":"string","enum":["off","once_per_contact","once_per_order","once_per_order_per_day","once_per_subscription","reenter_after"],"description":"How often one person can go through the flow. `reenter_after` uses `definition.reenter_after_days`.","uniqueKey":"repeat","typeLabel":"enum\u003cstring>"},"trigger":{"oneOf":[{"type":"object","title":"Order or checkout","description":"What starts the flow. One of the shapes below.","required":["type","event","source"],"example":{"type":"event","event":"orders/paid","source":"shopify"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.0.type","typeLabel":"any"},"event":{"type":"string","enum":["orders/paid","orders/fulfilled","orders/create","checkouts/create","checkouts/update","wc/order.created","wc/order.on_hold","wc/order.paid","wc/order.processing","wc/order.completed","wc/order.cancelled","wc/order.refunded","popup_signup"],"description":"What starts the flow.","isRequired":true,"uniqueKey":"trigger.oneOf.0.event","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["shopify","woocommerce","popup"],"description":"Must match the event: shopify for orders/* and checkouts/*, woocommerce for wc/order.*, popup for popup_signup.","isRequired":true,"uniqueKey":"trigger.oneOf.0.source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"trigger.oneOf.0","typeLabel":"Order or checkout · object"},{"type":"object","title":"Subscription","description":"What starts the flow. One of the shapes below.","required":["type","event","source"],"example":{"type":"event","event":"subscription.cancelled","source":"manage"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.1.type","typeLabel":"any"},"event":{"type":"string","enum":["subscription.created","subscription.renewed","payment.failed","subscription.expired","subscription.paused","subscription.resumed","subscription.cancelled","subscription.reactivated","subscription.items_changed","subscription.activated","subscription.card_connected"],"description":"created / renewed / payment.failed / expired / activated / card_connected come from billing (source stitch); paused / resumed / cancelled / reactivated / items_changed from an action on the subscription (source manage).","isRequired":true,"uniqueKey":"trigger.oneOf.1.event","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["stitch","manage"],"description":"stitch for billing events, manage for actions.","isRequired":true,"uniqueKey":"trigger.oneOf.1.source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"trigger.oneOf.1","typeLabel":"Subscription · object"},{"type":"object","title":"Contact","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"contact.tag_added","source":"contact","tag":"vip"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.2.type","typeLabel":"any"},"event":{"type":"string","enum":["contact.tag_added","contact.tag_removed","contact.created"],"description":"contact.created fires for a new contact from any source (first message, pop-up, order, import).","isRequired":true,"uniqueKey":"trigger.oneOf.2.event","typeLabel":"enum\u003cstring>"},"source":{"const":"contact","uniqueKey":"trigger.oneOf.2.source","typeLabel":"any"},"tag":{"type":"string","description":"The tag (contact.tag_added and contact.tag_removed only).","uniqueKey":"trigger.oneOf.2.tag","typeLabel":"string"}},"uniqueKey":"trigger.oneOf.2","typeLabel":"Contact · object"},{"type":"object","title":"Message","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"message.keyword","source":"message","keywords":["menu"],"match":"exact"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.3.type","typeLabel":"any"},"event":{"type":"string","enum":["message.first","message.keyword"],"isRequired":true,"uniqueKey":"trigger.oneOf.3.event","typeLabel":"enum\u003cstring>"},"source":{"const":"message","uniqueKey":"trigger.oneOf.3.source","typeLabel":"any"},"keywords":{"type":"array","items":{"type":"string","uniqueKey":"trigger.oneOf.3.keywords.items.[INDEX]","typeLabel":"string"},"description":"message.keyword: the words to listen for.","uniqueKey":"trigger.oneOf.3.keywords","typeLabel":"string[]"},"match":{"type":"string","enum":["contains","exact","starts"],"description":"message.keyword: how the message must match a keyword.","default":"contains","uniqueKey":"trigger.oneOf.3.match","typeLabel":"enum\u003cstring>"}},"uniqueKey":"trigger.oneOf.3","typeLabel":"Message · object"},{"type":"object","title":"Date","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"date.after_last_order","source":"date","days":60},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.4.type","typeLabel":"any"},"event":{"type":"string","enum":["date.attribute","date.after_last_order","date.before_renewal","date.unengaged"],"isRequired":true,"uniqueKey":"trigger.oneOf.4.event","typeLabel":"enum\u003cstring>"},"source":{"const":"date","uniqueKey":"trigger.oneOf.4.source","typeLabel":"any"},"attribute":{"type":"string","description":"date.attribute: the contact attribute that holds the date (letters, digits, _).","default":"birthday","uniqueKey":"trigger.oneOf.4.attribute","typeLabel":"string"},"offset_days":{"type":"integer","description":"date.attribute: days from the date; negative = before.","minimum":-365,"maximum":365,"default":0,"uniqueKey":"trigger.oneOf.4.offset_days","typeLabel":"integer"},"yearly":{"type":"boolean","description":"date.attribute: every year (birthdays, anniversaries).","default":true,"uniqueKey":"trigger.oneOf.4.yearly","typeLabel":"boolean"},"days":{"type":"integer","description":"date.after_last_order: 1-730 (default 30). date.before_renewal: 0-60 (default 3). date.unengaged: the look-back, 7-365 (default 90).","minimum":0,"maximum":730,"uniqueKey":"trigger.oneOf.4.days","typeLabel":"integer"},"min_sent":{"type":"integer","description":"date.unengaged: how many messages they must have been sent in that time.","minimum":1,"maximum":50,"default":3,"uniqueKey":"trigger.oneOf.4.min_sent","typeLabel":"integer"}},"uniqueKey":"trigger.oneOf.4","typeLabel":"Date · object"},{"type":"object","title":"Product","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"product.price_drop","source":"product","lookback_days":30,"min_drop_percent":10},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.5.type","typeLabel":"any"},"event":{"type":"string","enum":["product.price_drop","product.low_stock"],"isRequired":true,"uniqueKey":"trigger.oneOf.5.event","typeLabel":"enum\u003cstring>"},"source":{"const":"product","uniqueKey":"trigger.oneOf.5.source","typeLabel":"any"},"lookback_days":{"type":"integer","description":"How far back their interest counts.","minimum":1,"maximum":180,"default":30,"uniqueKey":"trigger.oneOf.5.lookback_days","typeLabel":"integer"},"min_drop_percent":{"type":"integer","description":"product.price_drop: the smallest drop that counts.","minimum":0,"maximum":90,"default":0,"uniqueKey":"trigger.oneOf.5.min_drop_percent","typeLabel":"integer"},"threshold":{"type":"integer","description":"product.low_stock: stock at or below this.","minimum":1,"maximum":1000,"default":5,"uniqueKey":"trigger.oneOf.5.threshold","typeLabel":"integer"}},"uniqueKey":"trigger.oneOf.5","typeLabel":"Product · object"},{"type":"object","title":"Your own event","description":"What starts the flow. One of the shapes below.","required":["type","event","event_name"],"example":{"type":"event","event":"api.event","source":"api","event_name":"delivery.successful"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.6.type","typeLabel":"any"},"event":{"const":"api.event","isRequired":true,"uniqueKey":"trigger.oneOf.6.event","typeLabel":"any"},"event_name":{"type":"string","description":"The event's name: letters, digits, _ . : - , up to 128 characters.","example":"delivery.successful","isRequired":true,"uniqueKey":"trigger.oneOf.6.event_name","typeLabel":"string"},"source":{"const":"api","uniqueKey":"trigger.oneOf.6.source","typeLabel":"any"}},"uniqueKey":"trigger.oneOf.6","typeLabel":"Your own event · object"},{"type":"object","title":"Store browsing","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"store.browse_abandoned","source":"storefront","wait_hours":4,"repeat_days":7},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"trigger.oneOf.7.type","typeLabel":"any"},"event":{"type":"string","enum":["store.browse_abandoned","store.active"],"isRequired":true,"uniqueKey":"trigger.oneOf.7.event","typeLabel":"enum\u003cstring>"},"source":{"const":"storefront","uniqueKey":"trigger.oneOf.7.source","typeLabel":"any"},"wait_hours":{"type":"integer","description":"store.browse_abandoned: hours to wait after the view.","minimum":1,"maximum":72,"default":4,"uniqueKey":"trigger.oneOf.7.wait_hours","typeLabel":"integer"},"repeat_days":{"type":"integer","description":"store.browse_abandoned: at most once per product in this many days (and one product a day).","minimum":1,"maximum":90,"default":7,"uniqueKey":"trigger.oneOf.7.repeat_days","typeLabel":"integer"},"quiet_days":{"type":"integer","description":"store.active: 0 = every visit day; above 0 = only when they come back after that many days away.","minimum":0,"maximum":365,"default":0,"uniqueKey":"trigger.oneOf.7.quiet_days","typeLabel":"integer"}},"uniqueKey":"trigger.oneOf.7","typeLabel":"Store browsing · object"},{"type":"null","uniqueKey":"trigger.oneOf.8","typeLabel":"null"}],"uniqueKey":"trigger","typeLabel":"Order or checkout · object | Subscription · object | Contact · object | Message · object | Date · object | Product · object | Your own event · object | Store browsing · object | null"},"definition":{"type":"object","title":"Flow definition","description":"The flow itself. At most 25 steps at the top level and 80 counting every split path.","required":["trigger","steps"],"example":{"trigger":{"type":"event","event":"checkouts/create","source":"shopify"},"steps":[{"id":"w1","type":"delay","value":1,"unit":"hours"},{"id":"m1","type":"action","action_type":"send_message","config":{"template_name":"cart_reminder_v1","body_parameters":{"param1":"{{contact.first_name}}"}}}]},"properties":{"trigger":{"oneOf":[{"type":"object","title":"Order or checkout","description":"What starts the flow. One of the shapes below.","required":["type","event","source"],"example":{"type":"event","event":"orders/paid","source":"shopify"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.0.type","typeLabel":"any"},"event":{"type":"string","enum":["orders/paid","orders/fulfilled","orders/create","checkouts/create","checkouts/update","wc/order.created","wc/order.on_hold","wc/order.paid","wc/order.processing","wc/order.completed","wc/order.cancelled","wc/order.refunded","popup_signup"],"description":"What starts the flow.","isRequired":true,"uniqueKey":"definition.trigger.oneOf.0.event","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["shopify","woocommerce","popup"],"description":"Must match the event: shopify for orders/* and checkouts/*, woocommerce for wc/order.*, popup for popup_signup.","isRequired":true,"uniqueKey":"definition.trigger.oneOf.0.source","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.0","typeLabel":"Order or checkout · object"},{"type":"object","title":"Subscription","description":"What starts the flow. One of the shapes below.","required":["type","event","source"],"example":{"type":"event","event":"subscription.cancelled","source":"manage"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.1.type","typeLabel":"any"},"event":{"type":"string","enum":["subscription.created","subscription.renewed","payment.failed","subscription.expired","subscription.paused","subscription.resumed","subscription.cancelled","subscription.reactivated","subscription.items_changed","subscription.activated","subscription.card_connected"],"description":"created / renewed / payment.failed / expired / activated / card_connected come from billing (source stitch); paused / resumed / cancelled / reactivated / items_changed from an action on the subscription (source manage).","isRequired":true,"uniqueKey":"definition.trigger.oneOf.1.event","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["stitch","manage"],"description":"stitch for billing events, manage for actions.","isRequired":true,"uniqueKey":"definition.trigger.oneOf.1.source","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.1","typeLabel":"Subscription · object"},{"type":"object","title":"Contact","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"contact.tag_added","source":"contact","tag":"vip"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.2.type","typeLabel":"any"},"event":{"type":"string","enum":["contact.tag_added","contact.tag_removed","contact.created"],"description":"contact.created fires for a new contact from any source (first message, pop-up, order, import).","isRequired":true,"uniqueKey":"definition.trigger.oneOf.2.event","typeLabel":"enum\u003cstring>"},"source":{"const":"contact","uniqueKey":"definition.trigger.oneOf.2.source","typeLabel":"any"},"tag":{"type":"string","description":"The tag (contact.tag_added and contact.tag_removed only).","uniqueKey":"definition.trigger.oneOf.2.tag","typeLabel":"string"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.2","typeLabel":"Contact · object"},{"type":"object","title":"Message","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"message.keyword","source":"message","keywords":["menu"],"match":"exact"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.3.type","typeLabel":"any"},"event":{"type":"string","enum":["message.first","message.keyword"],"isRequired":true,"uniqueKey":"definition.trigger.oneOf.3.event","typeLabel":"enum\u003cstring>"},"source":{"const":"message","uniqueKey":"definition.trigger.oneOf.3.source","typeLabel":"any"},"keywords":{"type":"array","items":{"type":"string","uniqueKey":"definition.trigger.oneOf.3.keywords.items.[INDEX]","typeLabel":"string"},"description":"message.keyword: the words to listen for.","uniqueKey":"definition.trigger.oneOf.3.keywords","typeLabel":"string[]"},"match":{"type":"string","enum":["contains","exact","starts"],"description":"message.keyword: how the message must match a keyword.","default":"contains","uniqueKey":"definition.trigger.oneOf.3.match","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.3","typeLabel":"Message · object"},{"type":"object","title":"Date","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"date.after_last_order","source":"date","days":60},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.4.type","typeLabel":"any"},"event":{"type":"string","enum":["date.attribute","date.after_last_order","date.before_renewal","date.unengaged"],"isRequired":true,"uniqueKey":"definition.trigger.oneOf.4.event","typeLabel":"enum\u003cstring>"},"source":{"const":"date","uniqueKey":"definition.trigger.oneOf.4.source","typeLabel":"any"},"attribute":{"type":"string","description":"date.attribute: the contact attribute that holds the date (letters, digits, _).","default":"birthday","uniqueKey":"definition.trigger.oneOf.4.attribute","typeLabel":"string"},"offset_days":{"type":"integer","description":"date.attribute: days from the date; negative = before.","minimum":-365,"maximum":365,"default":0,"uniqueKey":"definition.trigger.oneOf.4.offset_days","typeLabel":"integer"},"yearly":{"type":"boolean","description":"date.attribute: every year (birthdays, anniversaries).","default":true,"uniqueKey":"definition.trigger.oneOf.4.yearly","typeLabel":"boolean"},"days":{"type":"integer","description":"date.after_last_order: 1-730 (default 30). date.before_renewal: 0-60 (default 3). date.unengaged: the look-back, 7-365 (default 90).","minimum":0,"maximum":730,"uniqueKey":"definition.trigger.oneOf.4.days","typeLabel":"integer"},"min_sent":{"type":"integer","description":"date.unengaged: how many messages they must have been sent in that time.","minimum":1,"maximum":50,"default":3,"uniqueKey":"definition.trigger.oneOf.4.min_sent","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.4","typeLabel":"Date · object"},{"type":"object","title":"Product","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"product.price_drop","source":"product","lookback_days":30,"min_drop_percent":10},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.5.type","typeLabel":"any"},"event":{"type":"string","enum":["product.price_drop","product.low_stock"],"isRequired":true,"uniqueKey":"definition.trigger.oneOf.5.event","typeLabel":"enum\u003cstring>"},"source":{"const":"product","uniqueKey":"definition.trigger.oneOf.5.source","typeLabel":"any"},"lookback_days":{"type":"integer","description":"How far back their interest counts.","minimum":1,"maximum":180,"default":30,"uniqueKey":"definition.trigger.oneOf.5.lookback_days","typeLabel":"integer"},"min_drop_percent":{"type":"integer","description":"product.price_drop: the smallest drop that counts.","minimum":0,"maximum":90,"default":0,"uniqueKey":"definition.trigger.oneOf.5.min_drop_percent","typeLabel":"integer"},"threshold":{"type":"integer","description":"product.low_stock: stock at or below this.","minimum":1,"maximum":1000,"default":5,"uniqueKey":"definition.trigger.oneOf.5.threshold","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.5","typeLabel":"Product · object"},{"type":"object","title":"Your own event","description":"What starts the flow. One of the shapes below.","required":["type","event","event_name"],"example":{"type":"event","event":"api.event","source":"api","event_name":"delivery.successful"},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.6.type","typeLabel":"any"},"event":{"const":"api.event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.6.event","typeLabel":"any"},"event_name":{"type":"string","description":"The event's name: letters, digits, _ . : - , up to 128 characters.","example":"delivery.successful","isRequired":true,"uniqueKey":"definition.trigger.oneOf.6.event_name","typeLabel":"string"},"source":{"const":"api","uniqueKey":"definition.trigger.oneOf.6.source","typeLabel":"any"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.6","typeLabel":"Your own event · object"},{"type":"object","title":"Store browsing","description":"What starts the flow. One of the shapes below.","required":["type","event"],"example":{"type":"event","event":"store.browse_abandoned","source":"storefront","wait_hours":4,"repeat_days":7},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.trigger.oneOf.7.type","typeLabel":"any"},"event":{"type":"string","enum":["store.browse_abandoned","store.active"],"isRequired":true,"uniqueKey":"definition.trigger.oneOf.7.event","typeLabel":"enum\u003cstring>"},"source":{"const":"storefront","uniqueKey":"definition.trigger.oneOf.7.source","typeLabel":"any"},"wait_hours":{"type":"integer","description":"store.browse_abandoned: hours to wait after the view.","minimum":1,"maximum":72,"default":4,"uniqueKey":"definition.trigger.oneOf.7.wait_hours","typeLabel":"integer"},"repeat_days":{"type":"integer","description":"store.browse_abandoned: at most once per product in this many days (and one product a day).","minimum":1,"maximum":90,"default":7,"uniqueKey":"definition.trigger.oneOf.7.repeat_days","typeLabel":"integer"},"quiet_days":{"type":"integer","description":"store.active: 0 = every visit day; above 0 = only when they come back after that many days away.","minimum":0,"maximum":365,"default":0,"uniqueKey":"definition.trigger.oneOf.7.quiet_days","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"definition.trigger.oneOf.7","typeLabel":"Store browsing · object"}],"isRequired":true,"uniqueKey":"definition.trigger","typeLabel":"Order or checkout · object | Subscription · object | Contact · object | Message · object | Date · object | Product · object | Your own event · object | Store browsing · object"},"steps":{"type":"array","minItems":1,"maxItems":25,"items":{"oneOf":[{"type":"object","title":"Wait","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","value","unit"],"example":{"id":"w1","type":"delay","value":1,"unit":"days","until_time":"09:00","weekdays":[1,2,3,4,5]},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"const":"delay","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.0.type","typeLabel":"any"},"value":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.0.value","typeLabel":"number"},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.0.unit","typeLabel":"enum\u003cstring>"},"until_time":{"type":"string","description":"HH:MM, 24-hour, South African time.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","uniqueKey":"definition.steps.items.[INDEX].oneOf.0.until_time","typeLabel":"string"},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7,"uniqueKey":"definition.steps.items.[INDEX].oneOf.0.weekdays.items.[INDEX]","typeLabel":"integer"},"description":"1 = Monday … 7 = Sunday.","uniqueKey":"definition.steps.items.[INDEX].oneOf.0.weekdays","typeLabel":"integer[]"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.0","typeLabel":"Wait · object"},{"type":"object","title":"Only if","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"c1","type":"condition","config":{"logic":"all","conditions":[{"type":"first_order","operator":"is"}]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.id","typeLabel":"string"},"type":{"const":"condition","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.type","typeLabel":"any"},"config":{"type":"object","required":["conditions"],"properties":{"conditions":{"type":"array","items":{"oneOf":[{"type":"object","title":"What they have ordered","description":"One check. All checks in a list must hold unless logic is any.","required":["type","action","operator"],"example":{"type":"event","field":"contact","action":"placed_order","operator":"has_not","timeframe":{"type":"in_the_last","value":45,"unit":"days"}},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.type","typeLabel":"any"},"action":{"type":"string","enum":["placed_order","bought_product"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.action","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.operator","typeLabel":"enum\u003cstring>"},"field":{"const":"contact","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.field","typeLabel":"any"},"timeframe":{"type":"object","description":"When it counts. Leave out for ever.","properties":{"type":{"type":"string","enum":["in_the_last","since_trigger"],"description":"in_the_last = in the last value + unit; since_trigger = only since this run started (the order that started it never counts).","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"in_the_last: how many.","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["days","weeks","months"],"description":"in_the_last: the unit.","default":"days","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.timeframe","typeLabel":"object"},"where":{"type":"object","description":"bought_product: which products. Leave out for any product.","properties":{"field":{"type":"string","enum":["product_title","variant_id","sku","any"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.where.field","typeLabel":"enum\u003cstring>"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.where.values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.where.values","typeLabel":"string[]"},"match":{"type":"string","enum":["contains","exact"],"description":"product_title only: contains = part of the name, any case.","default":"exact","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.where.match","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0.where","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.0","typeLabel":"What they have ordered · object"},{"type":"object","title":"What is in this order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","values"],"example":{"type":"line_item_check","field":"title","match":"contains","operator":"has","values":["Mattress"]},"properties":{"type":{"const":"line_item_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.type","typeLabel":"any"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.values.items.[INDEX]","typeLabel":"string"},"description":"One or more values; any one matching counts.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.values","typeLabel":"string[]"},"field":{"type":"string","enum":["title","sku","variant_id","product_type","collection"],"description":"collection = the item is in that Shopify collection (checked when the step runs).","default":"title","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"match":{"type":"string","enum":["contains","exact"],"description":"","default":"contains","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.match","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.1","typeLabel":"What is in this order · object"},{"type":"object","title":"A detail of the order or event","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"payload_check","field":"total_price","operator":"gt","value":1500},"properties":{"type":{"const":"payload_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.2.type","typeLabel":"any"},"field":{"type":"string","description":"The field, e.g. total_price, financial_status, or a field of your own event.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.2.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.2.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"What to compare with (not needed for truthy / falsy).","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.2.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.2","typeLabel":"A detail of the order or event · object"},{"type":"object","title":"First order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"first_order","operator":"is"},"properties":{"type":{"const":"first_order","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.3.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.3.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.3","typeLabel":"First order · object"},{"type":"object","title":"Still in stock","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"stock_check","require":"all"},"properties":{"type":{"const":"stock_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.4.type","typeLabel":"any"},"require":{"type":"string","enum":["all","any"],"description":"","default":"all","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.4.require","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.4","typeLabel":"Still in stock · object"},{"type":"object","title":"A contact field","description":"One check. All checks in a list must hold unless logic is any.","required":["type","data_source","field","operator"],"example":{"type":"property","data_source":"contacts","field":"tags","operator":"not_contains","value":"vip"},"properties":{"type":{"const":"property","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5.type","typeLabel":"any"},"data_source":{"const":"contacts","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5.data_source","typeLabel":"any"},"field":{"type":"string","description":"The contact column, e.g. tags, email, allow_broadcast.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5.field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"The value to compare with.","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.5","typeLabel":"A contact field · object"},{"type":"object","title":"Their subscription","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"sub_status","field":"cancelled","operator":"truthy"},"properties":{"type":{"const":"sub_status","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.6.type","typeLabel":"any"},"field":{"type":"string","description":"e.g. cancelled, paused, status, offered_save_gift, is_test.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.6.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.6.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"For eq / neq.","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.6.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.6","typeLabel":"Their subscription · object"},{"type":"object","title":"Not sent recently","description":"One check. All checks in a list must hold unless logic is any.","required":["type","days"],"example":{"type":"flow_not_sent_within","days":30},"properties":{"type":{"const":"flow_not_sent_within","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.7.type","typeLabel":"any"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.7.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.7","typeLabel":"Not sent recently · object"},{"type":"object","title":"Talking to support","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"support_active","operator":"is_not"},"properties":{"type":{"const":"support_active","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.8.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"description":"Use is_not so outreach never cuts into a support conversation.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.8.operator","typeLabel":"enum\u003cstring>"},"human_reply_hours":{"type":"integer","description":"A team reply within this many hours counts.","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.8.human_reply_hours","typeLabel":"integer"},"customer_message_hours":{"type":"integer","description":"A message from them within this many hours counts.","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.8.customer_message_hours","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.8","typeLabel":"Talking to support · object"},{"type":"object","title":"Replied","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"replied","operator":"has","timeframe":{"type":"since_trigger"}},"properties":{"type":{"const":"replied","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.type","typeLabel":"any"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.operator","typeLabel":"enum\u003cstring>"},"timeframe":{"type":"object","properties":{"type":{"type":"string","enum":["since_trigger","in_the_last"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["hours","days"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9.timeframe","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.9","typeLabel":"Replied · object"},{"type":"object","title":"Opened or clicked a message","description":"One check. All checks in a list must hold unless logic is any.","required":["type","signal","operator"],"example":{"type":"message_engagement","signal":"opened","operator":"did_not","step_id":"m1"},"properties":{"type":{"const":"message_engagement","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.10.type","typeLabel":"any"},"signal":{"type":"string","enum":["opened","clicked"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.10.signal","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.10.operator","typeLabel":"enum\u003cstring>"},"step_id":{"type":"string","description":"The message step to ask about. Leave out for the last message the flow sent.","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.10.step_id","typeLabel":"string"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.10","typeLabel":"Opened or clicked a message · object"},{"type":"object","title":"Engaged lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"engagement","operator":"not_engaged","days":90},"properties":{"type":{"const":"engagement","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.11.type","typeLabel":"any"},"operator":{"type":"string","enum":["engaged","not_engaged"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.11.operator","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":90,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.11.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.11","typeLabel":"Engaged lately · object"},{"type":"object","title":"On the store lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"store_activity","operator":"did","event":"product_viewed","days":7},"properties":{"type":{"const":"store_activity","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.12.type","typeLabel":"any"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.12.operator","typeLabel":"enum\u003cstring>"},"event":{"type":"string","enum":["any","product_viewed","product_added_to_cart","checkout_started"],"description":"","default":"any","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.12.event","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":7,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.12.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.12","typeLabel":"On the store lately · object"},{"type":"object","title":"Comparison group","description":"One check. All checks in a list must hold unless logic is any.","required":["type","holdout_pct"],"example":{"type":"holdout_check","holdout_pct":10,"programme":"replenishment"},"properties":{"type":{"const":"holdout_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.13.type","typeLabel":"any"},"holdout_pct":{"type":"integer","description":"The share held out, 1-99.","minimum":1,"maximum":99,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.13.holdout_pct","typeLabel":"integer"},"programme":{"type":"string","description":"Name the group so several flows share it.","default":"default","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.13.programme","typeLabel":"string"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.13","typeLabel":"Comparison group · object"},{"type":"object","title":"Random share (split paths only)","description":"One check. All checks in a list must hold unless logic is any.","required":["type","percent"],"example":{"type":"random_sample","percent":50},"properties":{"type":{"const":"random_sample","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.14.type","typeLabel":"any"},"percent":{"type":"integer","description":"","minimum":1,"maximum":100,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.14.percent","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX].oneOf.14","typeLabel":"Random share (split paths only) · object"}],"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions.items.[INDEX]","typeLabel":"What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object"},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.conditions","typeLabel":"(What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object)[]"},"logic":{"type":"string","enum":["all","any"],"description":"","default":"all","uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config.logic","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.1.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.1","typeLabel":"Only if · object"},{"type":"object","title":"Split","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"s1","type":"split","config":{"paths":[{"id":"pa","name":"A","conditions":[{"type":"random_sample","percent":50}],"steps":[]}],"otherwise":{"id":"po","name":"Everyone else","steps":[]},"ab":{"auto":true,"metric":"clicked"}}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.id","typeLabel":"string"},"type":{"const":"split","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.type","typeLabel":"any"},"config":{"type":"object","required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"maxItems":19,"items":{"type":"object","required":["id","name","conditions"],"properties":{"id":{"type":"string","description":"Path id.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Shown in the editor and the report.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].name","typeLabel":"string"},"conditions":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","title":"What they have ordered","description":"One check. All checks in a list must hold unless logic is any.","required":["type","action","operator"],"example":{"type":"event","field":"contact","action":"placed_order","operator":"has_not","timeframe":{"type":"in_the_last","value":45,"unit":"days"}},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.type","typeLabel":"any"},"action":{"type":"string","enum":["placed_order","bought_product"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.action","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.operator","typeLabel":"enum\u003cstring>"},"field":{"const":"contact","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.field","typeLabel":"any"},"timeframe":{"type":"object","description":"When it counts. Leave out for ever.","properties":{"type":{"type":"string","enum":["in_the_last","since_trigger"],"description":"in_the_last = in the last value + unit; since_trigger = only since this run started (the order that started it never counts).","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"in_the_last: how many.","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["days","weeks","months"],"description":"in_the_last: the unit.","default":"days","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.timeframe","typeLabel":"object"},"where":{"type":"object","description":"bought_product: which products. Leave out for any product.","properties":{"field":{"type":"string","enum":["product_title","variant_id","sku","any"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.where.field","typeLabel":"enum\u003cstring>"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.where.values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.where.values","typeLabel":"string[]"},"match":{"type":"string","enum":["contains","exact"],"description":"product_title only: contains = part of the name, any case.","default":"exact","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.where.match","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0.where","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.0","typeLabel":"What they have ordered · object"},{"type":"object","title":"What is in this order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","values"],"example":{"type":"line_item_check","field":"title","match":"contains","operator":"has","values":["Mattress"]},"properties":{"type":{"const":"line_item_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.type","typeLabel":"any"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.values.items.[INDEX]","typeLabel":"string"},"description":"One or more values; any one matching counts.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.values","typeLabel":"string[]"},"field":{"type":"string","enum":["title","sku","variant_id","product_type","collection"],"description":"collection = the item is in that Shopify collection (checked when the step runs).","default":"title","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"match":{"type":"string","enum":["contains","exact"],"description":"","default":"contains","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.match","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.1","typeLabel":"What is in this order · object"},{"type":"object","title":"A detail of the order or event","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"payload_check","field":"total_price","operator":"gt","value":1500},"properties":{"type":{"const":"payload_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.2.type","typeLabel":"any"},"field":{"type":"string","description":"The field, e.g. total_price, financial_status, or a field of your own event.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.2.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.2.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"What to compare with (not needed for truthy / falsy).","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.2.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.2","typeLabel":"A detail of the order or event · object"},{"type":"object","title":"First order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"first_order","operator":"is"},"properties":{"type":{"const":"first_order","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.3.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.3.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.3","typeLabel":"First order · object"},{"type":"object","title":"Still in stock","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"stock_check","require":"all"},"properties":{"type":{"const":"stock_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.4.type","typeLabel":"any"},"require":{"type":"string","enum":["all","any"],"description":"","default":"all","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.4.require","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.4","typeLabel":"Still in stock · object"},{"type":"object","title":"A contact field","description":"One check. All checks in a list must hold unless logic is any.","required":["type","data_source","field","operator"],"example":{"type":"property","data_source":"contacts","field":"tags","operator":"not_contains","value":"vip"},"properties":{"type":{"const":"property","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5.type","typeLabel":"any"},"data_source":{"const":"contacts","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5.data_source","typeLabel":"any"},"field":{"type":"string","description":"The contact column, e.g. tags, email, allow_broadcast.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5.field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"The value to compare with.","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.5","typeLabel":"A contact field · object"},{"type":"object","title":"Their subscription","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"sub_status","field":"cancelled","operator":"truthy"},"properties":{"type":{"const":"sub_status","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.6.type","typeLabel":"any"},"field":{"type":"string","description":"e.g. cancelled, paused, status, offered_save_gift, is_test.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.6.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.6.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"For eq / neq.","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.6.value","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.6","typeLabel":"Their subscription · object"},{"type":"object","title":"Not sent recently","description":"One check. All checks in a list must hold unless logic is any.","required":["type","days"],"example":{"type":"flow_not_sent_within","days":30},"properties":{"type":{"const":"flow_not_sent_within","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.7.type","typeLabel":"any"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.7.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.7","typeLabel":"Not sent recently · object"},{"type":"object","title":"Talking to support","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"support_active","operator":"is_not"},"properties":{"type":{"const":"support_active","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.8.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"description":"Use is_not so outreach never cuts into a support conversation.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.8.operator","typeLabel":"enum\u003cstring>"},"human_reply_hours":{"type":"integer","description":"A team reply within this many hours counts.","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.8.human_reply_hours","typeLabel":"integer"},"customer_message_hours":{"type":"integer","description":"A message from them within this many hours counts.","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.8.customer_message_hours","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.8","typeLabel":"Talking to support · object"},{"type":"object","title":"Replied","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"replied","operator":"has","timeframe":{"type":"since_trigger"}},"properties":{"type":{"const":"replied","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.type","typeLabel":"any"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.operator","typeLabel":"enum\u003cstring>"},"timeframe":{"type":"object","properties":{"type":{"type":"string","enum":["since_trigger","in_the_last"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["hours","days"],"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9.timeframe","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.9","typeLabel":"Replied · object"},{"type":"object","title":"Opened or clicked a message","description":"One check. All checks in a list must hold unless logic is any.","required":["type","signal","operator"],"example":{"type":"message_engagement","signal":"opened","operator":"did_not","step_id":"m1"},"properties":{"type":{"const":"message_engagement","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.10.type","typeLabel":"any"},"signal":{"type":"string","enum":["opened","clicked"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.10.signal","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.10.operator","typeLabel":"enum\u003cstring>"},"step_id":{"type":"string","description":"The message step to ask about. Leave out for the last message the flow sent.","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.10.step_id","typeLabel":"string"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.10","typeLabel":"Opened or clicked a message · object"},{"type":"object","title":"Engaged lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"engagement","operator":"not_engaged","days":90},"properties":{"type":{"const":"engagement","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.11.type","typeLabel":"any"},"operator":{"type":"string","enum":["engaged","not_engaged"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.11.operator","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":90,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.11.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.11","typeLabel":"Engaged lately · object"},{"type":"object","title":"On the store lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"store_activity","operator":"did","event":"product_viewed","days":7},"properties":{"type":{"const":"store_activity","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.12.type","typeLabel":"any"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.12.operator","typeLabel":"enum\u003cstring>"},"event":{"type":"string","enum":["any","product_viewed","product_added_to_cart","checkout_started"],"description":"","default":"any","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.12.event","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":7,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.12.days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.12","typeLabel":"On the store lately · object"},{"type":"object","title":"Comparison group","description":"One check. All checks in a list must hold unless logic is any.","required":["type","holdout_pct"],"example":{"type":"holdout_check","holdout_pct":10,"programme":"replenishment"},"properties":{"type":{"const":"holdout_check","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.13.type","typeLabel":"any"},"holdout_pct":{"type":"integer","description":"The share held out, 1-99.","minimum":1,"maximum":99,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.13.holdout_pct","typeLabel":"integer"},"programme":{"type":"string","description":"Name the group so several flows share it.","default":"default","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.13.programme","typeLabel":"string"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.13","typeLabel":"Comparison group · object"},{"type":"object","title":"Random share (split paths only)","description":"One check. All checks in a list must hold unless logic is any.","required":["type","percent"],"example":{"type":"random_sample","percent":50},"properties":{"type":{"const":"random_sample","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.14.type","typeLabel":"any"},"percent":{"type":"integer","description":"","minimum":1,"maximum":100,"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.14.percent","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX].oneOf.14","typeLabel":"Random share (split paths only) · object"}],"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions.items.[INDEX]","typeLabel":"What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object"},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].conditions","typeLabel":"(What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object)[]"},"logic":{"type":"string","enum":["all","any"],"description":"","default":"all","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].logic","typeLabel":"enum\u003cstring>"},"steps":{"type":"array","items":{"$circularRef":"381f99a5-e5a3-4ecf-8cf9-c7581fdbfcbb"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.paths","typeLabel":"object[]"},"otherwise":{"type":"object","description":"Everyone else.","properties":{"id":{"type":"string","description":"","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.otherwise.id","typeLabel":"string"},"name":{"type":"string","description":"","default":"Everyone else","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.otherwise.name","typeLabel":"string"},"steps":{"type":"array","items":{"$circularRef":"381f99a5-e5a3-4ecf-8cf9-c7581fdbfcbb"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.otherwise.steps","typeLabel":"array"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.otherwise","typeLabel":"object"},"ab":{"type":"object","description":"A/B test that decides itself.","properties":{"auto":{"type":"boolean","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.ab.auto","typeLabel":"boolean"},"metric":{"type":"string","enum":["clicked","orders","revenue","read"],"description":"","default":"clicked","uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.ab.metric","typeLabel":"enum\u003cstring>"},"min_per_path":{"type":"integer","description":"People per path before deciding.","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.ab.min_per_path","typeLabel":"integer"},"max_days":{"type":"integer","description":"Decide after this many days at the latest.","minimum":1,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.ab.max_days","typeLabel":"integer"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config.ab","typeLabel":"object"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.2.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.2","typeLabel":"Split · object"},{"type":"object","title":"Send a WhatsApp message","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","action_type","config"],"example":{"id":"m1","type":"action","action_type":"send_message","config":{"template_name":"cart_reminder_v1","body_parameters":{"param1":"{{contact.first_name}}"},"button_parameters":{"param1":"{{cart_link_code}}"}}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.id","typeLabel":"string"},"type":{"const":"action","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.type","typeLabel":"any"},"action_type":{"const":"send_message","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.action_type","typeLabel":"any"},"config":{"type":"object","required":["template_name"],"properties":{"template_name":{"type":"string","description":"An approved template. While building, \"choose-template\" with send_status draft is allowed.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.template_name","typeLabel":"string"},"body_parameters":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.body_parameters.additionalProperties","typeLabel":"string"},"description":"param1 … paramN for the template's body variables. Values may use merge fields.","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.body_parameters","typeLabel":"object"},"button_parameters":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_parameters.additionalProperties","typeLabel":"string"},"description":"param1 for a dynamic-URL button.","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_parameters","typeLabel":"object"},"header_media_strategy":{"type":"string","description":"custom = use header_media_url; leave out for the template's own media; other values pick an image of a product in the order.","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.header_media_strategy","typeLabel":"string"},"header_media_url":{"type":"string","description":"custom header image / video / document (public URL).","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.header_media_url","typeLabel":"string"},"send_status":{"type":"string","enum":["live","manual","draft"],"description":"manual = waits for your OK in the app; draft = skipped.","default":"live","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.send_status","typeLabel":"enum\u003cstring>"},"skip_smart_sending":{"type":"boolean","description":"Ignore the account's message cap for this message.","default":false,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.skip_smart_sending","typeLabel":"boolean"},"button_followups":{"type":"object","description":"What happens when they tap a quick-reply button (messages outside a split, after every wait).","properties":{"wait_days":{"type":"integer","description":"How long a tap still counts.","minimum":1,"maximum":30,"default":7,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.wait_days","typeLabel":"integer"},"buttons":{"type":"array","maxItems":10,"items":{"type":"object","required":["button","reply"],"properties":{"button":{"type":"string","description":"The button's label.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].button","typeLabel":"string"},"reply":{"type":"string","enum":["message","agent","none"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].reply","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"reply message: the text (up to 1,024).","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].message","typeLabel":"string"},"add_tags":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].add_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].add_tags","typeLabel":"string[]"},"remove_tags":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].remove_tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].remove_tags","typeLabel":"string[]"},"assign_to":{"type":"string","description":"A team member's user id.","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].assign_to","typeLabel":"string"},"agent_off":{"type":"boolean","uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX].agent_off","typeLabel":"boolean"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups.buttons","typeLabel":"object[]"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config.button_followups","typeLabel":"object"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.3.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.3","typeLabel":"Send a WhatsApp message · object"},{"type":"object","title":"Send an email","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"e1","type":"email","config":{"subject":"Still thinking it over, {{contact.first_name}}?","body":"Your cart is waiting: {{cart_link}}"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.4.id","typeLabel":"string"},"type":{"const":"email","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.4.type","typeLabel":"any"},"config":{"type":"object","required":["subject"],"properties":{"subject":{"type":"string","description":"May use merge fields.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.subject","typeLabel":"string"},"body":{"type":"string","description":"Plain text (when content is not design).","uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.body","typeLabel":"string"},"content":{"type":"string","enum":["text","design"],"description":"","default":"text","uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.content","typeLabel":"enum\u003cstring>"},"design":{"type":"object","description":"content design: an email builder design { version, settings, blocks }.","uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.design","typeLabel":"object"},"require_consent":{"type":"boolean","default":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.require_consent","typeLabel":"boolean"},"send_status":{"type":"string","enum":["live","manual","draft"],"description":"","default":"live","uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config.send_status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.4.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.4","typeLabel":"Send an email · object"},{"type":"object","title":"Tag or update the contact","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"t1","type":"update_contact","config":{"operations":[{"op":"add_tag","value":"cart-reminded"}]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.id","typeLabel":"string"},"type":{"const":"update_contact","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.type","typeLabel":"any"},"config":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","minItems":1,"items":{"type":"object","required":["op"],"properties":{"op":{"type":"string","enum":["add_tag","remove_tag","set_attribute"],"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config.operations.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The tag, or the attribute's value.","uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config.operations.items.[INDEX].value","typeLabel":"string"},"key":{"type":"string","description":"set_attribute: the attribute name.","uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config.operations.items.[INDEX].key","typeLabel":"string"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config.operations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config.operations","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.5.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.5","typeLabel":"Tag or update the contact · object"},{"type":"object","title":"Make a discount code","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"d1","type":"discount_code","config":{"kind":"percentage","value":10,"expiry_days":14,"code_prefix":"COMEBACK"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.6.id","typeLabel":"string"},"type":{"const":"discount_code","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.6.type","typeLabel":"any"},"config":{"type":"object","properties":{"kind":{"type":"string","enum":["percentage","fixed_amount","free_shipping"],"description":"","default":"percentage","uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.kind","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"percentage: 1-100; fixed_amount: above 0.","uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.value","typeLabel":"number"},"expiry_days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":30,"uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.expiry_days","typeLabel":"integer"},"code_prefix":{"type":"string","description":"e.g. COMEBACK","uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.code_prefix","typeLabel":"string"},"min_subtotal":{"type":"number","uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.min_subtotal","typeLabel":"number"},"collection_gid":{"type":"string","description":"Shopify: only for this collection.","uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config.collection_gid","typeLabel":"string"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.6.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.6","typeLabel":"Make a discount code · object"},{"type":"object","title":"Alert the team","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"a1","type":"alert","config":{"message":"{{contact.full_name}} ordered over R5,000","emails":["sales@example.com"]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.id","typeLabel":"string"},"type":{"const":"alert","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.type","typeLabel":"any"},"config":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"May use merge fields.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.message","typeLabel":"string"},"team_id":{"type":"string","description":"A team id.","uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.team_id","typeLabel":"string"},"whatsapp_numbers":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.whatsapp_numbers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.whatsapp_numbers","typeLabel":"string[]"},"emails":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.emails.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.emails","typeLabel":"string[]"},"include_link":{"type":"boolean","description":"Add a link to the chat.","uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config.include_link","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.7.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.7","typeLabel":"Alert the team · object"},{"type":"object","title":"Send to your webhook","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"h1","type":"webhook","config":{"webhook_id":"0b9f7a4e-2c1d-4e8a-9a51-6d2f0c7b1e33"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.8.id","typeLabel":"string"},"type":{"const":"webhook","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.8.type","typeLabel":"any"},"config":{"type":"object","required":["webhook_id"],"properties":{"webhook_id":{"type":"string","description":"The webhook's id.","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.8.config.webhook_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.8.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.8","typeLabel":"Send to your webhook · object"},{"type":"object","title":"Brief the AI agent","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"b1","type":"agent_brief","config":{"instruction":"They left a mattress in their cart. Offer help choosing a size."}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.9.id","typeLabel":"string"},"type":{"const":"agent_brief","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.9.type","typeLabel":"any"},"config":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","description":"","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.9.config.instruction","typeLabel":"string"},"turn_on_agent":{"type":"boolean","uniqueKey":"definition.steps.items.[INDEX].oneOf.9.config.turn_on_agent","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.9.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.9","typeLabel":"Brief the AI agent · object"},{"type":"object","title":"Wait for a reply","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type"],"example":{"id":"r1","type":"wait_for_reply","config":{"timeout_hours":48}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.10.id","typeLabel":"string"},"type":{"const":"wait_for_reply","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.10.type","typeLabel":"any"},"config":{"type":"object","properties":{"timeout_hours":{"type":"number","uniqueKey":"definition.steps.items.[INDEX].oneOf.10.config.timeout_hours","typeLabel":"number"},"match_keywords":{"type":"array","items":{"type":"string","uniqueKey":"definition.steps.items.[INDEX].oneOf.10.config.match_keywords.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.steps.items.[INDEX].oneOf.10.config.match_keywords","typeLabel":"string[]"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.10.config","typeLabel":"object"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.10","typeLabel":"Wait for a reply · object"},{"type":"object","title":"Sync tags to Shopify","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type"],"example":{"id":"st1","type":"shopify_tags"},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.11.id","typeLabel":"string"},"type":{"const":"shopify_tags","isRequired":true,"uniqueKey":"definition.steps.items.[INDEX].oneOf.11.type","typeLabel":"any"}},"uniqueKey":"definition.steps.items.[INDEX].oneOf.11","typeLabel":"Sync tags to Shopify · object"}],"uniqueKey":"definition.steps.items.[INDEX]","typeLabel":"Wait · object | Only if · object | Split · object | Send a WhatsApp message · object | Send an email · object | Tag or update the contact · object | Make a discount code · object | Alert the team · object | Send to your webhook · object | Brief the AI agent · object | Wait for a reply · object | Sync tags to Shopify · object"},"isRequired":true,"uniqueKey":"definition.steps","typeLabel":"(Wait · object | Only if · object | Split · object | Send a WhatsApp message · object | Send an email · object | Tag or update the contact · object | Make a discount code · object | Alert the team · object | Send to your webhook · object | Brief the AI agent · object | Wait for a reply · object | Sync tags to Shopify · object)[]"},"exit_rules":{"type":"object","description":"Stop rules: checked before every message and after every wait; when they hold the run ends.","properties":{"logic":{"type":"string","enum":["any","all"],"description":"","default":"any","uniqueKey":"definition.exit_rules.logic","typeLabel":"enum\u003cstring>"},"conditions":{"type":"array","items":{"oneOf":[{"type":"object","title":"What they have ordered","description":"One check. All checks in a list must hold unless logic is any.","required":["type","action","operator"],"example":{"type":"event","field":"contact","action":"placed_order","operator":"has_not","timeframe":{"type":"in_the_last","value":45,"unit":"days"}},"properties":{"type":{"const":"event","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.type","typeLabel":"any"},"action":{"type":"string","enum":["placed_order","bought_product"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.action","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.operator","typeLabel":"enum\u003cstring>"},"field":{"const":"contact","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.field","typeLabel":"any"},"timeframe":{"type":"object","description":"When it counts. Leave out for ever.","properties":{"type":{"type":"string","enum":["in_the_last","since_trigger"],"description":"in_the_last = in the last value + unit; since_trigger = only since this run started (the order that started it never counts).","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"in_the_last: how many.","minimum":1,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["days","weeks","months"],"description":"in_the_last: the unit.","default":"days","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.timeframe","typeLabel":"object"},"where":{"type":"object","description":"bought_product: which products. Leave out for any product.","properties":{"field":{"type":"string","enum":["product_title","variant_id","sku","any"],"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.where.field","typeLabel":"enum\u003cstring>"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.where.values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.where.values","typeLabel":"string[]"},"match":{"type":"string","enum":["contains","exact"],"description":"product_title only: contains = part of the name, any case.","default":"exact","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.where.match","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0.where","typeLabel":"object"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.0","typeLabel":"What they have ordered · object"},{"type":"object","title":"What is in this order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","values"],"example":{"type":"line_item_check","field":"title","match":"contains","operator":"has","values":["Mattress"]},"properties":{"type":{"const":"line_item_check","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.type","typeLabel":"any"},"values":{"type":"array","items":{"type":"string","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.values.items.[INDEX]","typeLabel":"string"},"description":"One or more values; any one matching counts.","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.values","typeLabel":"string[]"},"field":{"type":"string","enum":["title","sku","variant_id","product_type","collection"],"description":"collection = the item is in that Shopify collection (checked when the step runs).","default":"title","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.field","typeLabel":"enum\u003cstring>"},"match":{"type":"string","enum":["contains","exact"],"description":"","default":"contains","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.match","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.1","typeLabel":"What is in this order · object"},{"type":"object","title":"A detail of the order or event","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"payload_check","field":"total_price","operator":"gt","value":1500},"properties":{"type":{"const":"payload_check","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.2.type","typeLabel":"any"},"field":{"type":"string","description":"The field, e.g. total_price, financial_status, or a field of your own event.","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.2.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.2.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"What to compare with (not needed for truthy / falsy).","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.2.value","typeLabel":"any"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.2","typeLabel":"A detail of the order or event · object"},{"type":"object","title":"First order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"first_order","operator":"is"},"properties":{"type":{"const":"first_order","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.3.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.3.operator","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.3","typeLabel":"First order · object"},{"type":"object","title":"Still in stock","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"stock_check","require":"all"},"properties":{"type":{"const":"stock_check","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.4.type","typeLabel":"any"},"require":{"type":"string","enum":["all","any"],"description":"","default":"all","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.4.require","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.4","typeLabel":"Still in stock · object"},{"type":"object","title":"A contact field","description":"One check. All checks in a list must hold unless logic is any.","required":["type","data_source","field","operator"],"example":{"type":"property","data_source":"contacts","field":"tags","operator":"not_contains","value":"vip"},"properties":{"type":{"const":"property","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5.type","typeLabel":"any"},"data_source":{"const":"contacts","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5.data_source","typeLabel":"any"},"field":{"type":"string","description":"The contact column, e.g. tags, email, allow_broadcast.","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5.field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"The value to compare with.","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5.value","typeLabel":"any"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.5","typeLabel":"A contact field · object"},{"type":"object","title":"Their subscription","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"sub_status","field":"cancelled","operator":"truthy"},"properties":{"type":{"const":"sub_status","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.6.type","typeLabel":"any"},"field":{"type":"string","description":"e.g. cancelled, paused, status, offered_save_gift, is_test.","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.6.field","typeLabel":"string"},"operator":{"type":"string","enum":["eq","neq","truthy","falsy"],"description":"","default":"eq","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.6.operator","typeLabel":"enum\u003cstring>"},"value":{"description":"For eq / neq.","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.6.value","typeLabel":"any"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.6","typeLabel":"Their subscription · object"},{"type":"object","title":"Not sent recently","description":"One check. All checks in a list must hold unless logic is any.","required":["type","days"],"example":{"type":"flow_not_sent_within","days":30},"properties":{"type":{"const":"flow_not_sent_within","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.7.type","typeLabel":"any"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.7.days","typeLabel":"integer"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.7","typeLabel":"Not sent recently · object"},{"type":"object","title":"Talking to support","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"support_active","operator":"is_not"},"properties":{"type":{"const":"support_active","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.8.type","typeLabel":"any"},"operator":{"type":"string","enum":["is","is_not"],"description":"Use is_not so outreach never cuts into a support conversation.","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.8.operator","typeLabel":"enum\u003cstring>"},"human_reply_hours":{"type":"integer","description":"A team reply within this many hours counts.","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.8.human_reply_hours","typeLabel":"integer"},"customer_message_hours":{"type":"integer","description":"A message from them within this many hours counts.","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.8.customer_message_hours","typeLabel":"integer"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.8","typeLabel":"Talking to support · object"},{"type":"object","title":"Replied","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"replied","operator":"has","timeframe":{"type":"since_trigger"}},"properties":{"type":{"const":"replied","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.type","typeLabel":"any"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.operator","typeLabel":"enum\u003cstring>"},"timeframe":{"type":"object","properties":{"type":{"type":"string","enum":["since_trigger","in_the_last"],"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.timeframe.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"","minimum":1,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.timeframe.value","typeLabel":"integer"},"unit":{"type":"string","enum":["hours","days"],"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.timeframe.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9.timeframe","typeLabel":"object"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.9","typeLabel":"Replied · object"},{"type":"object","title":"Opened or clicked a message","description":"One check. All checks in a list must hold unless logic is any.","required":["type","signal","operator"],"example":{"type":"message_engagement","signal":"opened","operator":"did_not","step_id":"m1"},"properties":{"type":{"const":"message_engagement","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.10.type","typeLabel":"any"},"signal":{"type":"string","enum":["opened","clicked"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.10.signal","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.10.operator","typeLabel":"enum\u003cstring>"},"step_id":{"type":"string","description":"The message step to ask about. Leave out for the last message the flow sent.","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.10.step_id","typeLabel":"string"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.10","typeLabel":"Opened or clicked a message · object"},{"type":"object","title":"Engaged lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"engagement","operator":"not_engaged","days":90},"properties":{"type":{"const":"engagement","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.11.type","typeLabel":"any"},"operator":{"type":"string","enum":["engaged","not_engaged"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.11.operator","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":90,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.11.days","typeLabel":"integer"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.11","typeLabel":"Engaged lately · object"},{"type":"object","title":"On the store lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"store_activity","operator":"did","event":"product_viewed","days":7},"properties":{"type":{"const":"store_activity","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.12.type","typeLabel":"any"},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.12.operator","typeLabel":"enum\u003cstring>"},"event":{"type":"string","enum":["any","product_viewed","product_added_to_cart","checkout_started"],"description":"","default":"any","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.12.event","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":7,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.12.days","typeLabel":"integer"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.12","typeLabel":"On the store lately · object"},{"type":"object","title":"Comparison group","description":"One check. All checks in a list must hold unless logic is any.","required":["type","holdout_pct"],"example":{"type":"holdout_check","holdout_pct":10,"programme":"replenishment"},"properties":{"type":{"const":"holdout_check","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.13.type","typeLabel":"any"},"holdout_pct":{"type":"integer","description":"The share held out, 1-99.","minimum":1,"maximum":99,"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.13.holdout_pct","typeLabel":"integer"},"programme":{"type":"string","description":"Name the group so several flows share it.","default":"default","uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.13.programme","typeLabel":"string"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.13","typeLabel":"Comparison group · object"},{"type":"object","title":"Random share (split paths only)","description":"One check. All checks in a list must hold unless logic is any.","required":["type","percent"],"example":{"type":"random_sample","percent":50},"properties":{"type":{"const":"random_sample","isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.14.type","typeLabel":"any"},"percent":{"type":"integer","description":"","minimum":1,"maximum":100,"isRequired":true,"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.14.percent","typeLabel":"integer"}},"uniqueKey":"definition.exit_rules.conditions.items.[INDEX].oneOf.14","typeLabel":"Random share (split paths only) · object"}],"uniqueKey":"definition.exit_rules.conditions.items.[INDEX]","typeLabel":"What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object"},"uniqueKey":"definition.exit_rules.conditions","typeLabel":"(What they have ordered · object | What is in this order · object | A detail of the order or event · object | First order · object | Still in stock · object | A contact field · object | Their subscription · object | Not sent recently · object | Talking to support · object | Replied · object | Opened or clicked a message · object | Engaged lately · object | On the store lately · object | Comparison group · object | Random share (split paths only) · object)[]"}},"uniqueKey":"definition.exit_rules","typeLabel":"object"},"reenter_after_days":{"type":"integer","description":"With repeat reenter_after: how many days before the same person can go through again.","minimum":1,"maximum":365,"default":30,"uniqueKey":"definition.reenter_after_days","typeLabel":"integer"},"schedule":{"type":"object","description":"Switch the flow on and / or off at a set time (checked every 5 minutes; each time is used once).","properties":{"on_at":{"type":"string","description":"ISO 8601","format":"date-time","uniqueKey":"definition.schedule.on_at","typeLabel":"string\u003cdate-time>"},"off_at":{"type":"string","description":"ISO 8601","format":"date-time","uniqueKey":"definition.schedule.off_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"definition.schedule","typeLabel":"object"}},"uniqueKey":"definition","typeLabel":"Flow definition · object"},"etag":{"type":"string","description":"Send it back as If-Match when you change the flow.","example":"3f9a1c0d7e2b4a61","uniqueKey":"etag","typeLabel":"string"},"stats":{"oneOf":[{"type":"object","additionalProperties":true,"example":{"total_sent":0,"total_triggered":0},"uniqueKey":"stats.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"example":{"total_sent":0,"total_triggered":0},"uniqueKey":"stats.oneOf.1","typeLabel":"null"}],"uniqueKey":"stats","typeLabel":"object | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"Abandoned checkout","description":"\u003cstring>","status":"off","repeat":"off","trigger":{"type":"event","event":"orders/paid","source":"shopify"},"definition":{"trigger":{"type":"event","event":"checkouts/create","source":"shopify"},"steps":[{"id":"w1","type":"delay","value":1,"unit":"hours"},{"id":"m1","type":"action","action_type":"send_message","config":{"template_name":"cart_reminder_v1","body_parameters":{"param1":"{{contact.first_name}}"}}}]},"etag":"3f9a1c0d7e2b4a61","stats":{"total_sent":0,"total_triggered":0},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"51c02f38-97e4-4919-afcc-a5dd3fd36528":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","uniqueKey":"request_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"94fa302e-3870-464c-a9a4-9befce8099d9":{"description":"The key lacks the read or write scope (code forbidden_scope)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","uniqueKey":"request_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"a3fff63d-e113-48e8-990d-54c4bab0b180":{"description":"No flow with that id in your organisation (code not_found)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","uniqueKey":"request_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"894937d6-1dfc-48b7-ac84-f574e2a51822":{"description":"More than 600 reads or 60 changes a minute per key; Retry-After says when","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","uniqueKey":"request_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"07abddc2-6201-4339-9890-b7504147f8a8":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"fiq_ API key","description":"Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"070b5a61-3d50-47be-b889-6fc4eb5b5e68":{"url":"https://api.flowiq.live","description":"FlowIQ Production API"}},"schemas":{"381f99a5-e5a3-4ecf-8cf9-c7581fdbfcbb":{"oneOf":[{"type":"object","title":"Wait","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","value","unit"],"example":{"id":"w1","type":"delay","value":1,"unit":"days","until_time":"09:00","weekdays":[1,2,3,4,5]},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"delay","isRequired":true},"value":{"type":"number","minimum":0,"isRequired":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months"],"isRequired":true},"until_time":{"type":"string","description":"HH:MM, 24-hour, South African time.","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"description":"1 = Monday … 7 = Sunday."}}},{"type":"object","title":"Only if","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"c1","type":"condition","config":{"logic":"all","conditions":[{"type":"first_order","operator":"is"}]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"condition","isRequired":true},"config":{"type":"object","required":["conditions"],"properties":{"conditions":{"type":"array","items":{"oneOf":[{"type":"object","title":"What they have ordered","description":"One check. All checks in a list must hold unless logic is any.","required":["type","action","operator"],"example":{"type":"event","field":"contact","action":"placed_order","operator":"has_not","timeframe":{"type":"in_the_last","value":45,"unit":"days"}},"properties":{"type":{"const":"event","isRequired":true},"action":{"type":"string","enum":["placed_order","bought_product"],"isRequired":true},"operator":{"type":"string","enum":["has","has_not"],"isRequired":true},"field":{"const":"contact"},"timeframe":{"type":"object","description":"When it counts. Leave out for ever.","properties":{"type":{"type":"string","enum":["in_the_last","since_trigger"],"description":"in_the_last = in the last value + unit; since_trigger = only since this run started (the order that started it never counts)."},"value":{"type":"integer","description":"in_the_last: how many.","minimum":1},"unit":{"type":"string","enum":["days","weeks","months"],"description":"in_the_last: the unit.","default":"days"}}},"where":{"type":"object","description":"bought_product: which products. Leave out for any product.","properties":{"field":{"type":"string","enum":["product_title","variant_id","sku","any"]},"values":{"type":"array","items":{"type":"string"}},"match":{"type":"string","enum":["contains","exact"],"description":"product_title only: contains = part of the name, any case.","default":"exact"}}}}},{"type":"object","title":"What is in this order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","values"],"example":{"type":"line_item_check","field":"title","match":"contains","operator":"has","values":["Mattress"]},"properties":{"type":{"const":"line_item_check","isRequired":true},"values":{"type":"array","items":{"type":"string"},"description":"One or more values; any one matching counts.","isRequired":true},"field":{"type":"string","enum":["title","sku","variant_id","product_type","collection"],"description":"collection = the item is in that Shopify collection (checked when the step runs).","default":"title"},"match":{"type":"string","enum":["contains","exact"],"description":"","default":"contains"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has"}}},{"type":"object","title":"A detail of the order or event","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"payload_check","field":"total_price","operator":"gt","value":1500},"properties":{"type":{"const":"payload_check","isRequired":true},"field":{"type":"string","description":"The field, e.g. total_price, financial_status, or a field of your own event.","isRequired":true},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","truthy","falsy"],"description":"","default":"eq"},"value":{"description":"What to compare with (not needed for truthy / falsy)."}}},{"type":"object","title":"First order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"first_order","operator":"is"},"properties":{"type":{"const":"first_order","isRequired":true},"operator":{"type":"string","enum":["is","is_not"],"isRequired":true}}},{"type":"object","title":"Still in stock","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"stock_check","require":"all"},"properties":{"type":{"const":"stock_check","isRequired":true},"require":{"type":"string","enum":["all","any"],"description":"","default":"all"}}},{"type":"object","title":"A contact field","description":"One check. All checks in a list must hold unless logic is any.","required":["type","data_source","field","operator"],"example":{"type":"property","data_source":"contacts","field":"tags","operator":"not_contains","value":"vip"},"properties":{"type":{"const":"property","isRequired":true},"data_source":{"const":"contacts","isRequired":true},"field":{"type":"string","description":"The contact column, e.g. tags, email, allow_broadcast.","isRequired":true},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains"],"isRequired":true},"value":{"description":"The value to compare with."}}},{"type":"object","title":"Their subscription","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"sub_status","field":"cancelled","operator":"truthy"},"properties":{"type":{"const":"sub_status","isRequired":true},"field":{"type":"string","description":"e.g. cancelled, paused, status, offered_save_gift, is_test.","isRequired":true},"operator":{"type":"string","enum":["eq","neq","truthy","falsy"],"description":"","default":"eq"},"value":{"description":"For eq / neq."}}},{"type":"object","title":"Not sent recently","description":"One check. All checks in a list must hold unless logic is any.","required":["type","days"],"example":{"type":"flow_not_sent_within","days":30},"properties":{"type":{"const":"flow_not_sent_within","isRequired":true},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"isRequired":true}}},{"type":"object","title":"Talking to support","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"support_active","operator":"is_not"},"properties":{"type":{"const":"support_active","isRequired":true},"operator":{"type":"string","enum":["is","is_not"],"description":"Use is_not so outreach never cuts into a support conversation.","isRequired":true},"human_reply_hours":{"type":"integer","description":"A team reply within this many hours counts."},"customer_message_hours":{"type":"integer","description":"A message from them within this many hours counts."}}},{"type":"object","title":"Replied","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"replied","operator":"has","timeframe":{"type":"since_trigger"}},"properties":{"type":{"const":"replied","isRequired":true},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has"},"timeframe":{"type":"object","properties":{"type":{"type":"string","enum":["since_trigger","in_the_last"]},"value":{"type":"integer","description":"","minimum":1},"unit":{"type":"string","enum":["hours","days"]}}}}},{"type":"object","title":"Opened or clicked a message","description":"One check. All checks in a list must hold unless logic is any.","required":["type","signal","operator"],"example":{"type":"message_engagement","signal":"opened","operator":"did_not","step_id":"m1"},"properties":{"type":{"const":"message_engagement","isRequired":true},"signal":{"type":"string","enum":["opened","clicked"],"isRequired":true},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true},"step_id":{"type":"string","description":"The message step to ask about. Leave out for the last message the flow sent."}}},{"type":"object","title":"Engaged lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"engagement","operator":"not_engaged","days":90},"properties":{"type":{"const":"engagement","isRequired":true},"operator":{"type":"string","enum":["engaged","not_engaged"],"isRequired":true},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":90}}},{"type":"object","title":"On the store lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"store_activity","operator":"did","event":"product_viewed","days":7},"properties":{"type":{"const":"store_activity","isRequired":true},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true},"event":{"type":"string","enum":["any","product_viewed","product_added_to_cart","checkout_started"],"description":"","default":"any"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":7}}},{"type":"object","title":"Comparison group","description":"One check. All checks in a list must hold unless logic is any.","required":["type","holdout_pct"],"example":{"type":"holdout_check","holdout_pct":10,"programme":"replenishment"},"properties":{"type":{"const":"holdout_check","isRequired":true},"holdout_pct":{"type":"integer","description":"The share held out, 1-99.","minimum":1,"maximum":99,"isRequired":true},"programme":{"type":"string","description":"Name the group so several flows share it.","default":"default"}}},{"type":"object","title":"Random share (split paths only)","description":"One check. All checks in a list must hold unless logic is any.","required":["type","percent"],"example":{"type":"random_sample","percent":50},"properties":{"type":{"const":"random_sample","isRequired":true},"percent":{"type":"integer","description":"","minimum":1,"maximum":100,"isRequired":true}}}]},"isRequired":true},"logic":{"type":"string","enum":["all","any"],"description":"","default":"all"}},"isRequired":true}}},{"type":"object","title":"Split","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"s1","type":"split","config":{"paths":[{"id":"pa","name":"A","conditions":[{"type":"random_sample","percent":50}],"steps":[]}],"otherwise":{"id":"po","name":"Everyone else","steps":[]},"ab":{"auto":true,"metric":"clicked"}}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"split","isRequired":true},"config":{"type":"object","required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"maxItems":19,"items":{"type":"object","required":["id","name","conditions"],"properties":{"id":{"type":"string","description":"Path id.","isRequired":true},"name":{"type":"string","description":"Shown in the editor and the report.","isRequired":true},"conditions":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","title":"What they have ordered","description":"One check. All checks in a list must hold unless logic is any.","required":["type","action","operator"],"example":{"type":"event","field":"contact","action":"placed_order","operator":"has_not","timeframe":{"type":"in_the_last","value":45,"unit":"days"}},"properties":{"type":{"const":"event","isRequired":true},"action":{"type":"string","enum":["placed_order","bought_product"],"isRequired":true},"operator":{"type":"string","enum":["has","has_not"],"isRequired":true},"field":{"const":"contact"},"timeframe":{"type":"object","description":"When it counts. Leave out for ever.","properties":{"type":{"type":"string","enum":["in_the_last","since_trigger"],"description":"in_the_last = in the last value + unit; since_trigger = only since this run started (the order that started it never counts)."},"value":{"type":"integer","description":"in_the_last: how many.","minimum":1},"unit":{"type":"string","enum":["days","weeks","months"],"description":"in_the_last: the unit.","default":"days"}}},"where":{"type":"object","description":"bought_product: which products. Leave out for any product.","properties":{"field":{"type":"string","enum":["product_title","variant_id","sku","any"]},"values":{"type":"array","items":{"type":"string"}},"match":{"type":"string","enum":["contains","exact"],"description":"product_title only: contains = part of the name, any case.","default":"exact"}}}}},{"type":"object","title":"What is in this order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","values"],"example":{"type":"line_item_check","field":"title","match":"contains","operator":"has","values":["Mattress"]},"properties":{"type":{"const":"line_item_check","isRequired":true},"values":{"type":"array","items":{"type":"string"},"description":"One or more values; any one matching counts.","isRequired":true},"field":{"type":"string","enum":["title","sku","variant_id","product_type","collection"],"description":"collection = the item is in that Shopify collection (checked when the step runs).","default":"title"},"match":{"type":"string","enum":["contains","exact"],"description":"","default":"contains"},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has"}}},{"type":"object","title":"A detail of the order or event","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"payload_check","field":"total_price","operator":"gt","value":1500},"properties":{"type":{"const":"payload_check","isRequired":true},"field":{"type":"string","description":"The field, e.g. total_price, financial_status, or a field of your own event.","isRequired":true},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","truthy","falsy"],"description":"","default":"eq"},"value":{"description":"What to compare with (not needed for truthy / falsy)."}}},{"type":"object","title":"First order","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"first_order","operator":"is"},"properties":{"type":{"const":"first_order","isRequired":true},"operator":{"type":"string","enum":["is","is_not"],"isRequired":true}}},{"type":"object","title":"Still in stock","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"stock_check","require":"all"},"properties":{"type":{"const":"stock_check","isRequired":true},"require":{"type":"string","enum":["all","any"],"description":"","default":"all"}}},{"type":"object","title":"A contact field","description":"One check. All checks in a list must hold unless logic is any.","required":["type","data_source","field","operator"],"example":{"type":"property","data_source":"contacts","field":"tags","operator":"not_contains","value":"vip"},"properties":{"type":{"const":"property","isRequired":true},"data_source":{"const":"contacts","isRequired":true},"field":{"type":"string","description":"The contact column, e.g. tags, email, allow_broadcast.","isRequired":true},"operator":{"type":"string","enum":["equals","not_equals","contains","not_contains"],"isRequired":true},"value":{"description":"The value to compare with."}}},{"type":"object","title":"Their subscription","description":"One check. All checks in a list must hold unless logic is any.","required":["type","field"],"example":{"type":"sub_status","field":"cancelled","operator":"truthy"},"properties":{"type":{"const":"sub_status","isRequired":true},"field":{"type":"string","description":"e.g. cancelled, paused, status, offered_save_gift, is_test.","isRequired":true},"operator":{"type":"string","enum":["eq","neq","truthy","falsy"],"description":"","default":"eq"},"value":{"description":"For eq / neq."}}},{"type":"object","title":"Not sent recently","description":"One check. All checks in a list must hold unless logic is any.","required":["type","days"],"example":{"type":"flow_not_sent_within","days":30},"properties":{"type":{"const":"flow_not_sent_within","isRequired":true},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"isRequired":true}}},{"type":"object","title":"Talking to support","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"support_active","operator":"is_not"},"properties":{"type":{"const":"support_active","isRequired":true},"operator":{"type":"string","enum":["is","is_not"],"description":"Use is_not so outreach never cuts into a support conversation.","isRequired":true},"human_reply_hours":{"type":"integer","description":"A team reply within this many hours counts."},"customer_message_hours":{"type":"integer","description":"A message from them within this many hours counts."}}},{"type":"object","title":"Replied","description":"One check. All checks in a list must hold unless logic is any.","required":["type"],"example":{"type":"replied","operator":"has","timeframe":{"type":"since_trigger"}},"properties":{"type":{"const":"replied","isRequired":true},"operator":{"type":"string","enum":["has","has_not"],"description":"","default":"has"},"timeframe":{"type":"object","properties":{"type":{"type":"string","enum":["since_trigger","in_the_last"]},"value":{"type":"integer","description":"","minimum":1},"unit":{"type":"string","enum":["hours","days"]}}}}},{"type":"object","title":"Opened or clicked a message","description":"One check. All checks in a list must hold unless logic is any.","required":["type","signal","operator"],"example":{"type":"message_engagement","signal":"opened","operator":"did_not","step_id":"m1"},"properties":{"type":{"const":"message_engagement","isRequired":true},"signal":{"type":"string","enum":["opened","clicked"],"isRequired":true},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true},"step_id":{"type":"string","description":"The message step to ask about. Leave out for the last message the flow sent."}}},{"type":"object","title":"Engaged lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"engagement","operator":"not_engaged","days":90},"properties":{"type":{"const":"engagement","isRequired":true},"operator":{"type":"string","enum":["engaged","not_engaged"],"isRequired":true},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":90}}},{"type":"object","title":"On the store lately","description":"One check. All checks in a list must hold unless logic is any.","required":["type","operator"],"example":{"type":"store_activity","operator":"did","event":"product_viewed","days":7},"properties":{"type":{"const":"store_activity","isRequired":true},"operator":{"type":"string","enum":["did","did_not"],"isRequired":true},"event":{"type":"string","enum":["any","product_viewed","product_added_to_cart","checkout_started"],"description":"","default":"any"},"days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":7}}},{"type":"object","title":"Comparison group","description":"One check. All checks in a list must hold unless logic is any.","required":["type","holdout_pct"],"example":{"type":"holdout_check","holdout_pct":10,"programme":"replenishment"},"properties":{"type":{"const":"holdout_check","isRequired":true},"holdout_pct":{"type":"integer","description":"The share held out, 1-99.","minimum":1,"maximum":99,"isRequired":true},"programme":{"type":"string","description":"Name the group so several flows share it.","default":"default"}}},{"type":"object","title":"Random share (split paths only)","description":"One check. All checks in a list must hold unless logic is any.","required":["type","percent"],"example":{"type":"random_sample","percent":50},"properties":{"type":{"const":"random_sample","isRequired":true},"percent":{"type":"integer","description":"","minimum":1,"maximum":100,"isRequired":true}}}]},"isRequired":true},"logic":{"type":"string","enum":["all","any"],"description":"","default":"all"},"steps":{"type":"array","items":{"$circularRef":"381f99a5-e5a3-4ecf-8cf9-c7581fdbfcbb"}}}},"isRequired":true},"otherwise":{"type":"object","description":"Everyone else.","properties":{"id":{"type":"string","description":""},"name":{"type":"string","description":"","default":"Everyone else"},"steps":{"type":"array","items":{"$circularRef":"381f99a5-e5a3-4ecf-8cf9-c7581fdbfcbb"}}}},"ab":{"type":"object","description":"A/B test that decides itself.","properties":{"auto":{"type":"boolean"},"metric":{"type":"string","enum":["clicked","orders","revenue","read"],"description":"","default":"clicked"},"min_per_path":{"type":"integer","description":"People per path before deciding.","minimum":1},"max_days":{"type":"integer","description":"Decide after this many days at the latest.","minimum":1}}}},"isRequired":true}}},{"type":"object","title":"Send a WhatsApp message","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","action_type","config"],"example":{"id":"m1","type":"action","action_type":"send_message","config":{"template_name":"cart_reminder_v1","body_parameters":{"param1":"{{contact.first_name}}"},"button_parameters":{"param1":"{{cart_link_code}}"}}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"action","isRequired":true},"action_type":{"const":"send_message","isRequired":true},"config":{"type":"object","required":["template_name"],"properties":{"template_name":{"type":"string","description":"An approved template. While building, \"choose-template\" with send_status draft is allowed.","isRequired":true},"body_parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"param1 … paramN for the template's body variables. Values may use merge fields."},"button_parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"param1 for a dynamic-URL button."},"header_media_strategy":{"type":"string","description":"custom = use header_media_url; leave out for the template's own media; other values pick an image of a product in the order."},"header_media_url":{"type":"string","description":"custom header image / video / document (public URL)."},"send_status":{"type":"string","enum":["live","manual","draft"],"description":"manual = waits for your OK in the app; draft = skipped.","default":"live"},"skip_smart_sending":{"type":"boolean","description":"Ignore the account's message cap for this message.","default":false},"button_followups":{"type":"object","description":"What happens when they tap a quick-reply button (messages outside a split, after every wait).","properties":{"wait_days":{"type":"integer","description":"How long a tap still counts.","minimum":1,"maximum":30,"default":7},"buttons":{"type":"array","maxItems":10,"items":{"type":"object","required":["button","reply"],"properties":{"button":{"type":"string","description":"The button's label.","isRequired":true},"reply":{"type":"string","enum":["message","agent","none"],"isRequired":true},"message":{"type":"string","description":"reply message: the text (up to 1,024)."},"add_tags":{"type":"array","items":{"type":"string"}},"remove_tags":{"type":"array","items":{"type":"string"}},"assign_to":{"type":"string","description":"A team member's user id."},"agent_off":{"type":"boolean"}}}}}}},"isRequired":true}}},{"type":"object","title":"Send an email","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"e1","type":"email","config":{"subject":"Still thinking it over, {{contact.first_name}}?","body":"Your cart is waiting: {{cart_link}}"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"email","isRequired":true},"config":{"type":"object","required":["subject"],"properties":{"subject":{"type":"string","description":"May use merge fields.","isRequired":true},"body":{"type":"string","description":"Plain text (when content is not design)."},"content":{"type":"string","enum":["text","design"],"description":"","default":"text"},"design":{"type":"object","description":"content design: an email builder design { version, settings, blocks }."},"require_consent":{"type":"boolean","default":true},"send_status":{"type":"string","enum":["live","manual","draft"],"description":"","default":"live"}},"isRequired":true}}},{"type":"object","title":"Tag or update the contact","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"t1","type":"update_contact","config":{"operations":[{"op":"add_tag","value":"cart-reminded"}]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"update_contact","isRequired":true},"config":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","minItems":1,"items":{"type":"object","required":["op"],"properties":{"op":{"type":"string","enum":["add_tag","remove_tag","set_attribute"],"isRequired":true},"value":{"type":"string","description":"The tag, or the attribute's value."},"key":{"type":"string","description":"set_attribute: the attribute name."}}},"isRequired":true}},"isRequired":true}}},{"type":"object","title":"Make a discount code","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"d1","type":"discount_code","config":{"kind":"percentage","value":10,"expiry_days":14,"code_prefix":"COMEBACK"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"discount_code","isRequired":true},"config":{"type":"object","properties":{"kind":{"type":"string","enum":["percentage","fixed_amount","free_shipping"],"description":"","default":"percentage"},"value":{"type":"number","description":"percentage: 1-100; fixed_amount: above 0."},"expiry_days":{"type":"integer","description":"","minimum":1,"maximum":365,"default":30},"code_prefix":{"type":"string","description":"e.g. COMEBACK"},"min_subtotal":{"type":"number"},"collection_gid":{"type":"string","description":"Shopify: only for this collection."}},"isRequired":true}}},{"type":"object","title":"Alert the team","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"a1","type":"alert","config":{"message":"{{contact.full_name}} ordered over R5,000","emails":["sales@example.com"]}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"alert","isRequired":true},"config":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"May use merge fields.","isRequired":true},"team_id":{"type":"string","description":"A team id."},"whatsapp_numbers":{"type":"array","items":{"type":"string"}},"emails":{"type":"array","items":{"type":"string"}},"include_link":{"type":"boolean","description":"Add a link to the chat."}},"isRequired":true}}},{"type":"object","title":"Send to your webhook","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"h1","type":"webhook","config":{"webhook_id":"0b9f7a4e-2c1d-4e8a-9a51-6d2f0c7b1e33"}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"webhook","isRequired":true},"config":{"type":"object","required":["webhook_id"],"properties":{"webhook_id":{"type":"string","description":"The webhook's id.","isRequired":true}},"isRequired":true}}},{"type":"object","title":"Brief the AI agent","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type","config"],"example":{"id":"b1","type":"agent_brief","config":{"instruction":"They left a mattress in their cart. Offer help choosing a size."}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"agent_brief","isRequired":true},"config":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","description":"","isRequired":true},"turn_on_agent":{"type":"boolean"}},"isRequired":true}}},{"type":"object","title":"Wait for a reply","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type"],"example":{"id":"r1","type":"wait_for_reply","config":{"timeout_hours":48}},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"wait_for_reply","isRequired":true},"config":{"type":"object","properties":{"timeout_hours":{"type":"number"},"match_keywords":{"type":"array","items":{"type":"string"}}}}}},{"type":"object","title":"Sync tags to Shopify","description":"One step. Steps run top to bottom; a split ends its list.","required":["id","type"],"example":{"id":"st1","type":"shopify_tags"},"properties":{"id":{"type":"string","description":"Your id for this step, unique in the flow (letters, digits, _ and -). The report and the editor refer to steps by it.","example":"m1","isRequired":true},"type":{"const":"shopify_tags","isRequired":true}}}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"fiq_ API key","description":"Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer token. Format: `Bearer fiq_YOUR_API_KEY`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"flowiq-api-reference/openapi-flows.json"},"subdomain":"flowapt","siteName":"FlowIQ API Documentation","title":"Get a flow - FlowIQ API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T20:50:07.483Z","originalFileLocation":"flowiq-api-reference/endpoint/get-flow.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=\"One flow with its full definition and its etag. Scope: read.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FlowIQ API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a flow - FlowIQ API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"One flow with its full definition and its etag. Scope: read.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FlowIQ API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flowapt.mintlify.site/_mintlify/api/og/v2?division=Manage+flows\u0026amp;title=Get+a+flow\u0026amp;description=One+flow+with+its+full+definition+and+its+etag.+Scope%3A+read.\u0026amp;theme=5d3902551c83490f1113d1b6\u0026amp;signature=c56643ce0e8c717b119faddf9073c221cd8f9962d89f409092ad85990a3eba42\">\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=\"Get a flow - FlowIQ API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One flow with its full definition and its etag. Scope: read.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flowapt.mintlify.site/_mintlify/api/og/v2?division=Manage+flows\u0026amp;title=Get+a+flow\u0026amp;description=One+flow+with+its+full+definition+and+its+etag.+Scope%3A+read.\u0026amp;theme=5d3902551c83490f1113d1b6\u0026amp;signature=c56643ce0e8c717b119faddf9073c221cd8f9962d89f409092ad85990a3eba42\">\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/flowapt/WfinyEZfsUDoAQO_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FlowIQ API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C4520F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flowiq-api-reference/endpoint/get-flow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flowapt.com/#organization\",\"name\":\"FlowIQ API Documentation\",\"url\":\"https://docs.flowapt.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flowapt/QUdYGUKLfZc69ji2/light-top-left.png?fit=max\u0026auto=format\u0026n=QUdYGUKLfZc69ji2\u0026q=85\u0026s=15f1f6f316bbdf2d7518f3a9d2332758\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flowapt.com#website\",\"name\":\"FlowIQ API Documentation\",\"url\":\"https://docs.flowapt.com\",\"publisher\":{\"@id\":\"https://docs.flowapt.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow#webpage\",\"url\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow\",\"name\":\"Get a flow\",\"description\":\"One flow with its full definition and its etag. Scope: read.\",\"dateModified\":\"2026-12-01T20:50:07.483Z\",\"isPartOf\":{\"@id\":\"https://docs.flowapt.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Flows\",\"item\":\"https://docs.flowapt.com/flowiq-api-reference/flows-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manage flows\",\"item\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/list-flows\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get a flow\",\"item\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow#apireference\",\"headline\":\"Get a flow\",\"name\":\"Get a flow\",\"description\":\"One flow with its full definition and its etag. Scope: read.\",\"url\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flowapt.com/flowiq-api-reference/endpoint/get-flow#webpage\"},\"dateModified\":\"2026-12-01T20:50:07.483Z\",\"publisher\":{\"@id\":\"https://docs.flowapt.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flowapt.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FlowIQ API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FlowIQ API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/flowiq-api-reference/endpoint/get-flow.md","siteName":"FlowIQ API Documentation","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"square-terminal","href":"https://app.flowiq.live"},{"anchor":"Support","icon":"envelope","href":"mailto:dev@flowapt.com"},{"anchor":"Flowapt","icon":"globe","href":"https://flowapt.com"}]},"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/index"},{"title":"Quickstart","href":"/flowiq-quickstart"},{"title":"Conventions","href":"/flowiq-api-reference/conventions"}]},{"group":"WhatsApp","pages":[{"group":"Send Messages","pages":[{"title":"Send Text Message","openapi":"flowiq-api-reference/openapi-send-text.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-text"},{"title":"Send Image","openapi":"flowiq-api-reference/openapi-send-image.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-image"},{"title":"Send Video","openapi":"flowiq-api-reference/openapi-send-video.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-video"},{"title":"Send Audio","openapi":"flowiq-api-reference/openapi-send-audio.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-audio"},{"title":"Send Document","openapi":"flowiq-api-reference/openapi-send-document.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-document"},{"title":"Send Location","openapi":"flowiq-api-reference/openapi-send-location.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-location"},{"title":"Send Contact Card","openapi":"flowiq-api-reference/openapi-send-contacts.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-contacts"},{"title":"Send Interactive Buttons","openapi":"flowiq-api-reference/openapi-send-interactive-buttons.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-interactive-buttons"},{"title":"Send Interactive List","openapi":"flowiq-api-reference/openapi-send-interactive-list.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-interactive-list"},{"title":"Send Reaction","openapi":"flowiq-api-reference/openapi-send-reaction.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-reaction"},{"title":"Send Typing Indicator","openapi":"flowiq-api-reference/openapi-send-typing.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-typing"},{"title":"Mark Message as Read","openapi":"flowiq-api-reference/openapi-send-read.json POST /send-whatsapp","href":"/flowiq-api-reference/endpoint/send-read"}]},{"group":"Templates \u0026 Broadcasts","pages":[{"title":"Send Template","openapi":"flowiq-api-reference/openapi-send-template.json POST /send-template","href":"/flowiq-api-reference/endpoint/send-template"},{"title":"Broadcast Analytics","openapi":"flowiq-api-reference/openapi-broadcast-analytics.json GET /broadcast-analytics","href":"/flowiq-api-reference/endpoint/broadcast-analytics"}]},{"group":"Contacts \u0026 Conversations","pages":[{"title":"Get Contact","openapi":"flowiq-api-reference/openapi.json GET /contact","href":"/flowiq-api-reference/endpoint/get-contact"},{"title":"Create Contact","openapi":"POST /contact","href":"/flowiq-api-reference/endpoint/contact"},{"title":"Conversations","openapi":"GET /conversations","href":"/flowiq-api-reference/endpoint/conversations"}]}]},{"group":"Calling","pages":[{"title":"Calling","href":"/flowiq-api-reference/calling"},{"group":"Calls","pages":[{"title":"List Calls","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls","href":"/flowiq-api-reference/endpoint/list-calls"},{"title":"Get Call","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls/{call_id}","href":"/flowiq-api-reference/endpoint/get-call"},{"title":"Start Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls","href":"/flowiq-api-reference/endpoint/start-call"}]},{"group":"Answer and end","pages":[{"title":"Pre-accept Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/pre-accept","href":"/flowiq-api-reference/endpoint/pre-accept-call"},{"title":"Accept Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/accept","href":"/flowiq-api-reference/endpoint/accept-call"},{"title":"Reject Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/reject","href":"/flowiq-api-reference/endpoint/reject-call"},{"title":"End Call","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/terminate","href":"/flowiq-api-reference/endpoint/end-call"}]},{"group":"Permission","pages":[{"title":"Get Call Permission","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calls/permissions/{whatsapp_id}","href":"/flowiq-api-reference/endpoint/get-call-permission"},{"title":"Request Call Permission","openapi":"flowiq-api-reference/openapi-calls.json POST /v1/calls/permission-requests","href":"/flowiq-api-reference/endpoint/request-call-permission"}]},{"group":"Settings","pages":[{"title":"Get Calling Settings","openapi":"flowiq-api-reference/openapi-calls.json GET /v1/calling/settings","href":"/flowiq-api-reference/endpoint/get-calling-settings"},{"title":"Update Calling Settings","openapi":"flowiq-api-reference/openapi-calls.json PATCH /v1/calling/settings","href":"/flowiq-api-reference/endpoint/update-calling-settings"}]}]},{"group":"Instagram","pages":[{"title":"Instagram API","sidebarTitle":"Overview","href":"/flowiq-api-reference/instagram"},{"group":"Send Messages","pages":[{"title":"Send Instagram Text","sidebarTitle":"Send Text Message","openapi":"flowiq-api-reference/openapi-instagram-send-text.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-text"},{"title":"Send Instagram Image","sidebarTitle":"Send Image","openapi":"flowiq-api-reference/openapi-instagram-send-image.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-image"},{"title":"Send Instagram Video","sidebarTitle":"Send Video","openapi":"flowiq-api-reference/openapi-instagram-send-video.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-video"},{"title":"Send Instagram Audio","sidebarTitle":"Send Audio","openapi":"flowiq-api-reference/openapi-instagram-send-audio.json POST /send-instagram","href":"/flowiq-api-reference/endpoint/send-instagram-audio"}]},{"title":"Instagram Conversations","sidebarTitle":"Conversations","openapi":"flowiq-api-reference/openapi-instagram.json GET /instagram-conversations","href":"/flowiq-api-reference/endpoint/instagram-conversations"}]},{"group":"Messenger","pages":[{"title":"Messenger API","sidebarTitle":"Overview","href":"/flowiq-api-reference/messenger"},{"group":"Send Messages","pages":[{"title":"Send Messenger Text","sidebarTitle":"Send Text Message","openapi":"flowiq-api-reference/openapi-messenger-send-text.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-text"},{"title":"Send Messenger Image","sidebarTitle":"Send Image","openapi":"flowiq-api-reference/openapi-messenger-send-image.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-image"},{"title":"Send Messenger Video","sidebarTitle":"Send Video","openapi":"flowiq-api-reference/openapi-messenger-send-video.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-video"},{"title":"Send Messenger Audio","sidebarTitle":"Send Audio","openapi":"flowiq-api-reference/openapi-messenger-send-audio.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-audio"},{"title":"Send Messenger File","sidebarTitle":"Send File","openapi":"flowiq-api-reference/openapi-messenger-send-file.json POST /send-messenger","href":"/flowiq-api-reference/endpoint/send-messenger-file"}]},{"title":"Messenger Conversations","sidebarTitle":"Conversations","openapi":"flowiq-api-reference/openapi-messenger.json GET /messenger-conversations","href":"/flowiq-api-reference/endpoint/messenger-conversations"}]},{"group":"Subscriptions","pages":[{"title":"Subscriptions","href":"/flowiq-api-reference/subscriptions"},{"title":"List Subscriptions","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions","href":"/flowiq-api-reference/endpoint/list-subscriptions"},{"title":"Get Subscription","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/{id}","href":"/flowiq-api-reference/endpoint/get-subscription"},{"title":"Upcoming Deliveries","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/upcoming","href":"/flowiq-api-reference/endpoint/upcoming-deliveries"},{"title":"Subscription by Shopify Order","openapi":"flowiq-api-reference/openapi-subscriptions.json GET /v1/subscriptions/by-order/{order_id}","href":"/flowiq-api-reference/endpoint/subscription-by-order"},{"title":"Change a subscription","openapi":"flowiq-api-reference/openapi-subscription-changes.json POST /v1/subscriptions/{id}/{action}","href":"/flowiq-api-reference/change-subscription"},{"title":"Subscription Webhooks","href":"/flowiq-api-reference/subscription-webhooks"}]},{"group":"Tickets","pages":[{"title":"Update a ticket","openapi":"flowiq-api-reference/openapi-tickets.json PATCH /v1/tickets/{ticket}","href":"/flowiq-api-reference/update-ticket"},{"title":"Ticket Events","href":"/flowiq-api-reference/ticket-webhooks"}]},{"group":"Flows","pages":[{"title":"Flows","href":"/flowiq-api-reference/flows-api"},{"title":"Flow definition reference","sidebarTitle":"Definition reference","href":"/flowiq-api-reference/flow-definition"},{"group":"Manage flows","pages":[{"title":"List flows","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows","description":"Your organisation's flows, oldest first, 50 a page. Scope: read.","href":"/flowiq-api-reference/endpoint/list-flows"},{"title":"Get a flow","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/get-flow"},{"title":"Create a flow","openapi":"flowiq-api-reference/openapi-flows.json POST /v1/flows","description":"A new flow, always switched off. Switch it on with Switch a flow on or off. Scope: write.","href":"/flowiq-api-reference/endpoint/create-flow"},{"title":"Update a flow","openapi":"flowiq-api-reference/openapi-flows.json PATCH /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/update-flow"},{"title":"Switch a flow on or off","openapi":"flowiq-api-reference/openapi-flows.json POST /v1/flows/{id}/status","href":"/flowiq-api-reference/endpoint/set-flow-status"},{"title":"Delete a flow","openapi":"flowiq-api-reference/openapi-flows.json DELETE /v1/flows/{id}","href":"/flowiq-api-reference/endpoint/delete-flow"}]},{"group":"Results","pages":[{"title":"Flow report","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}/report","href":"/flowiq-api-reference/endpoint/flow-report"},{"title":"Flow runs","openapi":"flowiq-api-reference/openapi-flows.json GET /v1/flows/{id}/runs","href":"/flowiq-api-reference/endpoint/flow-runs"}]},{"title":"Send an event","openapi":"flowiq-api-reference/openapi-events.json POST /v1/events","href":"/flowiq-api-reference/send-event"}]},{"group":"Webhooks","pages":[{"title":"Events","href":"/flowiq-api-reference/webhooks"},{"title":"List Webhooks","openapi":"GET /get-webhooks","href":"/flowiq-api-reference/endpoint/get-webhooks"},{"title":"Create Webhook","openapi":"POST /set-webhooks","href":"/flowiq-api-reference/endpoint/create-webhook"},{"title":"Delete Webhook","openapi":"DELETE /set-webhooks","href":"/flowiq-api-reference/endpoint/delete-webhook"},{"group":"Delivery log","pages":[{"title":"List Deliveries","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json GET /v1/webhooks/deliveries","href":"/flowiq-api-reference/endpoint/list-webhook-deliveries"},{"title":"Get Delivery","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json GET /v1/webhooks/deliveries/{id}","href":"/flowiq-api-reference/endpoint/get-webhook-delivery"},{"title":"Retry Delivery","openapi":"flowiq-api-reference/openapi-webhook-deliveries.json POST /v1/webhooks/deliveries/{id}/retry","href":"/flowiq-api-reference/endpoint/retry-webhook-delivery"}]}]},{"group":"Reporting \u0026 AI","pages":[{"title":"Reporting API","href":"/flowiq-api-reference/reporting-api"},{"title":"AI Assistants (MCP)","href":"/flowiq-api-reference/mcp"}]}]},"basePath":"","title":"Get a flow - FlowIQ API Documentation","deploymentId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","buildId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BSmGr6_d.js","snippetPresets-ScYHtgPH.js","utils-CEQwJl7d.js","style-to-object-BY3JEAdk.js","utils-B22OY4jq.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-D7Wy8St1.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BR14VZ6P.js","_Uint8Array-C_Hiqjf5.js","isObject-FP1Yky1u.js","ApiExamples-rpsi2T43.js","usePlaygroundInputsStore-CUAKkrDg.js","shallow-Bpslp4zw.js","isEqual-HLimTTXg.js","CodeSnippets-CZ_WZFtq.js","CodeSnippet-SObXR_MO.js","use-playground-group-access-B94EDetc.js","Page-BkBC9rKz.js","api-description-markdown-viF3flEw.js","DynamicMarkdown-ChHD_AmO.js","SectionHeading-BXzqAgc6.js","MethodPill-D2328AeU.js","getPastedJson-BDyiAD6x.js","Check2Icon-8iE1_yY_.js","axios-CsQoIw0U.js","Markdown-ChbbJS-9.js","AssistantPageLink-DbSMdE4V.js","dist-C_2TOOIX.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}