%3CLINGO-SUB%20id%3D%22lingo-sub-1273863%22%20slang%3D%22en-US%22%3EConnect%20Microsoft%20Healthcare%20Bot%20to%20Twilio%20for%20SMS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1273863%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20Healthcare%20Bot%20service%20can%20be%20configured%20to%20connect%20to%20multiple%20channels.%20A%20channel%20is%20a%20connection%20between%20the%20Healthcare%20Bot%20and%20communication%20apps.%20The%20Healthcare%20Bot%20leverages%20Azure%20Bot%20Service%20to%20connect%20your%20bot%20to%20a%20channel%20and%20facilitates%20communication%20between%20your%20bot%20and%20the%20user.%20The%20default%20channels%20available%20in%20Healthcare%20bot%20are%20Web%20Chat%2C%20DirectLine%2C%20Microsoft%20Teams%2C%20Twilio%20and%20Facebook.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHealthcare%20Bot%20is%20easy%20to%20connect%20with%20a%20Web%20Chat%20embedded%20on%20a%20web%20page%20or%20connect%20with%20Microsoft%20Teams.%20Another%20popular%20channel%20is%20to%20connect%20it%20to%20an%20SMS%20provider%20for%20public-facing%20scenarios.%20Twilio%20allows%20us%20to%20establish%20a%20connection%20such%20that%20patients%20can%20interact%20with%20the%20health%20bot%20via%20a%20simple%20text%20message.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22teaserimg.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181493iAE702A151D93FC8F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22teaserimg.png%22%20alt%3D%22teaserimg.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20blog%20provides%20step-by-step%20instructions%20to%20connect%20the%20Healthcare%20Bot%20to%20Twilio%E2%80%99s%20SMS%20service.%20Steps%20include%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreating%20a%20Twilio%20account%20and%20getting%20a%20trial%20number%3C%2FLI%3E%0A%3CLI%3ECreating%20a%20TwiML%20app%20and%20forwarding%20Twilio%20messages%20to%20the%20Healthcare%20bot%3C%2FLI%3E%0A%3CLI%3EConnecting%20Healthcare%20Bot%20to%20Twilio%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20class%3D%22lia-align-center%22%20id%3D%22toc-hId-1116740660%22%20id%3D%22toc-hId-1116740660%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20class%3D%22lia-align-center%22%20id%3D%22toc-hId--690713803%22%20id%3D%22toc-hId--690713803%22%3ECreating%20a%20Twilio%20account%20and%20Getting%20a%20trial%20number%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20new%20Twilio%20account%20using%20%3CA%20href%3D%22https%3A%2F%2Fwww.twilio.com%2Ftry-twilio%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETwilio's%20sign%20up%20page%3C%2FA%3E.%20Requirements%20to%20sign%20up%3A%20a%20valid%20email%20address%20and%20phone%20number.%20It%20then%20asks%20a%20few%20questions%20about%20how%20you%20would%20like%20to%20use%20Twilio%2C%20what%20kind%20of%20developer%20are%20you%2C%20the%20kind%20of%20project%20you%20are%20working%20on%2C%20and%20so%20forth.%20For%20sample%20answer%3A%20I%20chose%20-%20Developer%2C%20C%23%2C%20Project%2C%20and%20Send%20or%20receive%20a%20SMS.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20You%20will%20then%20be%20redirected%20to%20the%20project%20dashboard.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22img1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181506i55C73676571DE600%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22img1.png%22%20alt%3D%22img1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20Click%20on%20%3CSTRONG%3E%22Get%20a%20Trial%20Number%22%3C%2FSTRONG%3E.%20A%20random%20number%20is%20generated%20from%20a%20pool%20of%20trial%20numbers%20which%20might%20not%20have%20your%20area%20code%2C%20but%20you%20can%20add%20your%20final%20number%20later.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22img2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181507iEAB9CBDC4D8BD4E4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22img2.png%22%20alt%3D%22img2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E4.%26nbsp%3BClick%20on%20%3CSTRONG%3E%E2%80%9CChoose%20this%20Number%E2%80%9D%3C%2FSTRONG%3E.%20You%20will%20have%20the%20ability%20to%20add%20your%20final%20number%20later.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22img3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181509i4672431A10E255F8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22img3.png%22%20alt%3D%22img3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-align-center%22%20id%3D%22toc-hId-1796799030%22%20id%3D%22toc-hId-1796799030%22%3ECreating%20a%20TwiML%20app%20and%20forwarding%20Twilio%20messages%20to%20the%20Healthcare%20bot%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20On%20the%20left-hand%20bar%2C%20click%20on%20the%20circle%20with%20ellipses%20on%20the%20menu%20bar.%20Click%20Programmable%20Messaging.%26nbsp%3B%3CSPAN%3EYou%20can%20even%20pin%20it%20to%20keep%20it%20on%20the%20menu.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ProgrammableMessaging.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215713i926A793E7E302D3F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22ProgrammableMessaging.png%22%20alt%3D%22ProgrammableMessaging.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20In%20Programmable%20Messaging%20tab%2C%20click%20on%20Helper%20Tools%20-%26gt%3B%20TwiML%20Apps%20-%26gt%3B%20Create%20a%20new%20TwiML%20App%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22TwiMLApp.png%22%20style%3D%22width%3A%20234px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215714iFED3197B13387CBA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22TwiMLApp.png%22%20alt%3D%22TwiMLApp.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20In%20Create%20TwiML%20App%20screen%2C%20add%20the%20following%20details%20and%20click%20Save%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGive%20it%20a%20friendly%20name%3C%2FLI%3E%0A%3CLI%3EYou%20can%20leave%20Voice%20REQUEST%20URL%20blank%3C%2FLI%3E%0A%3CLI%3EAdd%20Messaging%20REQUEST%20URL%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsms.botframework.com%2Fapi%2Fsms%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsms.botframework.com%2Fapi%2Fsms%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CreateTwiMLAp.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215717i3A3817636C1B3830%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22CreateTwiMLAp.png%22%20alt%3D%22CreateTwiMLAp.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E4.%20Now%2C%20the%20app%20is%20created%20and%20settings%20are%20configured%20to%20send%20messages%20to%20the%20health%20bot.%20Next%2C%20we%20need%20to%20associate%20the%20Twilio%20number%20with%20the%20service.%3C%2FP%3E%0A%3CP%3ETo%20do%20this%2C%20click%20on%20the%20circle%20with%20ellipses%20on%20the%20menu%20bar%20on%20the%20left-hand%20bar.%20Select%20%23%20Phone%20Numbers%20-%26gt%3B%20Manage%20Number%20-%26gt%3B%20Active%20Numbers%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20%3C%2FEM%3EFor%20adding%20an%20existing%20verified%20number%20to%20use%20with%20this%20app%2C%20please%20refer%20%3CA%20href%3D%22https%3A%2F%2Fsupport.twilio.com%2Fhc%2Fen-us%2Farticles%2F223180048-Adding-a-Verified-Phone-Number-or-Caller-ID-with-Twilio%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETwilio's%20support%20doc%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PhoneNumbers.png%22%20style%3D%22width%3A%20335px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215718iE40EC15117C1080D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22PhoneNumbers.png%22%20alt%3D%22PhoneNumbers.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E5.%20Click%20on%20the%20trial%20number%20(Or%20add%20the%20verified%20number%20if%20you%20have%20already%20switched%20to%20verified%20number).%20In%20%3CSTRONG%3EConfigure%3C%2FSTRONG%3E%20tab%2C%20scroll%20down%20and%20change%20%3CSTRONG%3EVoice%20%26amp%3B%20Fax%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EMessaging%3C%2FSTRONG%3E%20sections%20to%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECONFIGURE%20WITH%3A%20TwiML%20App%3C%2FLI%3E%0A%3CLI%3ETWIML%20APP%3A%20Select%20name%20of%20the%20TwiML%20App%20created%20in%20previous%20step%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ConfigureWith.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215721i6154D87DDD24A109%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ConfigureWith.png%22%20alt%3D%22ConfigureWith.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E6.%20Save%20the%20settings.%20You%20should%20see%20a%20configuration%20similar%20to%20this%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ActiveNumbers.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215722i84D10074A28D80F6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ActiveNumbers.png%22%20alt%3D%22ActiveNumbers.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22lia-align-center%22%20id%3D%22toc-hId--10655433%22%20id%3D%22toc-hId--10655433%22%3EConnecting%20Healthcare%20Bot%20to%20Twilio%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Click%20on%20Home%20button%20to%20go%20to%20Twilio's%20Project%20Dashboard.%20Project%20Info%20has%20the%203%20pieces%20of%20information%20you%20need%20to%20connect%20to%20healthcare%20bot%20%E2%80%93%20Phone%20Number%2C%20Account%20SID%2C%20and%20Auth%20Token.%20You%20can%20click%20on%20the%20double%20box%20on%20the%20right-hand%20side%20to%20copy%20values%20to%20your%20clipboard.%20%3CEM%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%3C%2FEM%3E%20You%20can%20get%20Auth%20Token%20by%20clicking%20on%20%3CEM%3EShow.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22imga5.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181510iD518E875A2219C83%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22imga5.png%22%20alt%3D%22imga5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Login%20to%20your%20healthcare%20bot%20admin%20portal.%20Navigate%20to%20Integration%20-%26gt%3B%20Channels.%20Mark%20Twilio%20channel%20active.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22imgb1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181511iFA4C92AA394F9BA3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22imgb1.png%22%20alt%3D%22imgb1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20You%20will%20be%20prompted%20for%20the%20Phone%20Number%2C%20Account%20SID%2C%20and%20Auth%20Token.%20Enter%20details%20you%20copied%20from%20Twilio%26nbsp%3BProject%20Info%20in%20previous%20step.%20Click%20%E2%80%9CSave%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22imgb2.png%22%20style%3D%22width%3A%20417px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181512i34F52CC6D4E81E36%2Fimage-dimensions%2F417x236%3Fv%3D1.0%22%20width%3D%22417%22%20height%3D%22236%22%20title%3D%22imgb2.png%22%20alt%3D%22imgb2.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%3ECongratulations%2C%20you%20have%20successfully%20completed%20the%20configuration%20and%20can%20now%20try%20out%20the%20new%20SMS%20to%20Health%20Bot%20connection%20by%20sending%20an%20SMS%20to%20your%20trial%20(%2Fverified)%20number%20with%20a%20%3CEM%3E%3CSTRONG%3EHi%3C%2FSTRONG%3E%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPlease%20note%3A%20%3C%2FSTRONG%3EThe%20health%20bot%20needs%20to%20respond%20to%20any%20kind%20of%20text%20and%20it%20may%20not%20be%20related%20to%20the%20scenarios%20outlined%20on%20web%20pages%20that%20host%20the%20Health%20bot%20via%20Web%20Chat%20channel.%20If%20you%20want%20to%20run%20a%20specific%20scenario%2C%20send%20a%20SMS%26nbsp%3Bto%20your%20trial%20(%2Fverified)%20number%20with%20a%20%22begin%20%3CSCENARIO_ID%3E%22.%20For%20example%2C%20if%20you%20want%20to%20invoke%20a%20scenario%20with%20scenario_id%20%3D%20covid19_assessment%2C%20send%20a%20SMS%20to%20your%20trial%20number%20as%20%3CEM%3E%3CSTRONG%3Ebegin%20covid19_assessment%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FSCENARIO_ID%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reading%20and%20let%20us%20know%20how%20we%20can%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JohnBrown_LinkedIn.jfif%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181520i26A13D91C5002737%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20title%3D%22JohnBrown_LinkedIn.jfif%22%20alt%3D%22JohnBrown_LinkedIn.jfif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjohnstewartbrown%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EJohn%20Brown%3C%2FA%3E%2C%20Microsoft%20Azure%20Cloud%20Architect%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Nikita_LinkedIn.jfif%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180770i08B1EB22654DCABD%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20title%3D%22Nikita_LinkedIn.jfif%22%20alt%3D%22Nikita_LinkedIn.jfif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fnikitapitliya%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENikita%20Pitliya%3C%2FA%3E%2C%20Microsoft%20Data%20%26amp%3B%20AI%20Solution%20Architect%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1273863%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EMicrosoft's%20Healthcare%20bot%20can%20work%20over%20SMS%20by%20connecting%20to%20Twilio%20service.%20Twilio%20is%20a%20SMS%20service%20that%20provides%20an%20API%20for%20sending%20and%20receiving%20SMS%20messages.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22teaserimg.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181493iAE702A151D93FC8F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22teaserimg.png%22%20alt%3D%22teaserimg.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1273863%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECovid-19%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEducation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ehealthcare%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHealthcare%20Bot%20Service%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Healthcare%20bot%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Microsoft Healthcare Bot service can be configured to connect to multiple channels. A channel is a connection between the Healthcare Bot and communication apps. The Healthcare Bot leverages Azure Bot Service to connect your bot to a channel and facilitates communication between your bot and the user. The default channels available in Healthcare bot are Web Chat, DirectLine, Microsoft Teams, Twilio and Facebook.

 

