Channel specific data

4 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€43.50
List Price:  €60.90
You save:  €17.40
£37.39
List Price:  £52.35
You save:  £14.96
CA$69.17
List Price:  CA$96.85
You save:  CA$27.67
A$78.07
List Price:  A$109.31
You save:  A$31.23
S$65.36
List Price:  S$91.50
You save:  S$26.14
HK$387.81
List Price:  HK$542.97
You save:  HK$155.15
CHF 40.55
List Price:  CHF 56.77
You save:  CHF 16.22
NOK kr517.27
List Price:  NOK kr724.23
You save:  NOK kr206.95
DKK kr324.78
List Price:  DKK kr454.72
You save:  DKK kr129.94
NZ$83.24
List Price:  NZ$116.55
You save:  NZ$33.30
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳6,070.98
List Price:  ৳8,499.86
You save:  ৳2,428.88
₹4,258.23
List Price:  ₹5,961.86
You save:  ₹1,703.63
RM219.45
List Price:  RM307.25
You save:  RM87.80
₦80,219.95
List Price:  ₦112,314.35
You save:  ₦32,094.40
₨14,022.19
List Price:  ₨19,632.19
You save:  ₨5,610
฿1,660.65
List Price:  ฿2,325.05
You save:  ฿664.39
₺1,912.68
List Price:  ₺2,677.91
You save:  ₺765.22
B$290.37
List Price:  B$406.55
You save:  B$116.17
R931.74
List Price:  R1,304.52
You save:  R372.77
Лв85.01
List Price:  Лв119.03
You save:  Лв34.01
₩71,210.16
List Price:  ₩99,699.92
You save:  ₩28,489.76
₪185.77
List Price:  ₪260.09
You save:  ₪74.32
₱2,833.15
List Price:  ₱3,966.64
You save:  ₱1,133.48
¥7,021.45
List Price:  ¥9,830.60
You save:  ¥2,809.14
MX$981.93
List Price:  MX$1,374.78
You save:  MX$392.85
QR182.01
List Price:  QR254.83
You save:  QR72.82
P688.61
List Price:  P964.11
You save:  P275.50
KSh6,483.70
List Price:  KSh9,077.70
You save:  KSh2,594
E£2,552.66
List Price:  E£3,573.93
You save:  E£1,021.27
ብር6,546.19
List Price:  ብር9,165.19
You save:  ብር2,619
Kz45,865.82
List Price:  Kz64,215.82
You save:  Kz18,350
CLP$48,067.30
List Price:  CLP$67,298.07
You save:  CLP$19,230.76
CN¥364.54
List Price:  CN¥510.39
You save:  CN¥145.84
RD$2,986.90
List Price:  RD$4,181.90
You save:  RD$1,195
DA6,595.03
List Price:  DA9,233.57
You save:  DA2,638.54
FJ$112.49
List Price:  FJ$157.49
You save:  FJ$45
Q385.02
List Price:  Q539.06
You save:  Q154.03
GY$10,484.65
List Price:  GY$14,679.35
You save:  GY$4,194.70
ISK kr6,303.23
List Price:  ISK kr8,825.03
You save:  ISK kr2,521.80
DH461.89
List Price:  DH646.68
You save:  DH184.79
L863.83
List Price:  L1,209.44
You save:  L345.60
ден2,674.89
List Price:  ден3,745.06
You save:  ден1,070.17
MOP$399.43
List Price:  MOP$559.23
You save:  MOP$159.80
N$938.31
List Price:  N$1,313.71
You save:  N$375.40
C$1,838.39
List Price:  C$2,573.90
You save:  C$735.50
रु6,815.87
List Price:  रु9,542.77
You save:  रु2,726.89
S/185.18
List Price:  S/259.27
You save:  S/74.09
K203.18
List Price:  K284.47
You save:  K81.29
SAR187.51
List Price:  SAR262.53
You save:  SAR75.02
ZK1,423.44
List Price:  ZK1,992.94
You save:  ZK569.49
L216.50
List Price:  L303.11
You save:  L86.61
Kč1,089.97
List Price:  Kč1,526.05
You save:  Kč436.07
Ft17,792.75
List Price:  Ft24,911.28
You save:  Ft7,118.52
SEK kr474.58
List Price:  SEK kr664.46
You save:  SEK kr189.87
ARS$54,615.02
List Price:  ARS$76,465.40
You save:  ARS$21,850.38
Bs345.82
List Price:  Bs484.18
You save:  Bs138.35
COP$212,845.24
List Price:  COP$298,000.37
You save:  COP$85,155.12
₡25,121.87
List Price:  ₡35,172.63
You save:  ₡10,050.75
L1,292.24
List Price:  L1,809.24
You save:  L516.99
₲399,820.51
List Price:  ₲559,780.71
You save:  ₲159,960.20
$U2,116.99
List Price:  $U2,963.96
You save:  $U846.96
zł186.32
List Price:  zł260.87
You save:  zł74.54
Already have an account? Log In

Transcript

Hello guys, welcome to the 37th session of using Microsoft Word framework Louise and cognitive services tutorials for beginners. In this session we will learn how to send a different response to different channels. It is a useful feature. As we know each tenant does not support all of these features such as for adding bold text in some channels, we can use HTML or in some we need to use markdown. So using these we can generate a different response to those two channels. It is not limited to text formatting, we can also attach each cards that are only supported by a specific channel.

For example, Facebook's flight card, we need to assign our data to channel data property of message activity. Channel data is dynamic property which can hold any kind of object. We need to create an object as called Jason payload data required by Tim Microsoft documentation contains various JSON examples for that. It also contains links to channels docs. So we can also learn and create more rich attachment as per requirement. I have created a new dialog for that and also updated it in message controller.

And the returned message from result. That is create a reply from a message dot channel ID. It contains the name of China. That is abbreviated Facebook Skyping like telegram, etc. It was a telegram then I'm going to send a speaker. Here is a payload data that required by telegram to create a speaker.

It includes the name of method that is done speaker and reading parameters past attachment data. Here I have used an image from TP that is copy this and escaping exports. If you perform this operation more frequently then you can also create a model and assign values to properties. But here I'm going to use Newton soft to deserialize the JSON data. Here is payload data example for slack. It includes tax and multiple attachments.

The first attachment contains a link as well as English. My second attachment only contains title and tax. You can also add files, folders etc. But in this example, I don't need this. Let us copy this and of course for these two Copy Paste case, change to slide and upgrade Jason string. Here is payload data example for the Facebook Messenger.

Here I have just added an image that is encoded and update JSON data. Create a default case and assign tax message that you want to display in your boat other than telegram slack and Facebook. At the end Sandy's reply to our poll. We need to publish those changes and as you can sign hi from telegram here we can see I have stickers as well Jason Primo data loggers check in slack Here we got title string, as well as two attachments first contains an image and another contains only title and type. And now I'm sending hi from emulator. Here we got a text message that we have specified in the default case.

Let us see what we have learned in this session. To send channel specific data we need to use channel ID to obtain channels based on reach perform the operation and assign custom payload data into channel data optimization. Here is the payload for telegram and Facebook. Here firstly and here is an example that we have. Thanks for watching this video. If you have any doubts, please feel free to contact me Have a nice day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.