Prototyping sentiment analysis of SMS with Logic Apps

Published Aug 09 2021 05:36 PM 2,206 Views
Microsoft

One of Microsoft's frequent sayings is Azure is the world’s computer. Azure Communication Services allows for Azure to natively make phone calls and send text messages – reaching in a new way the mobile phones most of us carry.

 

In this post, without writing code (mostly), we’re going to build an Azure Logic App that receives SMS messages, analyzes the message’s sentiment, and acts upon that sentiment by responding with an SMS message. The Logic App is the focus of this post, but we’ll link to all the resources you need to get into the details and follow along. And while we’re going to use SMS in this example, the same exact Logic App flow can be used for incoming Chat messages over the Internet!

 

What’s the scenario?

Imagine that you’re a business that engages with customers in person or online. You might be delivering healthcare, helping users purchase or install a product, or get a mortgage. At the end of a customer engagement, you receive consent to follow up by SMS and ask them to send feedback:

 

Consumer Sends

Employee Sends

1

 

Thank  you for visiting our store. Please text this number back with any feedback you might have.

2

I had a really great time! Alice was very helpful.

 

3

 

If Positive

Thank you for visiting and sending us feedback!

 

If Negative

We strive to give you a great experience. A senior associate will follow up with you to discuss your feedback and how we can do better.

 

Your immediate response to feedback in most situations might be thank you for visiting Contoso and sending us feedback! But if a customer is upset and shares negative sentiment, you might take more immediate action and strike a more conciliatory tone. We’re going to build the following Logic App to prototype this intelligent response:

tophpalmer_17-1628554143954.png

 

 

 

Get a phone number

Our first task is to create an Azure Communication Services resource and acquire a phone number. This is straightforward with Azure Portal experiences letting you get local and toll-free numbers across United States localities.

 

tophpalmer_8-1628553923053.png

 

Receive SMS in a Logic App

Our Logic App is going to be triggered by incoming SMS messages. Those SMS messages are received by Azure Communication Services which fires events in EventGrid. You can build all kinds of connections with EventGrid, most commonly firing a WebHook to an external service.

 

But we’re making a Logic App. Start with a blank Logic App in the United States and the Event trigger:

tophpalmer_9-1628553923056.png

 

 

And specifically, we’re going to monitor SMS received events. We can use filters on the EventGrid trigger to only fire for certain numbers associated with the Azure Communication Services resource. As noted earlier, you can see Chat events which can follow the same pattern as SMS.

tophpalmer_10-1628553923060.png

 

Sentiment analysis

Here is where we use Azure Logic Apps with Azure Communication and Cognitive Services to do something cool. We’re going to pipe the message data from the received SMS into the Sentiment connector. Conveniently we’ll use the message id generated by Azure Communication Services as the transaction id for the Sentiment analysis.

tophpalmer_11-1628553923063.png

 

Now I’ll admit, I was a little intimidated by those document fields. Luckily Azure Cognitive Services has a great API explorer to help me understand the inputs and outputs of the sentiment API. The output of this API will be documents that we iterate through, so we add a for each control and if/conditional control. The if/conditional control looks for negative sentiment:

tophpalmer_12-1628553923068.png

 

Respond depending on sentiment

The Logic App responds to feedback using the Azure Communication Services SMS connector. We tried to make the connector super simple, with auto-population of your Azure provisioned phone numbers right in the experience:

 

tophpalmer_13-1628553923070.png

The recipient of our SMS message is the from property and phone number from the original triggering SMS.

 

Connections for the future

I hope this was an interesting introduction into how Azure Communication Services integration with EventGrid and Logic Apps enables fast prototyping and delivery of complex communication scenarios. When thinking about these kind of SMS communications at production scale, consider:

 

  1. Automation of the control plane. If you’re building a solution for multiple businesses, it might pay off to use APIs to manage Azure Communication Service resources and phone numbers.
  2. Monitoring. You can monitor SMS interactions with Azure Monitor logs, and configure alerts, for example calling you if the service starts emitting HTTP 500 errors.
  3. Storage of SMS messages. EventGrid can pump received SMS messages to a plethora of sinks, and common SMS applications will have a database that retains content. Be mindful of your local regulatory requirements for storage and handling of data.
  4. Messaging Policy. Depending on local laws and etiquette, you need to consider user consent when sending SMS and opt-out flows because you are responsible for your application. We have introductory material online, as well as service safeguards which detect ‘STOP’ messages.
  5. Global numbers. Right now we’re only allocating US phone numbers. This obviously doesn’t work for global business, and we’re geographically expanding our phone number business as fast as possible.

 

