Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Create an SMS chatbot using C#, Amazon Lex, and Twilio SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Volkan Paksoy
Word Count
5,574
Company Posts That Month
45
Language
English
Hacker News Points
-
Post removed?
No
Summary

Create an SMS chatbot using C#, Amazon Lex, and Twilio SMS. The application will accept requests like buy, sell, show portfolio, etc. A free Twilio account, a Twilio Phone Number with SMS capability, a free AWS account, and .NET 6.0 SDK are required prerequisites. Amazon Lex is an artificial intelligence service that allows developers to create voice or text-based conversational interfaces. The application uses several AWS services: Lex, Lambda and DynamoDB. To follow along, you will need an IAM user setup in your development environment. The project overview includes a diagram of the application flow, where customer sends an SMS to customer service, which invokes Amazon Lex callback, identifies user's intent and calls corresponding Lambda function, executes application logic, gets customer info from DynamoDB database, and prepares response. The chatbot has four intents: CheckStockPrice, GetPortfolio, BuyStocks, and SellStocks, each with its own processor class that implements the Process method to handle the intent. The Lambda function ties everything together by invoking the correct processor based on the intent name specified in the LexV2Event object. Finally, the chatbot is connected to Twilio SMS integration and tested via SMS.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 46 408 101 53 -28%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.