Linking Dialogflow with Blahbox

Florenciaazpiazu
Blahbox
Published in
4 min readNov 2, 2020

--

In this article, I will show you how to link the bot you trained in Dialogflow with Blahbox. The process may seem difficult, but if you follow the instructions of this article carefully, you will be able to do this without complications. In order to do this, you must have your bot already created in Dialogflow from Google. Below are all the steps to do this:

1) The first step is logging in to Blahbox with your user and password. This will take you to “Projects”.

2) Once you are in Projects, if you have already created a chat, click on “Go” on that chat. If you haven’t, you will create one clicking on “New chat” and following the steps.

3) Once inside the chat, you will click on the NLP icon circled in yellow shown in the following screenshot.

4) Inside NLP, you will see a field called “Enter credential JSON”. You will obtain the information to fill this field in Dialogflow.

5) Log in to Dialogflow with your Google account.

https://dialogflow.cloud.google.com/#/login

6) Make sure that the name of the bot you want to link with Blahbox is in the space circled in yellow in the following screenshot.

7) And then, click on the icon next to the name of the bot. Doing this, you’ll come to a screen where you’ll find the Project ID, which is a link. Click on this link.

8) Once you open the link, find the tab “IAM & Admin” on the left-side menu and, in that same tab, click on “Service accounts”.

9) Once you’re there, you must go to “+ CREATE SERVICE ACCOUNT”. You’ll choose a name for the service account and the ID in the following field will be completed automatically. You can add a description (optional) and, then, click on “CREATE”.

10) The following screen will have a field to complete called “Select a role”. There, you’ll look for “Dialogflow” in the first column and, inside Dialogflow, you’ll click on “Dialogflow API Client” and, then, click on “CONTINUE”.

11) The following screen, after clicking on “Continue”, is “Grant users access to this service account (optional)”. This step is optional, so we can click on “DONE” and continue.

12) On this screen, we’ll click on the email of our service account, as is shown below in the screenshot:

13) On the new screen, scroll down until you find the button “ADD KEY”, where you’ll find two options of which you have to choose “CREATE NEW KEY”.

14) Leave the recommended option “JSON” for the type of password and click on “CREATE”. This will open a window and you’ll have to select where you wish to save your file in your computer. Make sure it’s a location you can access easily.

15) Find this file in your computer. It has got the JSON credential we must copy in Blahbox’s website. In order to open the file, you will need a supported app. One example of these apps is Notepad, but in case you don’t have a supported app, you can download one into your computer very easily from your app store.

16) Once the file is open, you must copy the WHOLE text and paste it on Blahbox’s website where we left in step 4, in the field called “Enter credential JSON”.

17) Below the JSON credential, in the option “Platform”, we’ll choose “GOOGLE ASSISTANT”; in “Language”, the language of the bot that you choose; and, in “Environment”, determine the Environment or leave the default option “Draft”.

18) Click on GO, and you’ve finished!

Now you have your Dialogflow bot linked with Blahbox, so the changes that you make in your bot in Dialogflow will also appear in Blahbox. I hope you can follow these steps and that you find this article useful.

Thanks to Blahbox, linking your bot with your website can be done in a very easy way and, once it’s linked, you can do many things and make lots of changes to your chatbox and your messages. Find out about this and many more things going to their website clicking here.

--

--