Now that we're done creating the logic of the webhook, it is pretty simple to deploy it using Cloud Functions on Firebase. Follow these steps to do so:
- Click on the Fulfillment button on the left navigation of the Dialogflow Console. Enable the Inline Editor to be able to add your webhook and deploy it directly to Cloud Functions.
You will have to clear out the default boilerplate code that is in the Inline Editor to do this.
- Paste the code in the editor from the previous section into the index.js tabbed navigation pill and click on Deploy.
Using Cloud Functions comes with the advantage of the...