Skip to main content

Dialogflow: Creating a Chatbot

EML System has extensive integrations with Dialogflow that cater to various use cases, including creating chatbots.

Creating a Basic Intent

For this guide, we will create a basic intent that enables the chatbot to answer inquiries regarding operating hours.

Step 1: Create Intent

Navigate to the Dialogflow console and click Intents on the side navigation menu. Press the ➕ or CREATE INTENT from the top of the module.

Creating a intent

Step 2: Name Your Intent

Enter a name for your intent. Your intent name should represent the end-user expressions it recognizes. For example, operating_hours_enquiry.

Step 3: Include Training Phrases

Training phrases are the phrases that will trigger the specific intent and the expected behavior.

You can compile the most commonly asked questions in regards to operating hours and include the list as training phrases.

For example

Examples
  • What are your operating hours?
  • What time do you close?
  • Are you open on Sundays?
  • Which day do you close?
  • Are you open on the weekends?
  • What time do you open?
  • What time do you close?

Training data

Step 4: Build Intent Response

Scroll down to the Responses section and add a Text Response.

The response we will build for this intent is:

Response

Our operating hours are Monday to Saturday, 10am to 10pm. We are closed on Sundays and Public Holidays. Let us know if you require further assistance.

Step 5: Test It Out

You can test it with the testing panel located at the right side of Dialogflow or test it with the connected Channels.

Test