Detect Stale Pipedrive Deals Weekly and Alert Discord per Deal
A weekly sweep lists open Pipedrive deals, flags each one past its expected close date, and posts an individual Discord alert per stale deal.
Audit Shopify unfulfilled orders for high fraud risk via GraphQL Admin API, send urgent Slack alerts, and gate fulfillment pipelines to prevent chargebacks.
Protect e-commerce stores against costly chargebacks, shipping fraud, and inventory loss by automatically intercepting high-risk orders before warehouse fulfillment. In high-volume e-commerce stores, automated 3PL warehouse pipelines often fulfill purchases within minutes of placement, leaving merchant fraud teams insufficient time to manually inspect suspicious orders. This sentinel runs on a recurring 15-minute schedule, queries the Shopify Admin GraphQL API for unfulfilled orders flagged with risk_level:high, evaluates fraud exposure, posts an immediate Slack alert detailing customer identities and order values, and fails the execution to act as a hard gate preventing automated warehouse release.
Schedule trigger initiates a fraud inspection sweep every 15 minutes (shipped disabled by default).fetch_high_risk_orders uses io.kestra.plugin.graphql.Request to query the Shopify Admin GraphQL API endpoint (https://<shop>.myshopify.com/admin/api/<version>/graphql.json) authenticating via X-Shopify-Access-Token. It requests unfulfilled orders with high fraud risk (fulfillment_status:unfulfilled risk_level:high) capturing order IDs, order names, creation timestamps, monetary totals, and customer emails.evaluate_fraud_risk (io.kestra.plugin.core.flow.If) counts discovered high-risk orders:alert_fraud_incident transmits a high-priority Slack notification itemizing order numbers, totals, and customer contact information. If inputs.fail_on_detected_fraud is true, task halt_fulfillment_gate (io.kestra.plugin.core.execution.Fail) terminates the run with an error, ensuring downstream automated fulfillment flows abort.log_orders_clean records that all unfulfilled orders are clean.log_audit_summary records total evaluated high-risk counts.errors handler catches API authentication errors or network timeouts.Standalone webhooks or manual dashboard checking often fail under high transaction volume or holiday sales spikes. Kestra provides declarative, observable orchestration with native GraphQL request handling, secrets management, dynamic jq payload parsing, and immediate multi-channel alerting. With Kestra, order fraud risk evaluation becomes an automated, version-controlled quality gate embedded directly into your supply chain workflows.
read_orders enabled on the access token.SHOPIFY_ACCESS_TOKEN: Shopify Admin API access token (e.g. shpat_...) passed in the X-Shopify-Access-Token header.SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used to post fraud incident alerts.read_orders scope.SHOPIFY_ACCESS_TOKEN and SLACK_WEBHOOK_URL).shopify_shop_name with your store domain slug (e.g. brand-store).recurring_fraud_sweep trigger to establish automated 15-minute fraud interception.orderUpdate) via GraphQL to apply a "Needs Fraud Review" tag directly inside Shopify.