Reputation: 15136
I'm migrating to Dialogflow V2, and in V1 I could tell if this was a sandbox request by looking at:
request.body.originalRequest.data.isInSandbox
I cannot find the equivalent in V2, or in the documentation
Upvotes: 2
Views: 274
Reputation: 41
Try this one: request.body.originalDetectIntentRequest.payload.isInSandbox
Make sure you're trying it from Action on Google Simulator console (for example), not from Dialogflow Fulfillment console.
Regards, Yury
Upvotes: 3