How to create a FAQ in Landbot with Dialogflow API v2 (BETA)

Want to offer smoother and more natural experiences to your visitors? For those of you who already know the capabilities of Dialogflow then this might sound familiar, so keep reading!

Pro features are used in this workaround, so please check if they are available in your plan before moving forward.

This workaround starts with a brick template called FAQ_DF v2, with an already built agent you can import (download agent zip).

In this Brick we are going to use the Detect Intent functionality of Dialogflow to offer an answer based on previously trained sentences, and also we created a fallback intent to give an answer if the question that the user ensues is not ready.

Please if you don't have a Dialogflow account yet, sign up here ➡️

Select Sign Up if it's your first time:

In Dialogflow

  1. Click on Create Agent

  1. Name your Agent and click on CREATE
  2. Download the whole zip file (that has 3 files inside) previously mentioned on the beginning of this article from dropbox . Do not unzip the file we will upload it to Dialogflow

  1. Go to Settings section of the Agent (wheel icon)

  1. Go to the Export and Import option
  1. Import zip file

Once you add it. You will need to type IMPORT

  1. Go to Intents

  1. Add an intent and set the input context as "faqs" and leave the output context empty
  2. Set a phrase in the Training phrases option
  3. Set your answers
  4. Click again on the wheel icon to return to the Agent Settings section and check for the Google Project section in the General tab. Now click on the Service Account email of your account
  5. The Service Account console will display
  6. Click on the Actions (3 dots) and once the menu is displayed select "Create Key"
  7. Select JSON and click CREATE
  8. Save the downloaded file for later, we will use it to create the Token needed for our Webhook integrations with the Dialogflow API

In Landbot

  1. Import (how to import a brick) Brick FAQ_DF v2
  2. Open the first Webhook's configuration
  3. In the REQUES BODY section Paste ALL the content of the JSON file we just downloaded, and press Test. It should display the STATUS 200 and the variables that we will use later on
  4. Save the brick, go back to the the bot and Save again.
  5. Go to the SHARE section, and open in the SHARE URL to try the bot with the question you added in Share URL
  • In case it recognises one of your sentences :

  • In case it doesn't recognises the sentence, the Faqs_Fallback will trigger

This is a Beta concept, please contact in case of any doubts.

How did we do?

Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)