Skip to main content
Recipes show how to combine APIs and flows for common products.

Ecommerce order confirmation

Use Unified Messaging with fallback.

Booking request

Use Automation Flow first, then Unified API when the booking is confirmed.

Login OTP

Use Unified OTP with fallback.
Save the returned pinId on your backend and submit it with the user-entered code to /api/omni/otp/verify.

Urgent OTP to both WhatsApp and SMS

Use deliveryMode: "all".

Human support fallback

When an automated flow cannot solve a request:
  1. Send a short handoff message.
  2. Disable automation for the conversation.
  3. Create an agent task.
  4. Let the user continue with a human.

Reliable retry handling

Treat the HTTP response before deciding whether to retry:
  1. Retry connection failures and 5xx responses with exponential backoff.
  2. Do not retry a successful response with a message ID.
  3. Fix 4xx validation, authentication, sender, or balance errors before retrying.
  4. Store the returned KarFlows reference with your order or booking.
SMS final delivery can fail after acceptance. That later failure is visible in logs and delivery reports, but it should not cause your application to repeat the same message automatically.