Extend before and after appointment activities

Microsoft Power Automate and Logic Apps provide developers with no-code & low-code tools to configure the customer journey before and after the appointment via pre-existing connectors. You can use their triggers and actions to tailor your experience. Microsoft 365 introduces triggers (examples of triggers are: button is selected, booking is created, booking is canceled, time recurrence, form submitted, or file upload), that allows you to automate your flows, and Azure Communication Services introduces actions to use various communication channels to communicate with your customers. Examples of actions are; send an SMS, send an email, send a chat message.

Prerequisites

The reader of this article is expected to be familiar with:

Send SMS, email, and chat message when booking is canceled

When a booking is canceled, there are three options to send confirmation of cancellation: SMS, email, and/or chat message. The following example shows how to configure each of the three options in Power Automate.

The first step is to select the Microsoft Booking trigger "When an appointment is Canceled" and then select the address that is used for the management of Virtual appointments.

Example of Power Automate flow that sends an SMS, email and chat message when Microsoft Booking is canceled.

Second, you must configure every individual communication channel. We start with "Send SMS". After providing the connection to Azure Communication Services resource, you must select the phone number that will be used for SMS. If you don't have an acquired phone number in the resource, you must first acquire one. Then, you can use the parameter "customerPhone" to fill in the customer's phone and define the SMS message.

The next parallel path is to send the email. After connecting to Azure Communication Services, you need to provide the sender's email. The receiver of the email can be taken from the booking property "Customer Email". Then you can provide the email subject and rich text body.

The last parallel path sends a chat message to your chat solution powered by Azure Communication Services. After providing a connection to Azure Communication Services, you define the Azure Communication Services user ID that represents your organization (for example, a bot that replaces the value <APPLICATION USER ID> in the previous image). Then you select the scope "Chat" to receive an access token for this identity. Next, you create a new chat thread to send a message to this user. Lastly, you send a chat message in created chat thread about the cancellation of the Virtual appointment.

Next steps