Hello,
As we have successfully integrated webhook channel via kore.ai chatbot…The information we are passing from webhook in from parameter is below mentioned
“from”: {
“id”: “abc@xyz.com”,
“userInfo”: {
“email”: “abc@xyz.com”,
“firstName”: “ABC”,
“lastName” : “XYZ”
I am not getting the way to read these parameters like emailid , firstname,lastname.
Please help us in reading the values form webhook channel
You should be able to fetch those values entered from the Entity Node using the below format:
{{Context.entities.id}}
{{Context.entities.email}}
{{Context.entities.firstname}}
{{Context.entities.lastname}}
or
{{Context.session.UserSession}}
Alternatively, you can use print statements like print(JSON.stringify(context.session)); in the message node which will print the entire session object at that time.