Problem: You're getting "24 hours have passed" errors when sending messages.
Solution: Use template messages - they work anytime, no 24-hour limit!
ruby scripts/kapso_template_finder.rbPurpose: Complete template discovery and testing
Features:
- Fetches your actual created templates from Kapso
ruby scripts/test.rbPurpose: Test regular message sending
Use when: Testing within 24-hour window
Features:
- Test regular messages
- Shows 24h error if outside window
- Login to Kapso Dashboard: https://app.kapso.ai/
- Navigate to WhatsApp Business section
- Look for:
- "Business Account ID"
- "WABA ID"
- Long number (15+ digits)
- Add to
.envfile:BUSINESS_ACCOUNT_ID=your_business_account_id_here
ruby scripts/kapso_template_finder.rb✅ Current Status: Found 1 template reply_message (es_MX) - PENDING
⏳ Waiting for approval - Template will work once Meta approves it
ruby test_specific_template.rb
# Enter template name when prompted- Login to https://app.kapso.ai/
- Find "WhatsApp Templates" or "Template Builder"
- Create simple text template:
- Name:
hello_worldorwelcome_message - Language:
en_US - Category:
UTILITY(usually fastest approval) - Content: "Hello {{1}}, welcome to our service!"
- Name:
- Pending: Template submitted, waiting for Meta approval
- Approved: Ready to use anytime
- Rejected: Need to fix and resubmit
- Time: Usually 24-48 hours for approval
# Once your template is approved:
response = client.messages.send_template(
phone_number_id: "your_phone_number",
to: "+56912345678",
name: "reply_message", # Your actual template name
language: "es_MX" # Your template language
)
# Templates work 24/7 - no time restrictions!- Check templates:
ruby scripts/kapso_template_finder.rb - ✅ Template found:
reply_message (es_MX) - PENDING - ⏳ Wait for approval: Meta is reviewing your template
- Once approved: Use
reply_messagetemplate for 24/7 messaging
- Template name is wrong
- Template not approved yet
- Language code incorrect
- This shouldn't happen with templates
- Contact Kapso support
- Check Kapso dashboard for WABA ID
- Add to .env file
- Contact Kapso support if unclear
- Kapso Dashboard: https://app.kapso.ai/
- Kapso Support: Contact through dashboard
- WhatsApp Template Policies: Check Meta Business documentation
Remember: Templates solve the 24-hour limitation permanently! Regular messages work within 24h of customer reply, templates work anytime. 🎯