I've been developing an Action on Google for a while now, but haven't figured out a way that I can do TDD effectively. Since I'm writing with the Node.js SDK for API.ai, I can test the fulfillment endpoint pretty easily with mocha unit tests. However, I cannot test anything on the api.ai side of things without it instantly going live.
My current workaround is creating two api ai projects, one used for testing that goes to my dev endpoint, which has to be a live endpoint (I use GC Functions). The other one production going to a different production endpoint.
My question is: Is there a way to run tests, or at least have an effective testing environment for the API.ai side of things without cloning everything and having to manually maintain any diffs between the two API.ai projects?
Currently, the best option is the one you've already discovered:
Here are API.AI's docs on importing and exporting: https://api.ai/docs/agents#export