Healthcare Bot is easy to connect with a Web Chat embedded on a web page or connect with Microsoft Teams. Another popular channel is to connect it to an SMS provider for public-facing scenarios. Twilio allows us to establish a connection such that patients can interact with the health bot via a simple text message.

teaserimg.png

This blog provides step-by-step instructions to connect the Healthcare Bot to Twilio’s SMS service. Steps include:

  1. Creating a Twilio account and getting a trial number
  2. Creating a TwiML app and forwarding Twilio messages to the Healthcare bot
  3. Connecting Healthcare Bot to Twilio

 

Creating a Twilio account and Getting a trial number

 

1. Create a new Twilio account using Twilio's sign up page. Requirements to sign up: a valid email address and phone number. It then asks a few questions about how you would like to use Twilio, what kind of developer are you, the kind of project you are working on, and so forth. For sample answer: I chose - Developer, C#, Project, and Send or receive a SMS.

 

2. You will then be redirected to the project dashboard.

img1.png

 

3. Click on "Get a Trial Number". A random number is generated from a pool of trial numbers which might not have your area code, but you can add your final number later.

img2.png

 

4. Click on “Choose this Number”. You will have the ability to add your final number later.

img3.png

 

Creating a TwiML app and forwarding Twilio messages to the Healthcare bot

 

