The Calendar bot example solution showcases one way to use the Power Automate backend connector in a Teneo solution containing an integration and flows that can be used to create, get, update, and delete meetings in Office 365 Outlook.
The solution contains a Power Automate backend integration with a method that sends an HTTP Post request with a JSON object to Power Automate, which then carries out the requested action and sends a response back to Teneo so this can be used in the bot output.
The Power Automate flow is triggered by an HTTP request. It contains four different cases for creating, getting, updating, and deleting meetings in Outlook. Which case is used depends on the sAction flow variable that is unique for each of the four Teneo flows.
In order to use this solution, you will need a Power Automate account in which to create a flow.
As the solution uses the calendar function in Office 365 Outlook, you will need to be logged into Outlook.
These instructions also assume you have downloaded and imported the Power Automate solution. See instructions below.
There are two global variables in the Teneo solution that you will need to store values for.
Variable Name | Example value | Description |
---|---|---|
powerAutomateURL | 'https://prod-XX.westeurope.logic.azure.com/workflows/XXXX/triggers/manual/paths/invoke/SendMail?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=XXXXX' | HTTP Post URL from the Power Automate flow trigger 'When a HTTP request is received'. |
nTimeZone | 2 | Number of hours' difference from the Coordinated Universal Time (UTC), used by Power Automate. The example value of 2 is for Central European Time, i.e. UTC+2. |
In this example, the user creates a meeting for the following day:
User: I want to create a meeting.
Bot: What is the subject of the meeting?
User: Teneo
Bot: What is the date and start time of the meeting?
User: Tomorrow at 2 pm.
Bot: What is the end time of the meeting?
User: 3 pm
Bot: Is the following information correct?
Meeting subject: Teneo
Start time: 14:00 on 2021-07-27
End time: 15:00 on 2021-07-27
User: Yes
Bot: Your meeting has been created.
The bot can retrieve a list of meetings for a specified date; here, it lists the one that was just created:
User: Please show me my meetings
Bot: What day do you want to see the meetings for?
User: Tomorrow
Bot: These are the meetings for 2021-07-27:
14:00-15:00: Teneo
The user can change the subject, start time, or end time of any of their meetings:
User: I want to update a meeting
Bot: What is the subject of the meeting you want to update? Please note that this is case sensitive.
User: Teneo
Bot: What day is the meeting scheduled for?
User: Tomorrow
Bot: What part of the meeting do you want to update: subject, start time, or end time?
User: Start time
Bot: What would you like to change the start time to?
User: 14:30
Bot: Okay, I will update the start time. Do you want to change anything else for this meeting?
User: No
Bot: Do you want me to update the meeting with the following information?
Start time: 14:30 on 2021-07-27
User: Yes
Bot: Your meeting has been updated.
Finally, the user can also delete meetings:
User: Delete meeting
Bot: What is the subject of the meeting you want to delete? Please note that this is case sensitive.
User: Teneo
Bot: What day is the meeting scheduled for?
User: Tomorrow
Bot: Do you want to delete the meeting Teneo on 2021-07-27?
User: Yes
Bot: Your meeting has been deleted.
The solution contains the following components:
Was this page helpful?