Firebase functions integration and google sign in

172 views
Skip to first unread message

Vladimir Korukov

unread,
Sep 7, 2020, 6:57:54 PM9/7/20
to Dialogflow CX Edition users
Hello,

Dialogflow cx seems more robust than the previous version and I'm excited to start using it. I was wondering what the webhook support for it looks like.

Can we use the firebase functions code that worked with the old dialogflow version? The code imported 'actions-on-google' npm module and used that library to handle intents, is that module compatible with webhooks in dialogflow cx?

One thing that library provided was google sign in - so that the webhook handler knew which user was making the request from actions on Google. Can dialogflow cx webhook also tell me the id of the user somehow?

Thanks,
Vladimir

Svetlana Pastukhova

unread,
Sep 7, 2020, 7:28:40 PM9/7/20
to Dialogflow CX Edition users
Hi Vladimir, 

Dialogflow Essentials fulfillment libraries are not compatible with Dialogflow CX – the webhook format in Dialogflow CX is different.

For more details, please check the following documentation:

Vladimir Korukov

unread,
Sep 8, 2020, 2:55:12 PM9/8/20
to Dialogflow CX Edition users
The API looks easy enough to implement without a library.
However I didn't see any fields in the request for any sort of user ID. I would like my webhook to know which user it's talking to, how would I accomplish that with this API? For example in the es fulfilment library there was an account id field in the request which I could use to do user-specific logic.

Svetlana Pastukhova

unread,
Sep 8, 2020, 3:28:18 PM9/8/20
to Dialogflow CX Edition users
Hi Vladimir, 

When you send a detectIntent request, you can use the QueryParameters.payload field to pass custom data to your webhook. In the WebhookRequest, you will see this data in the payload field.

Vladimir Korukov

unread,
Sep 8, 2020, 4:17:23 PM9/8/20
to Svetlana Pastukhova, Dialogflow CX Edition users
I see, so whoever's between the end user and dialogflow CX is responsible for this, which makes sense. In my case that thing in the middle is Actions on Google. Is there an integration between Dialogflow CX and Actions on Google, or do I have to manually send HTTP requests between the two?

--
© 2020 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow CX Edition Discussion Google Group (dialogflow-cx...@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 a topic in the Google Groups "Dialogflow CX Edition users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dialogflow-cx-edition-users/CXWTu5GJTUA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dialogflow-cx-editi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dialogflow-cx-edition-users/968719a6-5ab7-427b-88e4-56d389942bfan%40googlegroups.com.

Svetlana Pastukhova

unread,
Sep 8, 2020, 5:02:42 PM9/8/20
to Dialogflow CX Edition users
Hi Vladimir, 

For Actions on Google, you can consider using Actions Builder that has conceptual similarities with Dialogflow CX but doesn't require usage of any Dialogflow editions. See more details here. Dialogflow CX doesn't have integration with Actions on Google.

Reply all
Reply to author
Forward
0 new messages