Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Source Request undefined when using the playground from Dialogflow #4

Open
aurelienbouteiller opened this issue Mar 1, 2018 · 1 comment
Labels
Feature Request New feature or request

Comments

@aurelienbouteiller
Copy link

aurelienbouteiller commented Mar 1, 2018

It happens in the sendResponse_ method.
buildResponseMessages()_ return null because of the undefined platform. It receives the platform name by parsing the request.body.originalDetectIntentRequest.
When using the "Try it now" functionality, it doesn't send anything about the platform.
The platform should be called something like "playground" or "dialogflow"

@aurelienbouteiller aurelienbouteiller changed the title Source Request is needed but the playground from Dialogflow doesn't provide it. Source Request undefined when using the playground from Dialogflow Mar 9, 2018
@mattcarrollcode
Copy link
Contributor

the Dialogflow simulator (what you called the "playground") doesn't include a platform name in the request, so this would need to be implemented in Dialogflow's backend. Most platforms include a platform name in the request so, depending on how your agent is setup and how you access your agent a potential workaround is to assume a null platform name means the request is coming from the Dialogflow simulator.

I'll consider adding a playground/dialgoflow platform name in the future and leave this open for further comments.

@mattcarrollcode mattcarrollcode added the Feature Request New feature or request label May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants