Building a Custom WhatsApp Outbound Campaign Solution with Amazon Connect
A step-by-step guide to creating compliant WhatsApp outbound campaigns using Amazon Connect, Lambda, and DynamoDB. Learn how to implement template handling, scheduling, rate limiting, and analytics while maintaining WhatsApp Business Policy compliance.
Anonymous User
Amazon Employee
Published May 15, 2025
With Amazon Connect's recent integration with WhatsApp messaging, businesses can now engage with customers on their preferred messaging platform. However, the native integration primarily supports inbound and conversational messaging rather than campaign-style outbound communications. This article provides a comprehensive guide to building a custom solution that enables WhatsApp outbound campaigns while maintaining compliance with WhatsApp's business policies.
WhatsApp has specific requirements for business messaging, including:
- Pre-approved message templates for business-initiated conversations
- A 24-hour messaging window for free-form responses after customer engagement
- Strict policies against spam and unsolicited messages
Our custom solution addresses these challenges while leveraging Amazon Connect's powerful contact center capabilities and the WhatsApp Business API.
The architecture combines several AWS services to create a scalable, compliant WhatsApp campaign system:

This architecture provides:
- Scalable campaign management
- Compliance with WhatsApp's messaging policies
- Detailed tracking and analytics
- Scheduled campaign execution
Before building the solution, ensure you have:
- An Amazon Connect instance with WhatsApp channel integration
- WhatsApp Business API access with approved message templates
- Appropriate IAM permissions for AWS services
The WhatsApp Business verification process can take several weeks, so start this process early.
Our solution uses two DynamoDB tables to track campaigns and messages:
Customer data is stored in S3 with this structure:
The heart of our solution is a Lambda function that processes customer data and sends messages via the Amazon Connect API:
WhatsApp requires pre-approved templates for business-initiated messages. Our solution includes template management:
To schedule campaigns in advance, we use EventBridge and a scheduler Lambda:
WhatsApp has strict rate limits and compliance requirements. Our solution includes rate limiting:
To track message delivery and read status, we create an API Gateway endpoint:
To measure campaign effectiveness, we implement reporting:
WhatsApp templates must be pre-approved and fall into specific categories:
- Utility: Order confirmations, appointment reminders, etc.
- Authentication: One-time passwords, verification codes
- Marketing: Promotional messages (requires explicit opt-in)
Design templates that provide clear value to recipients and follow WhatsApp's content policy.
- Maintain proper opt-in records for all recipients
- Respect the 24-hour messaging window for non-template messages
- Avoid sending messages during inappropriate hours
- Include clear opt-out instructions
For large-scale campaigns:
- Implement batching to process customers in manageable chunks
- Use DynamoDB auto-scaling to handle high-volume campaigns
- Consider AWS Step Functions for complex campaign workflows
- Implement exponential backoff for failed message retries
Protect your customer data and system integrity:
- Encrypt customer data at rest and in transit
- Implement least-privilege IAM policies
- Regularly rotate WhatsApp API credentials
- Validate and sanitize all input data
Track campaign performance with:
- CloudWatch dashboards for real-time monitoring
- Alerts for abnormal delivery patterns
- A/B testing for template effectiveness
- Conversion tracking for campaign goals
This solution enables several powerful use cases:
- Order Updates: Send shipping confirmations and delivery notifications
- Appointment Reminders: Reduce no-shows with timely reminders
- Service Notifications: Alert customers about account changes or service updates
- Feedback Collection: Request feedback after service completion
- Re-engagement Campaigns: Reconnect with customers who have previously messaged you
While Amazon Connect's native WhatsApp integration doesn't directly support outbound campaigns, this custom solution bridges that gap. By combining Amazon Connect, Lambda, DynamoDB, and other AWS services, you can create compliant, scalable WhatsApp campaigns that engage customers on their preferred messaging platform.
Remember that the key to successful WhatsApp business messaging is providing value to recipients while respecting WhatsApp's policies. Focus on relevant, timely communications that enhance the customer experience rather than generic marketing messages.
Have you implemented WhatsApp messaging in your contact center? Share your experiences and insights in the comments below!
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.