0:05
hello everyone in this video we are
0:07
going to see how to pass data from
0:10
Salesforce chat to Einstein B this
0:13
particular demo is for chat feature and
0:16
not for messaging for inapp and web
0:20
feature the first step is we have to
0:22
create a field in chat transcript object
0:26
so I have created a field called chat
0:34
the next step is we have to add this
0:36
code because we are going to make use of
0:39
extra pre- chart form
0:40
details so that the data will be stored
0:43
in chart transcript and then it can be
0:54
here I have added that embeded
0:58
service extra pre-art form details
1:04
code here I am passing
1:06
window.location.href value so this value
1:11
chat transcript object and this will be
1:19
is use this sample package.xml to
1:24
Bot and add this context variable
1:31
the name is chat site
1:33
context once this is added deploy the
1:36
changes uh back to the
1:43
arc it will create chat site context
1:47
variable in order to display the value
1:50
or if you want to play around with the
1:52
value make use of a custom variable so I
1:55
created uh a text type for uh for and uh
2:00
it's a custom variable not the context
2:07
created here in the main menu I am
2:10
making use of set variable rule action
2:14
sources chat site context variable and
2:17
the destination is chat site custom
2:20
variable and then I'm displaying you are
2:22
accessing the chat from this particular
2:25
chat site custom variable I'm not using
2:31
this so I'm going to initiate a
2:34
chat it will route it to the
2:38
bot and then it will send this
2:44
message so in order to pass data from
2:48
chat to Einstein bot create a field in
2:50
chat transcript object extract your Bot
2:53
add the context variable create a custom
2:57
bot and then uh uh we can U make use of
3:02
set variable rule action and set the
3:05
context variable value to the custom
3:07
variable and then we can display uh on
3:10
the bot dialogue using message
3:15
element please check the video
3:17
description in the video description I
3:19
have shared my blog post from the blog
3:22
post you you should be able to get this
3:24
chat uh uh code which has to be added in
3:30
also the sample package.xml and the
3:34
context variable for your
3:42
reference I hope it was
3:48
helpful thank you for watching