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
- .NET Core SDK
- A Clarifai account - sign up for free
- A Twilio account - sign up for free.
- ngrok
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
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.
Start up the app and send an MMS picture message to your Twilio Phone Number.
dotnet run