set custom parameters like name, email id.. etc from dialogflow messenger to dialogflow.

437 views
Skip to first unread message

parmar rakesh

unread,
Apr 20, 2021, 1:58:43 AM4/20/21
to Dialogflow CX Edition users
Hello,
     I am finding some way to set custom values or attributes which I get from website and send it as payload from dialogflow messenger to dialogflow. So that custom value can be used in response via webhook.
     What I found is setting user-id like below, can we set our own custom attributes and how to use it in webhook. 
 Any help is appreciated. 
Looking for both edition, ES and CX.

const dfMessenger = document.querySelector('df-messenger'); dfMessenger.setAttribute("user-id", YOUR_USER); // Sent to Dialogflow API through queryParams.payload

Reply all
Reply to author
Forward
0 new messages