/quickstart-csharp-mvc-twilio

.NET MVC Demo using Clarifai and Twilio

Primary LanguageC#Apache License 2.0Apache-2.0

Quickstart .NET MVC

This is an example project built using the Clarifai C# API Client.

Send an MMS to a Twilio phone number and receive an SMS back with the Clarifai predicted concepts.

Requirements

Getting Started

Clone the repo and install the dependencies.

git clone git@github.com:Clarifai/quickstart-csharp-mvc-twilio.git
cd quickstart-csharp-mvc-twilio
dotnet restore

Grab your Clarifai API Key from the developer console and set the CLARIFAI_API_KEY environment variable with it. Alternatively you can hardcode it in the Controllers/SmsController.cs file.

Start up ngrok and copy your ngrok URL.

ngrok http 5000

ngrok

Buy an MMS capable Twilio Phone Number at https://www.twilio.com/console/phone-numbers/search.

Configure the phone number's inbound Messaging webhook by pasting in your ngrok URL. Make sure to click Save.

twilio

Start up the app and send an MMS picture message to your Twilio Phone Number.

dotnet run

demo