Skip to content
Cyrus Pastelero
Case study

Henk: AI-Powered Voice Fundraising Platform

Cyrus David Pastelero1

1 Software engineer, Singapore; cyrus@pastelero.ph

Abstract

Tackling the challenge of scaling charity outreach without losing the human touch. What building voice AI taught me about latency, conversation design, and why compliance should never be an afterthought.

Keywords: Next.js; ElevenLabs; Twilio

Cover for Henk: AI-Powered Voice Fundraising Platform

The problem

Charities face a painful dilemma with phone fundraising. Personal phone calls convert donors well, but call centers are expensive and don't scale. When campaigns spike, organizations either miss opportunities or burn through their budgets on temporary staff.

Cost isn't the only problem. Consistency is another. Different callers deliver different experiences. Some are great, some aren't. Tracking what actually works across thousands of calls is nearly impossible.

What I built

Henk is an AI voice platform that enables charities to have natural phone conversations with donors at scale. The AI adapts to what donors say, handles objections gracefully, and logs everything for compliance and analysis.

The journey

I underestimated this project completely. I thought voice synthesis exists, telephony APIs exist, just connect them. What I didn't realize was how different voice interactions are from text.

Tech stack

LayerTechnologyWhy
FrontendNext.js 15[1]App Router with server actions
DatabaseSupabase[2]PostgreSQL with real-time subscriptions
Voice AIElevenLabs[3]Most natural sounding synthesis
TelephonyTwilio[4]Programmable Voice, reliable infrastructure
HostingVercel[5]Edge functions for low latency
One turn of a call: speech in through Twilio, a reply from GPT-4, and a voice back out through ElevenLabs and Twilio.

What building this taught me

1. Latency is everything in voice

In text chat, a 2 second delay is fine. On a phone call, 2 seconds of silence feels broken. I became obsessed with latency. Every millisecond mattered.

I learned to pre-buffer, predict likely responses, and stream audio before full sentences complete. Real-time voice turned out to be its own engineering discipline.

The latency budget for one turn, which must stay under 2 seconds.

Resources that helped me optimize:

2. Real conversations break your assumptions

I built the happy path first. User asks question, AI responds. Easy. Then real users happened.

They interrupt mid-sentence. They mumble. They say "uh huh" while you're talking. They ask questions you never anticipated.

I learned that conversation design is closer to game design than software engineering. You're designing for unpredictable human behavior, not deterministic flows.

Resources on conversation design:

3. Compliance has to be designed in

Fundraising has strict regulations. Call timing rules. Mandatory opt-out language. Disclosure requirements.

I originally planned to add compliance "at the end." That was naive. Compliance touches every part of the system: recording consent, timing restrictions, script requirements. Building it in from day one would have been easier than retrofitting.

4. Twilio's documentation tells half the story

The Twilio docs[11] show the happy path beautifully. What they don't tell you is how WebSocket connections drop under load, how DTMF detection varies by carrier, or how international calls have completely different latency profiles.

I learned more from debugging production issues than from any documentation.

// What the docs show:
twiml.say('Hello!')
 
// What production taught me:
twiml.say(
  {
    voice: 'Polly.Matthew',
    language: 'en-US',
  },
  'Hello!'
)
// Plus: error handling, fallbacks,
// carrier-specific quirks, timeout handling...

The bigger realization

Building Henk changed how I think about AI products. Nobody cares that ElevenLabs generates the voice or that GPT-4 writes the responses. They care that the conversation feels natural and the campaign converts donors. I spent too much time on AI capabilities and not enough on conversation design.

What I would do differently

Build a conversation simulator from week one. I tested with real calls, which was slow and expensive. A simulator that could throw edge cases at the system would have caught issues faster and cheaper.

  • Demo: henk.pastelero.ph[12], a seeded demo of the product. The original callhenk.com is no longer online.

References

  1. Next.js 15. nextjs.org. https://nextjs.org/ ↑
  2. Supabase. supabase.com. https://supabase.com/ ↑
  3. ElevenLabs. elevenlabs.io. https://elevenlabs.io/ ↑
  4. Twilio. twilio.com. https://www.twilio.com/ ↑
  5. Vercel. vercel.com. https://vercel.com/ ↑
  6. ElevenLabs Streaming Guide. elevenlabs.io. https://elevenlabs.io/docs/api-reference/streaming ↑
  7. Twilio Media Streams. twilio.com. https://www.twilio.com/docs/voice/media-streams ↑
  8. Web Audio API. developer.mozilla.org. https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API ↑
  9. Google's (archived) Conversation Design Guide. developers.google.com. https://developers.google.com/assistant/conversation-design ↑
  10. Voiceflow's Best Practices. voiceflow.com. https://www.voiceflow.com/blog/conversation-design-best-practices ↑
  11. Twilio docs. twilio.com. https://www.twilio.com/docs/voice ↑
  12. henk.pastelero.ph. henk.pastelero.ph. https://henk.pastelero.ph/ ↑
  13. ElevenLabs Documentation. elevenlabs.io. https://elevenlabs.io/docs
  14. Supabase Real-time. supabase.com. https://supabase.com/docs/guides/realtime
  15. TwiML Reference. twilio.com. https://www.twilio.com/docs/voice/twiml
Version www.pastelero.ph/projects/henk

© 2026 Cyrus David Pastelero