Using task modules with bots for Microsoft Teams
Skills:
AI Pair Programming60%
Key Takeaways
Demonstrates using task modules with bots for Microsoft Teams
Full Transcript
task modules can be a vote from a custom tab in microsoft teams from anywhere using a deep link and from bots but task modules offer developers a way to collect user input with a bot as well and keep everyone in the channel from seeing what other users are doing so in this section you're going to learn how to use task modules with bots and microsoft teams how to process task modules submissions and bots and how to develop bots with task modules i'm going to skip this slide so far throughout this module you've learned how to create task modules as html web pages and adaptive cards and you've learned how to use the task modules from tabs as well as invoking them using microsoft teams support for deep links another way that you can use task modules is from bots bots present a unique challenge in that there's no user interface to interact with a bot rather all communication is typically done using conversations microsoft's bot framework and the microsoft teams sdks have added support for not only invoking task modules but also to handle the action.submit event in the case where task modules are submit information back to the bot so let's talk about invoking task modules from bots now recall from a previous conversations the process for invoking a task module is to call the submit task method on the microsoft teams javascript sdk this method won't work when invoking the task module from the bot because the bot's code is running as a web service external to microsoft teams instead you have two options for invoking a task module from a bot one option is to use a deep link that is included in the message posted to the conversations tab in microsoft teams by the bot when a user selects this link it will invoke the task module the other option is to send a special type of a message to the bot framework and therefore to microsoft teams and this can be sent from a card action or from the bot itself to create the message set the button's type to invoke the value type property of the button should be set to task fetch or action.submit if you're using an adaptive card when the user selects the button it will send an http post invoke message to the bot and the microsoft teams sdk automatically processes all of the invoke messages and directs them to one of two handlers either the handle teams task module fetch is going to be called when the value.type property of the message is a task fetch or the handle team's task module submit is called when the value type property is task slash submit both of these methods return an object of type task module response and this object tells microsoft teams to either display a message which is a type colon message or to display another task module which is type call and continue the details of the response either as a message or a task module are included in the value property of the returned object so for example as you see here on the slide the following response from either of the two handlers to display a task module message either where the type equals message or the type is continue for to add in or to show another task module
Original Description
Task modules offer developers a way to collect user input with a bot and keep everyone in the channel from seeing what another user is doing with the bot.
This video is part of a series in a playlist and is associated with a Microsoft Learning module: 'Collect Input in Microsoft Teams with Task Modules'.
Refer to the following URL to access the Microsoft Learning module for hands-on lab exercises and more resources:
https://docs.microsoft.com/learn/modules/msteams-task-modules
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Adaptive Cards community call-February 2019
Microsoft 365 Developer
PowerApps community call-February 2019
Microsoft 365 Developer
Microsoft Graph community call-March 2019
Microsoft 365 Developer
Office Add ins community call-March 2019
Microsoft 365 Developer
PowerApps community call-March 2019
Microsoft 365 Developer
Microsoft Teams community call-March 2019
Microsoft 365 Developer
Using React and Office UI Fabric React Components
Microsoft 365 Developer
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
Microsoft Graph community call-April 2019
Microsoft 365 Developer
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
Office Add Ins community call-April 2019
Microsoft 365 Developer
Adaptive Cards community call-April 2019
Microsoft 365 Developer
Microsoft Teams community call-April 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
Getting Started with Microsoft Graph
Microsoft 365 Developer
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
Adaptive Cards community call-May 2019
Microsoft 365 Developer
Office Add-ins community call-May 2019
Microsoft 365 Developer
Why We Built on Microsoft Teams
Microsoft 365 Developer
Microsoft Teams community call-May 2019
Microsoft 365 Developer
Microsoft Graph community call-June 2019
Microsoft 365 Developer
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Office Add -ins community call-June 2019
Microsoft 365 Developer
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer
More on: AI Pair Programming
View skill →Related AI Lessons
🎓
Tutor Explanation
DeepCamp AI