The simulator in the Actions console lets you test your Action through an easy-to-use web interface that lets you simulate hardware devices and their settings. You can also access debug information such as the request and response that your fulfillment receives and sends.
To access the simulator, follow these steps:
- Make sure the most recent version of your code is deployed through Dialogflow's inline code editor.
- Navigate to the Actions console.
Click Test in the top menu.
Specify surface attributes
The simulator can mimic specific surface attributes such as the method of input that users used, their device type, language, and location. To test your immersive experience, click on Surface and choose Smart Display.
Debug your Action
The debug tab in the simulator shows the actual payload sent by the Google
Assistant to your fulfillment in the
(see the request reference documentation)
and the response from your fulfillment in the
(see the response
To copy the debug information to your clipboard, click on the clipboard icon at the top right of the JSON debug information panel.
Chrome Dev tools can also be used to debug the iframe that hosts the web app on the simulator web page.