FLOWS
Schedule — Monthly on the 1st Manual Trigger — Manual Trigger Webhook — Get Monthly Data Webhook
STEPS · 47
Runs on a schedule
▶ Animate flow1 Monthly on the 1st → Initialize Run Set Fields maps and normalizes fields for the next step 2 Initialize Run → Supabase: Get Active Merchants Supabase getAll 3 Initialize Run → Supabase: Get MCC Codes Supabase getAll 4 Initialize Run → Supabase: Get High-Risk Merchants Supabase getAll 5 Initialize Run → Supabase: Portfolio Metrics (12 mo) Supabase getAll 6 Supabase: Get Active Merchants → Code: Distinct MCCs + Top Accounts Code runs custom code on the items 7 Supabase: Get MCC Codes → Merge: Merchants + MCC Codes Merge merges branches back together 8 Supabase: Get High-Risk Merchants → OpenSanctions: Company Screen HTTP Request GET https://api.opensanctions.org/search/default 9 Supabase: Get High-Risk Merchants → OpenSanctions: Owner Screen HTTP Request GET https://api.opensanctions.org/search/default 10 Supabase: Get High-Risk Merchants → CourtListener: Company Cases HTTP Request GET https://www.courtlistener.com/api/rest/v4/search/ 11 Supabase: Get High-Risk Merchants → CourtListener: Owner Cases HTTP Request GET https://www.courtlistener.com/api/rest/v4/search/ 12 Supabase: Get High-Risk Merchants → Apify: Google Reviews Apify Run actor and get datas… 13 Supabase: Get High-Risk Merchants → Tavily: Adverse Media Tavily processes the incoming items 14 Supabase: Get High-Risk Merchants → Firecrawl: Scrape Merchant Site Firecrawl scrape 15 Supabase: Portfolio Metrics (12 mo) → Compute Portfolio Trends Code runs custom code on the items 16 Code: Distinct MCCs + Top Accounts → Merge: Merchants + MCC Codes Merge merges branches back together 17 Merge: Merchants + MCC Codes → Perplexity: MCC News (30d) Perplexity search 18 OpenSanctions: Company Screen → Merge: Merchant Findings Merge merges branches back together 19 OpenSanctions: Owner Screen → Merge: Merchant Findings Merge merges branches back together 20 CourtListener: Company Cases → Merge: Merchant Findings Merge merges branches back together 21 CourtListener: Owner Cases → Merge: Merchant Findings Merge merges branches back together 22 Apify: Google Reviews → Merge: Merchant Findings Merge merges branches back together 23 Tavily: Adverse Media → Merge: Merchant Findings Merge merges branches back together 24 Firecrawl: Scrape Merchant Site → AI Agent: Classify Website AI Agent runs the AI agent with its attached model, memory and tools 25 Compute Portfolio Trends → AI Agent: Portfolio Narrative AI Agent runs the AI agent with its attached model, memory and tools 26 Perplexity: MCC News (30d) → AI Agent: MCC Risk Rating AI Agent runs the AI agent with its attached model, memory and tools 27 Merge: Merchant Findings → Aggregate Merchant Findings Code runs custom code on the items 28 AI Agent: Classify Website → Merge: Merchant Findings Merge merges branches back together 29 AI Agent: Portfolio Narrative → Supabase: Insert portfolio_snapshot Supabase processes the incoming items 30 AI Agent: MCC Risk Rating → Supabase: Upsert MCC Snapshot Supabase processes the incoming items 31 Aggregate Merchant Findings → AI Agent: Risk Recommendation AI Agent runs the AI agent with its attached model, memory and tools 32 Supabase: Insert portfolio_snapshot → Merge: All Branches Merge merges branches back together 33 Supabase: Upsert MCC Snapshot → Aggregate MCC Snapshots Aggregate aggregates items into one 34 AI Agent: Risk Recommendation → Supabase: Insert recommended_action Supabase processes the incoming items 35 Merge: All Branches → Build Monthly Manifest Code runs custom code on the items 36 Aggregate MCC Snapshots → Merge: All Branches Merge merges branches back together 37 Supabase: Insert recommended_action → Aggregate Account Findings Aggregate aggregates items into one 38 Build Monthly Manifest → Supabase: Insert monthly_manifest Supabase processes the incoming items 39 Aggregate Account Findings → Merge: All Branches Merge merges branches back together 40 Claude: MCC Agent → AI Agent: MCC Risk Rating Anthropic Model provides the language model (Claude Sonnet 4.6) — attached as the language model. 41 Parser: MCC Snapshot → AI Agent: MCC Risk Rating Output Parser parses the model output into structured data — attached as the output parser. 42 Claude: Portfolio Agent → AI Agent: Portfolio Narrative Anthropic Model provides the language model (Claude Sonnet 4.6) — attached as the language model. 43 Claude: Website Classifier → AI Agent: Classify Website Anthropic Model provides the language model (Claude Sonnet 4.6) — attached as the language model. 44 Parser: Recommended Action → AI Agent: Risk Recommendation Output Parser parses the model output into structured data — attached as the output parser. 45 OpenAI: Pinecone Embeddings → Pinecone: Prior Risk Decisions Embeddings creates embeddings — attached as the embeddings. 46 Claude: Recommendation Agent → AI Agent: Risk Recommendation Anthropic Model provides the language model (Claude Sonnet 4.6) — attached as the language model. 47 Pinecone: Prior Risk Decisions → AI Agent: Risk Recommendation Vector Store reads/writes the vector store — attached as the tool.