Lead Stage Distribution
Task Types
| Customer Name | Phone | Business Name | City | Industry | Lead Status | Source | Human Agent | Created | Last Activity | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading... | |||||||||||
| Type | Status | Lead | Scheduled At | Created | Reason | |
|---|---|---|---|---|---|---|
| Loading... | ||||||
| Direction | Lead | Outcome | Duration | Provider | Started | Recording | |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
Leads Over Time (30 days)
Call Outcomes
Stage Funnel
Task Success Rate by Type
Human Agent Performance
Stage changes & comments tracked from Activity log| Agent | Assigned | Active | Won | Lost | Win Rate | Stage Changes | Comments |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
| Date | Customer | Issue Category | Description | Ticket # | Ticket Status | Outcome | |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
| Date | Customer | Outcome | Duration | Issue Category | Ticket # | Recording | |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
Changes apply within 60 seconds (agent config cache TTL). Feature flags are final authority — they override everything including incident rules.
Feature Flags
Final authorityBehavior & Tone
Transaction Channels
Resend Policy
Requires enableResend=trueTicket Config
Incident Rules
| Name | Matches | Overrides | Customer Instruction | Expires | Actions |
|---|---|---|---|---|---|
| Loading… | |||||
Decision Breakdown
Recent Scan Runs
TM Action Events
| Time | Terminal | Action Code | Group Type | Owner / Terminal Name | Txn Count | Transaction IDs | Status | Response / Note |
|---|---|---|---|---|---|---|---|---|
| No TM action events yet | ||||||||
| Transaction ID | Invoice | Terminal | Owner | Vendor | Amount | Failed At | Decision | Retries | Next Retry | Result | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading… | |||||||||||
| Parent Tx ID | Invoice | Family | Terminal | Owner | Vendor | Amount | Failed At | Decision | Trusted Checks | Attempts | Next Retry | Result | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading… | |||||||||||||
| Transaction ID | Retries | Max | Last Balance | Limit | Last Retry | Next Retry | Status |
|---|---|---|---|---|---|---|---|
| Loading… | |||||||
Vendors Without Provider Send Action Rules
These vendor IDs appear in failed transactions but have no providerSendActions rule in resendChecker.js. Transactions for these vendors are recorded but not resent. To enable auto-resend for a vendor, add it to VENDOR_RULE_MAP after confirming the correct provider send action name from real action logs.
| Vendor ID | Vendor Name | Failed Transactions | Total Amount (LKR) | Last Seen |
|---|---|---|---|---|
| Loading… | ||||
Agent Control
How often both Case 1 and Case 2 scans run.
Per-run cap applied to each case independently.
Payment failed because dealer deposit could not be deducted before the vendor request was sent. Safe to resend once balance is restored.
Scan Settings
How many days back to scan for Failed (terminalStatus=4) transactions.
Case 1 scans terminal/kiosk channel only.
Skip Rules (Case 1)
Transactions matching any rule are skipped with BLOCKED_BY_CONFIG. Enter comma-separated values.
Case-insensitive substring match on TerminalOwner field.
Saved but not yet active — field name to be confirmed.
Owner / Dealer Balance
Resend only when owner balance > this value. Typically negative (e.g. -50000).
After this many retries job expires as EXPIRED_OWNER_BALANCE_NOT_RECOVERED.
TM Action Code Automation
— triggers kiosk/updater when clustered failures detectedDefault: 6034
Min failures in window to trigger. Default: 2.
Default: 30 min.
Performance cap per cycle. Default: 200.
Vendor Rules
— provider send action detection per vendorOnly vendors with an enabled rule will be resent. Any unmapped vendor is marked NEEDS_VENDOR_RULE_MAPPING. Only add rules after confirming action names from real logs.
| Vendor ID | Vendor Name | Provider Send Actions | Status | Notes | Updated | |
|---|---|---|---|---|---|---|
| Loading… | ||||||
Action names from GetActionLogs that confirm a provider send was attempted.
Payment reached the vendor but the vendor returned a failure response. Per-service rules define which responses are safe to resend vs. permanent failures to skip.
Case 2 Settings
How many days back to scan for Vendor Failed transactions (independent of the global lookback).
Total resend attempts before marking expired.
Exact errorMessage from the status check API that confirms vendor did not process the payment. Any other response is treated as untrusted.
MegaPay terminalStatus code for FailedRetry. Confirm via admin filter. When set, the agent also scans for FailedRetry transactions across all 4 channels. Leave blank to disable FailedRetry scanning (existing candidates still retry normally).
Skip Rules (Case 2)
Transactions matching any rule are skipped with BLOCKED_BY_CONFIG and not resent.
Comma-separated vendor IDs — skip all their transactions.
Vendor Override Rules
Per-vendor rules that override the normal resend decision. Status checks always run regardless.
| Vendor | Action | Match Condition | Schedule / Amount | Status | Notes | |
|---|---|---|---|---|---|---|
| No override rules | ||||||
Case-insensitive substring match against vendor API response from TransactionLogs.
24-hour HH:MM in Sri Lanka time. Resend will be attempted the next calendar day at this time.
Leave blank to match all amounts for this vendor. Mobile number detected from AdditionalDetails field of the parent transaction.
Override ContractTypeId when the original is empty or wrong for the target vendor. Leave blank to use original.
Per-Service Vendor Response Rules
For each vendor/service, define which vendor response strings mean resendable (transient error, safe to retry) and which mean permanent failure (skip — do not resend). Applies across all selected channels for that service.
| Vendor / Service | Applicable Channels | Resendable Response Patterns | Skip (Permanent Fail) Patterns | Status | Notes | |
|---|---|---|---|---|---|---|
| No rules yet — add a service rule to get started | ||||||
Vendor response strings that mean the request did NOT reach the provider — safe to resend. Case-insensitive substring match.
Vendor response strings that mean the request was received and rejected permanently — do not resend.
Config Change History
| When | By | Section | Comment |
|---|---|---|---|
| Loading… | |||