Using Context

5 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
€42.66
List Price:  €59.73
You save:  €17.06
£37
List Price:  £51.81
You save:  £14.80
CA$69.17
List Price:  CA$96.84
You save:  CA$27.67
A$76.25
List Price:  A$106.75
You save:  A$30.50
S$64.24
List Price:  S$89.95
You save:  S$25.70
HK$389.72
List Price:  HK$545.64
You save:  HK$155.92
CHF 39.89
List Price:  CHF 55.86
You save:  CHF 15.96
NOK kr502.23
List Price:  NOK kr703.17
You save:  NOK kr200.93
DKK kr318.49
List Price:  DKK kr445.91
You save:  DKK kr127.42
NZ$84.82
List Price:  NZ$118.76
You save:  NZ$33.93
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,067.88
List Price:  ৳8,495.52
You save:  ৳2,427.63
₹4,408.44
List Price:  ₹6,172.17
You save:  ₹1,763.73
RM211.18
List Price:  RM295.67
You save:  RM84.49
₦76,077.58
List Price:  ₦106,514.70
You save:  ₦30,437.12
₨14,148.05
List Price:  ₨19,808.40
You save:  ₨5,660.35
฿1,602.23
List Price:  ฿2,243.26
You save:  ฿641.02
₺2,059.71
List Price:  ₺2,883.76
You save:  ₺824.05
B$270.64
List Price:  B$378.92
You save:  B$108.28
R879.25
List Price:  R1,231.03
You save:  R351.77
Лв83.50
List Price:  Лв116.90
You save:  Лв33.40
₩69,311.13
List Price:  ₩97,041.13
You save:  ₩27,730
₪166.43
List Price:  ₪233.01
You save:  ₪66.58
₱2,834.43
List Price:  ₱3,968.43
You save:  ₱1,134
¥7,368.62
List Price:  ¥10,316.66
You save:  ¥2,948.03
MX$935.57
List Price:  MX$1,309.87
You save:  MX$374.30
QR182.23
List Price:  QR255.14
You save:  QR72.90
P670.32
List Price:  P938.51
You save:  P268.18
KSh6,451.68
List Price:  KSh9,032.87
You save:  KSh2,581.18
E£2,426.34
List Price:  E£3,397.07
You save:  E£970.73
ብር7,132.08
List Price:  ብር9,985.48
You save:  ብር2,853.40
Kz45,840.83
List Price:  Kz64,180.83
You save:  Kz18,340
CLP$48,471
List Price:  CLP$67,863.28
You save:  CLP$19,392.27
CN¥356.57
List Price:  CN¥499.22
You save:  CN¥142.65
RD$3,153.13
List Price:  RD$4,414.63
You save:  RD$1,261.50
DA6,491.85
List Price:  DA9,089.11
You save:  DA2,597.26
FJ$112.61
List Price:  FJ$157.67
You save:  FJ$45.05
Q382.39
List Price:  Q535.38
You save:  Q152.98
GY$10,431.26
List Price:  GY$14,604.61
You save:  GY$4,173.34
ISK kr6,106.69
List Price:  ISK kr8,549.85
You save:  ISK kr2,443.16
DH453.12
List Price:  DH634.40
You save:  DH181.28
L836.85
List Price:  L1,171.66
You save:  L334.80
ден2,624.34
List Price:  ден3,674.28
You save:  ден1,049.94
MOP$400.70
List Price:  MOP$561.02
You save:  MOP$160.31
N$881.39
List Price:  N$1,234.02
You save:  N$352.62
C$1,834.99
List Price:  C$2,569.13
You save:  C$734.14
रु7,041.11
List Price:  रु9,858.12
You save:  रु2,817
S/175.62
List Price:  S/245.88
You save:  S/70.26
K208.10
List Price:  K291.36
You save:  K83.25
SAR187.47
List Price:  SAR262.47
You save:  SAR75
ZK1,190.37
List Price:  ZK1,666.62
You save:  ZK476.24
L216.56
List Price:  L303.21
You save:  L86.64
Kč1,040.26
List Price:  Kč1,456.45
You save:  Kč416.19
Ft16,743.47
List Price:  Ft23,442.21
You save:  Ft6,698.73
SEK kr469.67
List Price:  SEK kr657.57
You save:  SEK kr187.90
ARS$68,175.45
List Price:  ARS$95,451.09
You save:  ARS$27,275.63
Bs344.52
List Price:  Bs482.36
You save:  Bs137.83
COP$198,834.18
List Price:  COP$278,383.76
You save:  COP$79,549.58
₡25,262.59
List Price:  ₡35,369.65
You save:  ₡10,107.06
L1,306.28
List Price:  L1,828.90
You save:  L522.61
₲359,364.66
List Price:  ₲503,139.27
You save:  ₲143,774.61
$U2,007.13
List Price:  $U2,810.15
You save:  $U803.01
zł181.30
List Price:  zł253.83
You save:  zł72.53
Already have an account? Log In

Transcript

Hello guys, welcome to the 18th session of the pa da da tutorials for beginners. In this session we will see the Edwin's concept of APA da ta. In this session, we will see the what is the context and how to manage it. contexts represent the current context of user requests. Some time we need to take the decision and accent based on the some condition, such as a user's previous request. In simple term context contains the data of the previous request, which may include the parameter or response.

This will be useful when you want to perform the operation based on the last request. For example, using me say the tanaan location to the Cortana then it will turn on the location and then when users say that turn off it and the Cortana will turn off the location However, here you are, not specify what to turn off and then user may say that the turn on Bluetooth it will start the Bluetooth and when you say that turn off feed now it will turn off the Bluetooth not the location context will be helpful in such a situation context can be added into the output or the input of the intent. To understood this I am going to create the new intent. India first intent I will say the what is my name in India second intent I will retrieve the name from the context create a new intent with the name my name is user will say my name is Niva new level video kind of any entity From here we need to add the output context.

So, expand the context section. And on the output context right here, right the context name that you want to use, I am writing the name you can use the any name for that. here if I indicate that the lifespan of our context will be reset after the EFI request. If you want to change it, you can click it on change it but I don't want to change Let's save it and create a new intent with the name What is my name? Here user whereas do what is my name Here we will add the input context for that write the name it will automatically come in the suggestion and select it which will automatically create the output context to. And when the users area What is my name?

All the responses will be the value from the context. To retrieve the context parameter value when you write to the has a context name that is a name not and a parameter name. In our case it is any, so write any and click on the Save button. And now I'm going to send the what is my name? Here we come in the default fallback. Now, I'm going My name is john and now again Sandy, what is my name?

Here we got the response john from the what is my name intent. Now I am going to write my name is Neela it will send the lead to the context and now I am writing what is my name? We got the anila not that here we are not used the any fulfillment. If you want to use the value of the context in the fulfillment, then you can retrieve it from the context property of the request. Let's see what we are In this session, first of all CD or what is the context, then CD it's a real time example of turn of command. Then set the output context in the intent.

Then create a new intent and add the input context and retrieve the value of the context. For this we need to write the A has sign, context name dot the parameter name. Thanks for watching, have a nice day. If you have any doubt, feel free to contact me

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.