Table of Contents

Dialogflow & Landbot lesson 1: Create your first agent and intent in Dialogflow

Pau Sanchez Updated by Pau Sanchez

Prefer watching than reading? No problem, we've got you covered πŸ‘‡

In this chapter we will see how to get started with Dialogflow platform, how to create an agent, what are intents, create one and test the platform.

Create a Dialogflow Agent

We will start by creating a Dialogflow agent step by step:

  1. Log in Dialogflow (

  1. Press "Create new agent"

  1. Agent Settings will be presented

  1. Add an agent name
  2. Set up the Language and the Time Zone
  3. And press Create. Now your agent will be created
    Inside an agent
  4. Once the agent is created we will be presented with this default view. Now we will check the "intents" created by default by Dialogflow
  5. Let's see the first intent. Enter the welcome default

Once inside you will see this

  1. On the right side, we have the option to test the agent.

  1. Let's test "Hello"

As you see below, the answer from the agent with other parameters is displayed. The test section will be really handy when you are building agents

To understand what is happening, if you scroll down the intent, you will see some already built in "responses". When you typed "Hello" the welcome intent was triggered and one of the responses was returned. That is the main "logic" and how Dialogflow works

  1. Now return to the Intents section
  2. And select "Default Fallback Intent"

And we will see this

  1. Now in the Test section type and send "what time is it?"

This is the result

As you see, in Dialogflow when no intent was trained for a phrase like "what time is it", the default fallback intent will trigger and one of the default responses will be displayed

  1. Let's return to Intents

Create an intent

Now we will create a custom intent

  1. Press create Intent

  1. As intent name type "restaurant.location"
  2. Now we will add some training phrases. Click on "Add Training phrases"

  1. To get started add some phrases like:
    "where are you located"
    "which is the location of the restaurant"
    "please can you tell me the address"
    "what is the address"
    "where is the restaurant"
As you can see all the sentences are different ways to express the same goal, the same "INTENT". Intents are a way to group different ways to say with natural language something that has the same goal. In this case, the goal, the intent, is to know the location of the restaurant.
Dialogflow, recommends to have around 20 phrases per intent. The more the better. This is important to understand that you can always add and edit those phrases
  1. Now we will add responses

Add one or more possible responses

  1. Press SAVE

Every time you press SAVE, please wait until you see this message in the bottom right corner

  1. Ok, now it's time to test your new intent

Great, now you have the response according to the intent you just created

  1. One last thing, press "Diagnostic Info". There you will see the "raw" JSON that is being sent, this is the information that Landbot will use.

Next Lesson

Dialogflow & Landbot course 2: Get the JSON Key Link to lesson

How did we do?

Dialogflow & Landbot intro: What is NLP, Dialogflow and what can you do with it?

Dialogflow & Landbot lesson 2: Get the JSON Key