'Detect intent with DialogFlow SDK in preview mode so as not to affect any entities

How can I detect an intent while remaining idempotent and not have the possibility to change any contexts or entities?

According to DetectIntent() as shown in this page the method is not idempotent and may result in changes to context or entities.

I cannot find that DialogFlow has a "predicted intent mode" similar to Amazon Lex.

Does this mean the only way to do it is to use DetectIntent() and then delete any context or entities as a result? This is if you are just trying to preview the response.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source