Error Message: "Meta reported a deli### Long-term**: Design your messaging strategy around the 24h rule
Since you're using Kapso.ai, you may have access to:
- Template Library: Pre-built approved templates
- Template Builder: Easy template creation interface
- Auto-Approval: Faster template approval process
- Template Analytics: Usage statistics and delivery rates
- Bulk Template Management: Manage multiple templates
Check your Kapso dashboard for:
- Available Templates - Already approved and ready to use
- Template Status - Pending, approved, or rejected templates
- Template Builder - Create new templates without Meta Business Manager
Why This Existsy error. Re-engagement message Message failed to send because more than 24 hours have passed since the customer last replied to this number."
This is NOT a bug in your Ruby SDK - it's a WhatsApp Business API policy.
WhatsApp Business API has a conversation window policy:
- Trigger: Customer sends you a message
- Duration: 24 hours from their last message
- Allowed: ANY message type (text, images, audio, video, documents)
- No restrictions: Send as many messages as you want
- Trigger: 24+ hours since customer's last message
- Restriction: ONLY pre-approved template messages allowed
- Regular messages: Will be rejected with your error
Template messages work anytime and are designed for business communications:
# Send a template message (works 24/7)
response = client.messages.send_template(
phone_number_id: phone_number_id,
to: "+56912345678",
template_name: "hello_world", # Must be pre-approved
template_language: "en_US"
)- Customer sends any message → Opens 24-hour window
- You can then send regular messages for 24 hours
✅ Current Status: You already have templates in progress!
- Kapso Dashboard: ✅ Connected (Business Account:
your_business_id_account) - Template Found:
reply_message (es_MX) - PENDING - Status: Waiting for Meta approval (usually 24-48 hours)
- Once Approved: Use
your_templatetemplate for 24/7 messaging - Test Tool:
ruby scripts/kapso_template_finder.rb
- Respond within 24 hours of customer messages
- Use templates for follow-ups after 24h
- Set up auto-responses within the window
- Always use approved template messages
- Create templates for different campaigns
- Schedule template sends anytime
- Use templates for order updates, reminders, etc.
- Create templates for common notifications
- Test templates before going live
client.messages.send_template(
phone_number_id: phone_number_id,
to: phone_number,
template_name: "hello_world",
template_language: "en_US"
)client.messages.send_template(
phone_number_id: phone_number_id,
to: phone_number,
template_name: "order_confirmation",
template_language: "en_US",
components: [
{
type: "body",
parameters: [
{ type: "text", text: "John" }, # Customer name
{ type: "text", text: "12345" } # Order number
]
}
]
)- Immediate: Use
ruby template_test.rbto test template messages - Short-term: Create templates in Meta Business Manager
- Long-term: Design your messaging strategy around the 24h rule
WhatsApp enforces this to:
- Prevent spam
- Ensure quality business communications
- Protect user experience
- Maintain platform integrity
The Ruby SDK is working perfectly - this is just how WhatsApp Business API works! 🚀