I'm currently working on creating a Google Action in Dialogflow. Specifically, I am trying to deploy JavaScript code from my terminal. A few days ago, everything was running smoothly.
Here is the index.js file that was working:
'use strict';
...
However, it seems like there is a disconnect between my local environment and the Actions console now. The package.json file has all the necessary dependencies. Despite installing all dependencies using NPM and ensuring that all fulfillments for webhooks are enabled, I am unable to establish a connection now.
Although the deployment from the terminal does not show any errors, testing it in the Action Simulator results in an error message stating:
{ "responseMetadata": { ... } }
It appears that something is going wrong in the connection process between my terminal and the console. Any insights into this issue would be greatly appreciated!
UPDATE:
I attempted to deploy using
firebase deploy
. The deployment goes smoothly without any errors, just as it did when the code was working fine. I also double-checked if I was in the correct directory.No logs appear in Firebase. Even though the code indicates that something should show up in the logs, nothing is being logged.
Screenshot of the Dialogflow Fulfillment page.
- The intent handlers have been added to the code, although they were initially copied and pasted incorrectly.