DialogFlow

Allows you to integrate a conversational user interface into your chatbot.

DialogFlow is a Natural Language Processing (NLP) engine that makes it easy to design and integrate a conversational user interface into your mobile application, web application, device, bot, interactive voice response system, and so on.

Use-Case Scenario

DialogFlow can be used by you when:

  • You want to connect your DialogFlow agent to Ally

  • You want a smart bot to parse the input of the visitor

  • You want to create AI based bots

How Do I Integrate Ally with DialogFlow?

Setting up the integration between Ally and DialogFlow is a two step process:

  1. Getting the JSON key for the agent that you want to connect it to Ally

  2. Configuring the JSON key on DialogFlow action block

Follow this tutorial on how to create a JSON key to connect your agent to Ally.

How Do I Set it Up?

Follow these steps to setup the DialogFlow action block in the bot flow:

  1. Add an action block on canvas by clicking on '+'

  2. Choose 'DialogFlow'

  3. Double click on 'DialogFlow' to configure it on the right panel

    • Map the Variable: Select the variables in which the visitor's inputs are stored. To answer a question, you need a question; similarly, to parse input to DialogFlow, we send a sentence to them. DialogFlow in return reads the question and sends the matching answer to Ally.

    • Upload JSON file: Upload the JSON key that you have downloaded in the earlier steps. If you haven't download it yet, refer to this video tutorial.

  4. Define actions: Define the actions to be performed for the Success and Failure scenarios. You will see two ports '+' for Success condition and '+' for Failure condition.

    • Success - When an intent is matched on DialogFlow and a success response is received, we have the option to self loop the block or move on to the next step in the flow.

    • Failure - By adding an action block, you can define what the next step in the conversation flow is. DialogFlow will not always give you expected responses. When it fails, you may try to request the input again and loop it back to the flow.

We at Ally recommend you have the 'Collect Input' action block placed ahead of the 'DialogFlow' action block and store the response from the visitor in the variable.

Last updated