mplacona / automated-survey-csharp

Automated surveys in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status

Automated Surveys using ASP.NET MVC

This application demonstrates how to use Twilio and TwiML to perform automated phone surveys.

Running locally

The application requirements are minimal, if you have installed Visual Studio you're almost done.

  1. Clone the repository.
  2. Open the solution file in Visual Studio. Open the solution file
  3. Build the solution. Build the solution
  4. Run Update-Database to execute the migrations. Run Update-Database

Running the command Update-Database will run the migrations and run the Seed method, if you want to inspect this you can inspec SQL Server Object Explorer.

That's it!

Configuring Twilio to call your application

Exposing the application using ngrok

For this demo it's necessary that your local application instance is accessible from the Internet. The easiest way to accomplish this during development is using ngrok. The installer and also the installation instructions are available here.

Once you have the application running you can expose it to the wider internet by running (port 1302 is the default port for this application)

ngrok http 1302 -host-header="localhost:1302"

Configuring Twilio Webhooks

In order to receive incoming calls we need to first configure our Twilio phone number.

Configure Twilio Phone

Click on the red number, and then set the Voice Request URL. Don’t forget to save the changes.

Set Voice Request URL

About

Automated surveys in C#


Languages

Language:C# 99.2%Language:JavaScript 0.5%Language:ASP 0.3%