Skip to contentSkip to navigationSkip to topbar

Voice Auto-response

Created by: Twilio
  • Voice
  • JavaScript
  • Popular
  • Quick Deploy

This template is the simplest possible Twilio Voice application: a Serverless Function that responds to any incoming call with a spoken "Hello World" message using TwiML's <Say> verb. It's a starting point for building voice applications — swap out the message or add TwiML verbs to gather input, record audio, connect to an agent, and more.

How it works

  • A caller dials your Twilio phone number
  • Twilio sends a webhook request to your Serverless Function
  • The Function returns TwiML instructing Twilio to say "Hello World"
  • The caller hears the message spoken aloud by Twilio's text-to-speech engine
Report this template(link takes you to an external page)
Quick Deploy to TwilioGet CodeUse Twilio CLI
Launch and test this app in a few minutes with Quick Deploy. No server needed. Quick Deploy will automatically configure and deploy this app using Twilio Functions. Learn more about Twilio Functions(link takes you to an external page)
  1. Log in to Twilio

    Access your Twilio account to get started.

    Checking for existing account...

  2. Get a Twilio phone number

    Your app requires a Twilio phone number to operate, this is your application's source number to receive messages or calls.

    You will get a US number that is configured for this application. You can change this or port over an existing number later. International number regulations(link takes you to an external page)
  3. Click the button below to deploy your app

    This will use the details entered above to deploy your application to Twilio Functions.

    You will be able to view the application in the browser and edit it using the Functions UI.

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2026 Twilio Inc.