eran
eran

Reputation: 15136

How to tell if a webhook request is in sandbox for DialogFlow V2?

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

Answers (1)

Yury Shpakov
Yury Shpakov

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

Related Questions