1. On the left-hand bar, click on the circle with ellipses on the menu bar. Click Programmable Messaging. You can even pin it to keep it on the menu.

ProgrammableMessaging.png

 

2. In Programmable Messaging tab, click on Helper Tools -> TwiML Apps -> Create a new TwiML App

TwiMLApp.png

 

3. In Create TwiML App screen, add the following details and click Save:

CreateTwiMLAp.png

 

4. Now, the app is created and settings are configured to send messages to the health bot. Next, we need to associate the Twilio number with the service.

To do this, click on the circle with ellipses on the menu bar on the left-hand bar. Select # Phone Numbers -> Manage Number -> Active Numbers

Note: For adding an existing verified number to use with this app, please refer Twilio's support doc.

PhoneNumbers.png

 

5. Click on the trial number (Or add the verified number if you have already switched to verified number). In Configure tab, scroll down and change Voice & Fax and Messaging sections to

  • CONFIGURE WITH: TwiML App
  • TWIML APP: Select name of the TwiML App created in previous step 

ConfigureWith.png

 

6. Save the settings. You should see a configuration similar to this:

ActiveNumbers.png

 

Connecting Healthcare Bot to Twilio

 

1. Click on Home button to go to Twilio's Project Dashboard. Project Info has the 3 pieces of information you need to connect to healthcare bot – Phone Number, Account SID, and Auth Token. You can click on the double box on the right-hand side to copy values to your clipboard. Note: You can get Auth Token by clicking on Show.

imga5.png

 

2. Login to your healthcare bot admin portal. Navigate to Integration -> Channels. Mark Twilio channel active.

imgb1.png

 

3. You will be prompted for the Phone Number, Account SID, and Auth Token. Enter details you copied from Twilio Project Info in previous step. Click “Save”.

imgb2.png

 

 

Congratulations, you have successfully completed the configuration and can now try out the new SMS to Health Bot connection by sending an SMS to your trial (/verified) number with a Hi.

 

Please note: The health bot needs to respond to any kind of text and it may not be related to the scenarios outlined on web pages that host the Health bot via Web Chat channel. If you want to run a specific scenario, send a SMS to your trial (/verified) number with a "begin <scenario_id>". For example, if you want to invoke a scenario with scenario_id = covid19_assessment, send a SMS to your trial number as begin covid19_assessment

 

Thanks for reading and let us know how we can help.

 

JohnBrown_LinkedIn.jfif

John Brown, Microsoft Azure Cloud Architect

 

Nikita_LinkedIn.jfif

Nikita Pitliya, Microsoft Data & AI Solution Architect