Search code examples
dialogflow-esactions-on-googlegoogle-homegoogle-assistant

Changes made in dialog-flow doesn't reflect in google actions's testing simulator


Previously "Auto-preview" option was coming in dialog flow under integration section as shown in this below image , but Google discontinued this option from 14 April 2021. enter image description here

https://cloud.google.com/dialogflow/docs/release-notes#April_14_2021

It seems that auto-preview option earlier was responsible for propagate changes of dialog flow to actions, and it reflects in Google Actions' testing simulator.

After removing "Auto-Preview", Is there any alternative way they provided to refresh content?

I am struggling with one issue currently, after making changes in dialog flow text response and saving it, doesn't reflect on Google Actions' test simulator.


Solution

  • I found that described issue of, "changes on dialog flow is not updating Google Actions's simulator" encountered because of error occurred in dialog flow, which is showing on click of "Test" button, that's error resulted into, not updating google actions's simulator.

    enter image description here

    enter image description here

    Errors in 'DoorStatus' intent:
    IntentDoorStatus has more than 128 training phrases. Reduce the number of training phrases to 10 or remove the intent from Implicit invocation.
    com.google.dialogflow.designtime.exceptions.DesigntimeException: <eye3 title='FAILED_PRECONDITION'/> generic::FAILED_PRECONDITION: Errors in 'DoorStatus' intent:
    IntentDoorStatus has more than 128 training phrases. Reduce the number of training phrases to 10 or remove the intent from Implicit invocation.
    

    So, just to check I tried by removing some of the implicit invocation intents(e.g DoorStatus, DoorOpen etc.), those generating errors and tried testing without those intents. This time, it has updated the Actions successfully and now changed text response in dialog flow is reflecting on simulator.

    Needs to improve: In current flow, on click of the "Test" button (Inside Dialog Flow's Integration section), dialog flow navigates to Google Actions simulator regardless of error occurred in dialog flow. Dialog flow is showing the error in case it occurs, but since dialog flow redirects to simulator although error occurred, it seems that to developer as the changes which they did, will be reflected on simulator, but actually those changes won't reflect in simulator due to dialog flow error.

    In this case of error in dialog flow, dialog flow should not redirect to Google Actions simulator. It should only allow to navigate to google actions' simulator, when dialog flow part builds successfully without any error. By preventing to navigate on simulator in case of dialog flow error , will help developer to aware about any occurred dialog flow error and provide hint to fix that error first before testing on simulator.