Examples#
These examples demonstrate how to implement App Functions for different communication channels. You can use these as templates for your own delivery logic.SMS Handler#
This example handles communication.sms.send. It uses merchant settings for API credentials and sender ID.
Email Handler#
This example uses SendGrid to deliver communication.email.send events.
WhatsApp Handler#
A basic WhatsApp handler using the Meta Graph API.
Practical Example: OTP Verification#
OTP messages require high reliability and low latency. We use a shorter timeout here.
Advanced: Multi-channel Router#
If you prefer to maintain a single App Function for all communication channels, you can branch based on the event name.Modified at 2026-03-08 22:11:30