Recover Revenue
recover_revenueRead-onlyIdempotent
Use this after a specific revenue-loss event already happened and the caller needs the next recovery action. Returns a prioritized decision packet; KlearFlow sends no external message. Execution costs $0.05 via x402 Base USDC.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| industry | No | Optional business industry or service category used to tailor the recovery action. | |
| eventType | Yes | Specific revenue-loss event to recover: missed call, stale lead, unanswered quote, appointment no-show, or failed payment. | |
| bookingUrl | No | Optional booking URL to include in a recommended recovery message. | |
| paymentUrl | No | Optional secure payment-retry URL for payment_failed events. | |
| businessName | No | Optional business name used to label the recovery packet. | |
| priorAttempts | No | Number of prior recovery outreach attempts already made. | |
| preferredChannel | No | Preferred recovery channel. Use auto to let KlearFlow select among SMS, email, or a human phone task. | |
| customerFirstName | No | Optional customer first name used only when composing the recommended action text. | |
| minutesSinceEvent | Yes | Minutes elapsed since the revenue-loss event occurred. | |
| averageOpportunityValue | No | Estimated gross value in USD of the customer opportunity. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Recovery decision packet containing priority, recommended action, fallbacks, stop conditions, modeled economics, and safety boundaries. | |
| payment | Yes | ||
| proofId | Yes | Unique KlearFlow proof identifier for this settled paid execution. | |
| priceUsd | Yes | USDC-denominated execution price settled through x402. |