In later posts, we’ll talk about more sophisticated communication, like bots powering interactive voice response systems. Building your own Logic App or got questions? Hit us up in the comments!

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2629999%22%20slang%3D%22en-US%22%3EPrototyping%20sentiment%20analysis%20of%20SMS%20with%20Logic%20Apps%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2629999%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20of%20Microsoft's%20frequent%20sayings%20is%20%3CEM%3EAzure%20is%20%3C%2FEM%3E%3CEM%3Ethe%20world%E2%80%99s%20computer%3C%2FEM%3E.%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fcommunication-services%2F%23overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Communication%20Services%3C%2FA%3E%20allows%20for%20Azure%20to%20natively%20make%20phone%20calls%20and%20send%20text%20messages%20%E2%80%93%20reaching%20in%20a%20new%20way%20the%20mobile%20phones%20most%20of%20us%20carry.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIn%20this%20post%2C%20without%20writing%20code%20(mostly)%2C%20we%E2%80%99re%20going%20to%20build%20an%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Flogic-apps%2F%23overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Logic%20App%3C%2FA%3E%20that%20receives%20SMS%20messages%2C%20analyzes%20the%20message%E2%80%99s%20sentiment%2C%20and%20acts%20upon%20that%20sentiment%20by%20responding%20with%20an%20SMS%20message.%3C%2FSTRONG%3E%20The%20Logic%20App%20is%20the%20focus%20of%20this%20post%2C%20but%20we%E2%80%99ll%20link%20to%20all%20the%20resources%20you%20need%20to%20get%20into%20the%20details%20and%20follow%20along.%20And%20while%20we%E2%80%99re%20going%20to%20use%20SMS%20in%20this%20example%2C%20the%20same%20exact%20Logic%20App%20flow%20can%20be%20used%20for%20incoming%20Chat%20messages%20over%20the%20Internet!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--383046377%22%20id%3D%22toc-hId--383046376%22%3EWhat%E2%80%99s%20the%20scenario%3F%3C%2FH2%3E%0A%3CP%3EImagine%20that%20you%E2%80%99re%20a%20business%20that%20engages%20with%20customers%20in%20person%20or%20online.%20You%20might%20be%20delivering%20healthcare%2C%20helping%20users%20purchase%20or%20install%20a%20product%2C%20or%20get%20a%20mortgage.%20At%20the%20end%20of%20a%20customer%20engagement%2C%20you%20receive%20consent%20to%20follow%20up%20by%20SMS%20and%20ask%20them%20to%20send%20feedback%3A%3C%2FP%3E%0A%3CTABLE%20style%3D%22width%3A%20624px%3B%22%20width%3D%22624%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2230%22%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22281%22%3E%3CP%3E%3CSTRONG%3EConsumer%20Sends%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22313%22%3E%3CP%3E%3CSTRONG%3EEmployee%20Sends%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2230%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22281%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22313%22%3E%3CP%3EThank%26nbsp%3B%20you%20for%20visiting%20our%20store.%20Please%20text%20this%20number%20back%20with%20any%20feedback%20you%20might%20have.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2230%22%3E%3CP%3E2%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22281%22%3E%3CP%3EI%20had%20a%20really%20great%20time!%20Alice%20was%20very%20helpful.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22313%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2230%22%3E%3CP%3E3%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22281%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22313%22%3E%3CP%3E%3CEM%3EIf%20Positive%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20visiting%20and%20sending%20us%20feedback!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EIf%20Negative%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EWe%20strive%20to%20give%20you%20a%20great%20experience.%20A%20senior%20associate%20will%20follow%20up%20with%20you%20to%20discuss%20your%20feedback%20and%20how%20we%20can%20do%20better.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20immediate%20response%20to%20feedback%20in%20most%20situations%20might%20be%20%3CEM%3Ethank%20you%20for%20visiting%20Contoso%20and%20sending%20us%20feedback!%20%3C%2FEM%3EBut%20if%20a%20customer%20is%20upset%20and%20shares%20%3CEM%3Enegative%20sentiment%3C%2FEM%3E%2C%20you%20might%20take%20more%20immediate%20action%20and%20strike%20a%20more%20conciliatory%20tone.%20We%E2%80%99re%20going%20to%20build%20the%20following%20Logic%20App%20to%20prototype%20this%20intelligent%20response%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_17-1628554143954.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301937i6B2F6DEEDDDBF06F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tophpalmer_17-1628554143954.png%22%20alt%3D%22tophpalmer_17-1628554143954.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2104466456%22%20id%3D%22toc-hId-2104466457%22%3EGet%20a%20phone%20number%3C%2FH2%3E%0A%3CP%20class%3D%22lia-align-left%22%3EOur%20first%20task%20is%20to%20create%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcommunication-services%2Fquickstarts%2Fcreate-communication-resource%3Ftabs%3Dwindows%26amp%3Bpivots%3Dplatform-azp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Communication%20Services%20resource%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcommunication-services%2Fquickstarts%2Ftelephony-sms%2Fget-phone-number%3Fpivots%3Dplatform-azp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eacquire%20a%20phone%20number%3C%2FA%3E.%20This%20is%20straightforward%20with%20Azure%20Portal%20experiences%20letting%20you%20get%20local%20and%20toll-free%20numbers%20across%20United%20States%20localities.%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_8-1628553923053.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301928i840BA565F4083F57%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tophpalmer_8-1628553923053.png%22%20alt%3D%22tophpalmer_8-1628553923053.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-297011993%22%20id%3D%22toc-hId-297011994%22%3EReceive%20SMS%20in%20a%20Logic%20App%3C%2FH2%3E%0A%3CP%3EOur%20Logic%20App%20is%20going%20to%20be%20triggered%20by%20incoming%20SMS%20messages.%20Those%20SMS%20messages%20are%20received%20by%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcommunication-services%2Fquickstarts%2Ftelephony-sms%2Fhandle-sms-events%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Communication%20Services%20which%20fires%20events%20in%20EventGrid.%3C%2FA%3E%20You%20can%20build%20all%20kinds%20of%20connections%20with%20EventGrid%2C%20most%20commonly%20firing%20a%20WebHook%20to%20an%20external%20service.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20we%E2%80%99re%20making%20a%20Logic%20App.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Fquickstart-create-first-logic-app-workflow%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EStart%20with%20a%20blank%20Logic%20App%20in%20the%20United%20States%3C%2FA%3E%20and%20the%20Event%20trigger%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_9-1628553923056.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301930i87D8464AE6C7BACA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tophpalmer_9-1628553923056.png%22%20alt%3D%22tophpalmer_9-1628553923056.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20specifically%2C%20we%E2%80%99re%20going%20to%20monitor%20SMS%20received%20events.%20We%20can%20use%20filters%20on%20the%20EventGrid%20trigger%20to%20only%20fire%20for%20certain%20numbers%20associated%20with%20the%20Azure%20Communication%20Services%20resource.%20As%20noted%20earlier%2C%20you%20can%20see%20Chat%20events%20which%20can%20follow%20the%20same%20pattern%20as%20SMS.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_10-1628553923060.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301929i9A0272E35A4CD852%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tophpalmer_10-1628553923060.png%22%20alt%3D%22tophpalmer_10-1628553923060.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1510442470%22%20id%3D%22toc-hId--1510442469%22%3ESentiment%20analysis%3C%2FH2%3E%0A%3CP%3EHere%20is%20where%20we%20use%20Azure%20Logic%20Apps%20with%20Azure%20Communication%20and%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fcognitive-services%2F%23overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECognitive%20Services%3C%2FA%3E%20to%20do%20something%20cool.%20We%E2%80%99re%20going%20to%20pipe%20the%20message%20data%20from%20the%20received%20SMS%20into%20the%20Sentiment%20connector.%20Conveniently%20we%E2%80%99ll%20use%20the%20message%20id%20generated%20by%20Azure%20Communication%20Services%20as%20the%20transaction%20id%20for%20the%20Sentiment%20analysis.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_11-1628553923063.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301934i76DFCA8CF80C031F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tophpalmer_11-1628553923063.png%22%20alt%3D%22tophpalmer_11-1628553923063.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20I%E2%80%99ll%20admit%2C%20I%20was%20a%20little%20intimidated%20by%20those%20document%20fields.%20Luckily%20%3CA%20href%3D%22https%3A%2F%2Fwestus.dev.cognitive.microsoft.com%2Fdocs%2Fservices%2FTextAnalytics-v3-0%2Foperations%2FSentiment%2Fconsole%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Cognitive%20Services%20has%20a%20great%20API%20explorer%3C%2FA%3E%20to%20help%20me%20understand%20the%20inputs%20and%20outputs%20of%20the%20sentiment%20API.%20The%20output%20of%20this%20API%20will%20be%20documents%20that%20we%20iterate%20through%2C%20so%20we%20add%20a%20%3CEM%3Efor%20each%3C%2FEM%3E%20control%20and%20%3CEM%3Eif%2Fconditional%3C%2FEM%3E%20control.%20The%20%3CEM%3Eif%2Fconditional%3C%2FEM%3E%20control%20looks%20for%20negative%20sentiment%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_12-1628553923068.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301936iA7B96CB45D239D46%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tophpalmer_12-1628553923068.png%22%20alt%3D%22tophpalmer_12-1628553923068.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-977070363%22%20id%3D%22toc-hId-977070364%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--830384100%22%20id%3D%22toc-hId--830384099%22%3ERespond%20depending%20on%20sentiment%3C%2FH2%3E%0A%3CP%3EThe%20Logic%20App%20responds%20to%20feedback%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcommunication-services%2Fquickstarts%2Ftelephony-sms%2Flogic-app%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Communication%20Services%20SMS%20connector%3C%2FA%3E.%20We%20tried%20to%20make%20the%20connector%20super%20simple%2C%20with%20auto-population%20of%20your%20Azure%20provisioned%20phone%20numbers%20right%20in%20the%20experience%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditortophpalmer_14%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tophpalmer_13-1628553923070.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301935i71835EAED66C9780%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tophpalmer_13-1628553923070.png%22%20alt%3D%22tophpalmer_13-1628553923070.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20recipient%20of%20our%20SMS%20message%20is%20the%20%3CEM%3Efrom%3C%2FEM%3E%20property%20and%20phone%20number%20from%20the%20original%20triggering%20SMS.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1657128733%22%20id%3D%22toc-hId-1657128734%22%3EConnections%20for%20the%20future%3C%2FH2%3E%0A%3CP%3EI%20hope%20this%20was%20an%20interesting%20introduction%20into%20how%20Azure%20Communication%20Services%20integration%20with%20EventGrid%20and%20Logic%20Apps%20enables%20fast%20prototyping%20and%20delivery%20of%20complex%20communication%20scenarios.%20When%20thinking%20about%20these%20kind%20of%20SMS%20communications%20at%20production%20scale%2C%20consider%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3EAutomation%20of%20the%20control%20plane.%20%3C%2FSTRONG%3EIf%20you%E2%80%99re%20building%20a%20solution%20for%20multiple%20businesses%2C%20it%20might%20pay%20off%20to%20use%20APIs%20to%20manage%20Azure%20Communication%20Service%20resources%20and%20phone%20numbers.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EMonitoring.%20%3C%2FSTRONG%3EYou%20can%20monitor%20SMS%20interactions%20with%20Azure%20Monitor%20logs%2C%20and%20configure%20alerts%2C%20for%20example%20calling%20you%20if%20the%20service%20starts%20emitting%20HTTP%20500%20errors.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EStorage%20of%20SMS%20messages.%20%3C%2FSTRONG%3EEventGrid%20can%20pump%20received%20SMS%20messages%20to%20a%20plethora%20of%20sinks%2C%20and%20common%20SMS%20applications%20will%20have%20a%20database%20that%20retains%20content.%20Be%20mindful%20of%20your%20local%20regulatory%20requirements%20for%20storage%20and%20handling%20of%20data.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EMessaging%20Policy.%20%3C%2FSTRONG%3EDepending%20on%20local%20laws%20and%20etiquette%2C%20you%20need%20to%20consider%20user%20consent%20when%20sending%20SMS%20and%20opt-out%20flows%20because%20you%20are%20responsible%20for%20your%20application.%20We%20have%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcommunication-services%2Fconcepts%2Ftelephony-sms%2Fmessaging-policy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eintroductory%20material%20online%3C%2FA%3E%2C%20as%20well%20as%20service%20safeguards%20which%20detect%20%E2%80%98STOP%E2%80%99%20messages.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EGlobal%20numbers.%20%3C%2FSTRONG%3ERight%20now%20we%E2%80%99re%20only%20allocating%20US%20phone%20numbers.%20This%20obviously%20doesn%E2%80%99t%20work%20for%20global%20business%2C%20and%20we%E2%80%99re%20geographically%20expanding%20our%20phone%20number%20business%20as%20fast%20as%20possible.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20later%20posts%2C%20we%E2%80%99ll%20talk%20about%20more%20sophisticated%20communication%2C%20like%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-telephony%23readme%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ebots%20powering%20interactive%20voice%20response%20systems%3C%2FA%3E.%20Building%20your%20own%20Logic%20App%20or%20got%20questions%3F%20Hit%20us%20up%20in%20the%20comments!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2629999%22%20slang%3D%22en-US%22%3E%3CP%3EWithout%20writing%20code%20(mostly)%2C%20we%E2%80%99re%20going%20to%20build%20an%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Flogic-apps%2F%23overview%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Logic%20App%3C%2FA%3E%20that%20receives%20SMS%20messages%2C%20analyzes%20the%20message%E2%80%99s%20sentiment%2C%20and%20acts%20upon%20that%20sentiment%20by%20responding%20with%20an%20SMS%20message.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2629999%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EUpdates%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Aug 09 2021 05:39 PM
Updated by: