Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom payload answer with Dialogflow #12

Open
guidodipaolo opened this issue Mar 4, 2018 · 2 comments
Open

Custom payload answer with Dialogflow #12

guidodipaolo opened this issue Mar 4, 2018 · 2 comments

Comments

@guidodipaolo
Copy link

Hi !!
It seems that when an Dialogflow Intent has a custom payload as answer, the chatbot doesnt show it.

In my particular case, in many cases, I have only custom payload answers and when it happends, i dont get any answer from the bot.
If I add a text answer from Dialogflow console, the bot shows only the text answer and not the payload.

Any way to get the payload answer ?

Thanks

@christophrumpel
Copy link
Owner

I will give it a look today. Thx for mentioning.

@christophrumpel
Copy link
Owner

Hey @guidodipaolo ,

I wasn't sure if I should add it because this should be just very simple boilerplate. There are dozens of other things that could be implemented as well, but I want to focus on the purpose here. If you need more features I would check out BotMan

Still, I added it, as well as a new release. But it only works IF there is no text message in your intent included. The code now looks for the speech key. If it is empty it will try the custom payload JSON. Please try it out. Greets

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

No branches or pull requests

2 participants