An IoT + Azure sample that detects the sentiment of incoming text messages, performs sentiment analysis on the text, and changes the color of a Philips Hue lightbulb to correspond with the average sentiment.
- The phone on the left sends a text message to the Twilio phone number.
- Twilio forwards the text message to an Azure Function
- This first Azure Function determines the sentiment of the message then sends an emoji response back to the phone on the left
- The second Azure Function saves the message to an Azure SQL Database
- The third Azure Function invokes SignalR
- SignalR sends a real-time update to the phone on the right, containing the new message
- The phone on the right displays the new message, then updates its background color to match the average sentiment of the received messages
- The phone on the right then simultaneously changes the light color of the Philips Hue light to match the average sentiment