For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payment Workflow Use Cases

Workflows in the XYB platform are designed to support a wide range of operational and business-critical scenarios. By enabling teams to automate logic across services, workflows reduce manual effort, improve response time, and ensure consistency across processes.

Below are key use cases already supported or planned within the platform, categorized by domain.

1. Operations & Task Management

  • Auto-Unassign Tasks on Employee Deactivation

    • Trigger: Employee status change

    • Action: Reassign or unassign tasks to prevent backlog from inactive users

  • Auto-Create Tasks on Entity Events

    • Trigger: EntityCreated or other domain event

    • Action: Create follow-up investigation or onboarding tasks

  • Close Tasks for RiskClosed Customers

    • Trigger: Customer status change to "RiskClosed" or "Closed"

    • Action: Automatically close related tasks

2. Payments & Ledger

  • Outgoing FX Payment Execution

    • Steps: Risk check, ledger validation, routing, provider selection, status update

  • Anomaly Detection Response

    • Trigger: Ledger anomaly event

    • Action: Create task or alert for compliance follow-up

  • Transaction Threshold Alerts

    • Trigger: Large transaction (above threshold)

    • Action: Flag, create task, or escalate

3. Onboarding & Entity Management

  • Auto-Create Wallet or Account

    • Trigger: EntityCreated

    • Action: Automatically set up financial account

  • Send SMS After Onboarding Step Completion

    • Trigger: Onboarding milestone event

    • Action: Call external messaging API

4. Risk & Compliance

  • Escalate Based on Risk Score

    • Trigger: Customer risk score exceeds threshold

    • Action: Create high-priority review task

  • KYC Document Follow-Up

    • Trigger: Incomplete document submission

    • Action: Generate reminder task

5. Internal Tools & DevOps

  • Notify on Service Deployment Completion

    • Trigger: Deployment event (via webhook or pipeline)

    • Action: Notify via Slack or dashboard update

  • Rotate Secrets Periodically

    • Trigger: Cron or schedule (future support)

    • Action: Rotate access keys, update config

Template and Reuse Strategy

Workflows can be templatized for reuse:

  • Payment status update templates

  • Onboarding event processors

  • Entity creation packages (wallet + tasks)

Templates reduce duplication, standardize processes, and improve onboarding for new teams or clients.

Last updated