Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

How to enrich messages with content? #57

Open
muliyul opened this issue Dec 21, 2020 · 4 comments
Open

How to enrich messages with content? #57

muliyul opened this issue Dec 21, 2020 · 4 comments

Comments

@muliyul
Copy link

muliyul commented Dec 21, 2020

I have a Dropwizard application configured. The endpoint is configured as follows:

image

My app:
image

I want to create personalized experience for the authenticated user but I cannot pass the user to the @ForIntent method for obvious reasons.

In order to solve this I'm required to create an instance per request/user however that feels like bad practice.

How do I use this library with my use case?

@Fleker
Copy link
Member

Fleker commented Dec 21, 2020

How are you getting the user? Can you grab the user data from account linking in the intent handler and then use that to generate a personalized response?

@muliyul
Copy link
Author

muliyul commented Dec 21, 2020

How are you getting the user? Can you grab the user data from account linking in the intent handler and then use that to generate a personalized response?

I'm saving the session of the user in a database, fetching it when a webhook arrives.
I'm using Dialogflow, not Google actions.

I've also noticed Events are missing from the API and this is a deal breaker for me.

@taycaldwell
Copy link
Contributor

This library is for webhook development for the Google Assistant Dialogflow integration. If you are not integrating with Google Assistant, this library will not be useful.

For more information regarding Dialogflow development tooling, please visit the Dialogflow documentation.

@muliyul
Copy link
Author

muliyul commented Dec 21, 2020

The Java/Kotlin library makes it easy to create Actions for the Google Assistant and supports Dialogflow and Actions SDK fulfillment.

Somewhat misleading don't you think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants