Run Multiple Botize Tasks with Dialogflow

More flexible Dialogflow bots.

As explained step-by-step in the video "BOT to Respond with Google Sheets Data," it is possible to connect your Dialogflow bots with Botize. This guide will show you how to overcome the limitations of Dialogflow's free version and enhance your automations.

The Limitation of Dialogflow's Free Version

In Dialogflow's free version, you can only specify a single URL for calls, known as Fulfillment URLs. These URLs allow your Dialogflow bot to communicate with an automated task in Botize, which is useful when the bot needs to execute a single action, such as saving user-provided data into a spreadsheet.

But what happens when the bot needs to perform multiple actions, like retrieving invoices and booking services? In such cases, Dialogflow's solution is to upgrade to its paid version, which allows calls to different tasks in Botize.

Solution: A Bridge Task in Botize

However, there is a way to continue using Dialogflow's free version while still executing multiple automated tasks in Botize. The key lies in setting up an automated task in Botize to act as a bridge between Dialogflow and all other Botize tasks. This bridge task will analyze the information received from Dialogflow and activate the specific task needed to process the data each time.

Steps to Set Up the Bridge Task

Create an Automated Task for Each Scenario:

First, you need to create a task in Botize for each action your bot needs to perform. For instance, you could create one task to retrieve invoices and another to book services.

The Bridge Task:

Next, create a specific task to act as the bridge. This will be the only task receiving calls from Dialogflow. Its role is to execute the automated task specified in the "execute_task_id" parameter that your Dialogflow bot must provide.

Bridge Task for Dialogflow Bots

For example, if the message received from Dialogflow includes "execute_task_id" with the value 1, the bridge task will activate task number 1.

Advantages of This Solution

Cost Savings: You can continue using Dialogflow's free version without needing to upgrade to access multiple Fulfillment URLs.

Flexibility: With a single bridge task, you can manage various actions, making your bot much more useful and versatile.

Conclusion

Using a bridge task in Botize is an effective solution to overcome the limitations of Dialogflow's free version. With this setup, your bot can perform multiple actions without requiring additional subscription costs.