custom event via detectIntent with node.js

73 views
Skip to first unread message

Peer

unread,
Dec 9, 2021, 12:11:43 PM12/9/21
to Dialogflow Essentials Edition users
Hello, I want to pass user information at the beginning of a conversation to dialogflow. In Dialogflow History it detects the event and the name of it but my added parameters are not shown and are not added as values to the corresponding parameters of the welcome Intent. I'm not sure if the mistake is in my sent message or in the declaration of the parameters and I could not find any solutions in the Df-documentaion. I tried these structures:
{
   session: sessionPath,
   queryInput: {
      event: {
         name: "init",
         data: {
            name: name,
            email: email
         },
         languageCode: languageCode
      },
   }, 

and 
{
   session: sessionPath,
   queryInput: {
      event: {
         name: "init",
         parameters: {
            name: name,
            email: email
         },
         languageCode: languageCode
      },
   }, 

Thanks for help,
Best regards Peer
Bildschirmfoto 2021-12-07 um 20.26.02.png

Mizar Contasti

unread,
Dec 21, 2021, 2:02:35 PM12/21/21
to Peer, Dialogflow Essentials Edition users
What I recommend you is to Insert Into Context all the parameters that you want to use.

--
© 2021 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow Essentials (f.k.a. Enterprise) Edition Discussion Google Group (dialogflow-essent...@googlegroups.com; former email: dialogflow-enterp...@googlegroups.com) to participate in discussions with other members of the Dialogflow community and the Dialogflow Team.
---
You received this message because you are subscribed to the Google Groups "Dialogflow Essentials Edition users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dialogflow-essentials-e...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dialogflow-essentials-edition-users/297ea7d5-fbba-4447-b8f3-79155d70634an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages