Saving session params via external API using REST

803 views
Skip to first unread message

Akash Sunil Nirantar

unread,
Apr 5, 2022, 10:25:43 PM4/5/22
to Dialogflow CX Edition users
Hello all,
I am trying to save session parameters externally from a server where the request didnt come from dialogflow CX.
Following is what I am trying to do:-
  1. There is a Log in button on chatbot (deployed on fb messenger)
  2. After user clicks on it, a webview is opened with login page
  3. After user provides correct details and presses login. I get all the user info on my server after this step
  4. I want to save this user info instantly on the dialogflow session.
As the request came from a website and not dialogflow chatbot I am unable to send the response to dialogflow directly. I want to save the user info in the session using the session ID. I am unable to find any such REST API provided by Dialogflow CX.

Shameem Ferdous

unread,
Apr 8, 2022, 7:16:46 PM4/8/22
to Dialogflow CX Edition users
To investigate the issue further it requires investigating your Project ID and possibly reproduction which is beyond the scope of Google Groups. Please also note that Google Groups forum is meant for general discussion of the platform, not specific technical issues. You can find more info about Community Support Overview on Google Groups here [1]

In case there are any technical issues or you would like to request any feature regarding Google Cloud Platform you can report it at the Public Issues by selecting the right component here [2]. 

If you need to select any project specific information please select the private component of the Public Issue so that the information is not visible to the public. After that a Google Cloud Platform support agent would assist you. In case you have any technical queries or think your issue is related to code, you can post at the Stack Overflow [3] or Server Fault and a community of developers will assist you.

[1] https://cloud.google.com/support/docs/community
[2] https://cloud.google.com/support/docs/issue-trackers
[3] https://cloud.google.com/support/docs/stackexchange
[4] https://stackoverflow.com/help/how-to-ask

Akash Sunil Nirantar

unread,
Apr 13, 2022, 3:15:19 AM4/13/22
to Dialogflow CX Edition users
Hello Shameem,
Thanks for replying, my query was actually regarding Dialogflow CX REST APIs. I want to save some data on to a dialogflow CX session using a REST API. I was able to find one API to save "Session entities" for a particular session but thats not what I want. What I want is to save some data into parameters in a dialogflow user session.
Let me know if there is any such API present. I am referring this link https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3-overview

thanks!

Saurav Nair

unread,
Apr 13, 2022, 3:45:34 AM4/13/22
to Dialogflow CX Edition users
Hi,
I believe the API you are looking for is the detectIntent API. For this use case, you could trigger an event (maybe a welcome event) and pass in the data in the parameters field of QueryParams and it should be available in the session throughout the conversation.

Akash Sunil Nirantar

unread,
Apr 13, 2022, 3:57:36 AM4/13/22
to Dialogflow CX Edition users
Thank you so much
You would not believe but I figured the exact thing out as I received your message. Haha, what a timing.
Reply all
Reply to author
Forward
0 new messages