You will need
- Your tyntec API key from the Business Center
- Your WhatsApp Business Account Number that has been assigned to you by tyntec
- A testing Microsoft Dynamics account
- A Microsoft Power Automate license in your Dynamics Environment
- A testing phone with WhatsApp
The sample Flow works in your Microsoft Dynamics background and automatically listens to incoming WhatsApp messages. Once triggered, it checks if the current time matches your working hours and then Sends a WhatsApp Free-form Text message based on the time.
1. Open your Power Automate.
2. In the left dropdown menu, click the Create button.
3. From all possible Flow types, select Automated—from blank.
Automated flows run when an event triggers, Instant starts on a manual trigger, and Scheduled on a given time condition.
4. In the design window pop-up, use the search function to find the event Incoming message from tyntec WhatsApp Business. Then click the Create button.
You are now in the UI Flow designer, in which you can add Actions to your Flow and chain them into algorithms. The designer automatically creates the Incoming message trigger step. When a new message is received, you have 24 hours to send any free-form message. After one day, you will be limited to template messages until a contact responds again.
5. To create a new action, click the + New step. In the step selection, search for the Initialize variable action.
11. In the if no branch, click the Add an action button. In the step selection, search for tyntec WhatsApp Business, and select the Send WhatsApp Free-form message action.
12. Set the to field to from dynamic content, the from field to dynamic content, the contentType to text, and text to your automatic response.
Step Two: Test your Flow
Let's try triggering your Flow.
1.Grab your phone and write a message to your WhatsApp business number.
2. Within a few seconds, you will receive a reply determined by the current time. Voilà! To test a different response, you can change the numeric values in the Conditions action step.
Congratulations on completing your Flow!
The main power of the tyntec WhatsApp Business connector is that it is a quick, low-code, and hosted/deployed way to add functionalities to your internal tools. For example, if you have connected your Power Automate environment to Dataverse (Dynamics databases), you can use the Create a record to save incoming messages as any Dynamics table.
That means by adding Create a record and contact look-up through phone number, you can save the incoming message as a note to the customer record in your Dynamics365. Moreover, you can look into our Microsoft Connector guide that uses a new record as its trigger. With modifications, it will allow your agents to send responses using contact Notes.