Skip to main content

The Problem

Errors frustrate users and often lead to abandonment:
  • Cryptic error messages they don’t understand
  • No clear path to resolution
  • Feeling stuck and helpless
  • Lost work or progress
  • Distrust in the platform

The Solution

Turn error moments into support opportunities with contextual AI assistance.

Implementation

Step 1: Create Error Events

Event: error_payment_failed
Event: error_api_failure

Step 2: Integrate with Error Handling

Step 3: Handle Specific Error Types

Payment Errors
Form Validation Errors

Error Types and Responses

Best Practices

❌ “Error code 422: Validation failed” ✅ “Oops! A few things need fixing. Want me to help?”
Skip triggers for:
  • 401 (unauthorized) - just redirect to login
  • 404 (not found) - show 404 page
  • Minor validation errors
Tell your agent what the user was trying to do:
  • What action they attempted
  • What went wrong
  • What solutions are available
Always include request IDs and error codes so support can investigate if the user escalates.

Measuring Success

Next Steps

Best Practices

General trigger optimization

Checkout Abandonment

Recover abandoned carts