In order to use the cloud translation API you'll need to create a project, enable billing in your Google Cloud account, and then create credentials.
Next, we need to set up the first translation webhook, after the first webhook we have the Dialogflow block, which we'll connect to a loop, this loop will translate the response to the detected language, display the translated response in the welcome message, which will then continue the loop.Īs the first variable will be empty, we won't have to worry about it appearing when the user opens the bot for the first time, instaed they'll just see the input option. We'll start with an open question, as we're unable to change the variable name for the welcome message, we'll send a request in the API with as the variable.
We save the detected language after every input, and the response will be returned in the detected language each time.
#Google translate bot blocker how to#
Here's how to set up Dialogflow in LandbotĪfter we've built the agent we'll use the translation api to translate the input and output, here's an example of what it will look like: Keep in mind that the language of your Dialogflow agent should be one of the supported languages. Unfortunately, Dialogflow is limited to the languages it supports, however, with the help of translation API's such as Google Translate or DeepL we can still use it! Set a timer to get the time spent during the flow Launching a bot depending on browser language How to embed Google Maps addresses in an iframe Resume flow based on external process with Landbot API (Request, Set, Go) Generate a URL that has variables from user answers How to pass WordPress logged in user data to Landbot Trigger a Global Keyword with JS (web v3)Ĭreate a Scale out of Buttons - Workaround Set the flow depending on the url path (for embedded landbots) How to not display Proactive Message to repeating Visitorsĭisplay Bot During Business Hours Only (Livechat & Popup)Ĭookie consent banner (full page / full page embed) Conditional Welcome: Direct the Flow of Your Bot Based on External Parameters