How to Create a DialogFlow Chatbot: A Step-by-Step Guide

AI-ML

Updated On Nov 14, 2026

11 min to read

Featured image for blog article

To understand how to create a Dialogflow chatbot, start with the Google Cloud setup. Create an agent, configure intents, training phrases, entities, and fulfillment. Build multi-turn conversations, test responses, and embed the chatbot using Dialogflow Messenger. Alternatively, use BotPenguin to build and deploy an AI chatbot without coding.

Dialogflow helps developers build conversational chatbots that understand user requests and respond automatically. However, creating a functional chatbot involves more than setting up an agent.

This Dialogflow chatbot tutorial walks you through the complete setup process. You'll create intents, add training phrases, and configure entities to capture user information. You'll also learn to test responses and integrate your chatbot into a website.

The guide covers both Dialogflow ES and CX, including their different configuration methods. While basic chatbots need little coding, advanced features like webhook fulfillment require development skills.

Before building your chatbot, you need to choose the Dialogflow edition that fits your requirements.

Dialogflow ES vs. CX: Which Should You Use?

Choose Dialogflow ES for simpler chatbots handling a limited range of user requests. Choose Dialogflow CX for complex, multi-turn conversations built using visual flows.

For a detailed comparison, refer to Dialogflow ES vs CX.

Once you've selected your edition, the first step is setting up Google Cloud.

Step 1: Set Up Your Google Cloud Project

Before creating your Dialogflow agent, you need a Google Cloud project. This project manages your chatbot's API access, billing, and other cloud resources.

Follow these steps to complete the setup:

1. Sign in to Google Cloud: Visit the Google Cloud Console and sign in with your Google account.

2. Create or select a project: Click the project selector and choose an existing project or create a new one.

3. Configure billing: Link a billing account to your project. Dialogflow offers free usage limits, but charges may apply beyond them.

4. Enable the Dialogflow API: Open APIs & Services, search for the Dialogflow API, and enable it for your project.

Your Google Cloud project is now ready for Dialogflow agent creation.

Step 2: Create Your Dialogflow Agent

With your Google Cloud project ready, you can create a Dialogflow agent. The setup process differs slightly between ES and CX.

Create an Agent in Dialogflow ES

  • Open the Dialogflow ES console and sign in.
  • Click Create Agent and enter your agent's name.
  • Select your Google Cloud project.
  • Set the default language and time zone.
  • Click Create to finish the setup.

Create an Agent in Dialogflow CX

  • Open the Conversational Agents console.
  • Select your Google Cloud project and create an agent.
  • Enter the agent's name and choose a region.
  • Configure the default language and time zone.
  • Save your agent. Remember, its region cannot be changed later.

Your agent is now ready for intents and training phrases.

Step 3: Create Intents and Add Training Phrases

Intents help Dialogflow recognize what users want to accomplish. For example, an order-tracking intent identifies questions about delivery status.

Follow these steps to configure intents and improve recognition:

1. Create an intent: Open your agent's intent settings and create order.status. Use a descriptive name that reflects the user's request.

2. Add training phrases: Include 10–20 varied examples of how users might ask questions. Examples include "Where's my order?", "Track my package", and "Has my order shipped?"

3. Avoid overlapping phrases: Keep similar requests grouped under the appropriate intent. Repeating phrases across different intents can confuse recognition.

4. Configure welcome responses: Edit the default welcome intent to greet users. Include a helpful prompt explaining what the chatbot can do.

5. Set fallback responses: Configure replies for questions the agent cannot recognize. Guide users toward supported requests instead of ending the conversation.

6. Configure CX routes: In Dialogflow CX, intents are shared across the agent. Connect them to routes on relevant pages to trigger responses.

Test your dialogflow training phrases to confirm the agent recognizes common requests.

Step 4: Set Up Entities and Parameters

Entities help Dialogflow extract specific information from user messages. Parameters store these details for use during conversations.

Dialogflow supports two types of entities:

  • System entities: Built-in entities like @sys.date recognize dates, numbers, and locations.
  • Custom entities: User-defined entities like @product recognize specific product names and their synonyms.

Follow these steps to configure parameters:

1. Identify key details: Determine what information your chatbot needs, such as a product name or booking date.

2. Annotate training phrases: Highlight relevant words and assign them to entity types.

3. Configure parameters: Mark essential parameters as required and add follow-up prompts for missing information.

For example, if users request bookings without dates, the chatbot can ask for their preferred date.

Step 5: Configure Responses and Webhook Fulfillment

Dialogflow supports static responses and webhook fulfillment for handling user requests. The method depends on whether your chatbot needs external data.

  • Static responses: Provide predefined answers to common questions, such as business hours or return policies.
  • Webhook fulfillment: Retrieve live information or perform actions through an external service.

Follow these steps to configure webhook fulfillment:

1. Create a backend service: Set up a service, such as a Cloud Function, to process requests.

2. Enable fulfillment: Configure Dialogflow to send webhook requests to your service.

3. Process user requests: Retrieve order details or save captured leads.

4. Return a response: Send the result back to Dialogflow for the user.

Webhook development requires coding skills and backend configuration.

Once responses work, configure how the chatbot handles follow-up conversations.

Step 6: Build Multi-Turn Conversations With Contexts or Flows

Multi-turn conversations allow Dialogflow to understand follow-up messages and maintain context. The configuration differs between ES and CX.

  • Dialogflow ES: Use output contexts to track conversation progress. Input contexts ensure follow-up intents match only when relevant.
  • Dialogflow CX: Use flows, pages, and routes to manage conversation paths. Routes determine the next action based on user responses or conditions.

For example, a user requests an appointment for Monday. The chatbot asks, "Should I confirm your booking?"

When the user replies "Yes," the chatbot recognizes the confirmation. It continues the booking process without asking for the details again.

Once these conversation paths are configured, test how the agent handles them.

Step 7: Test and Improve Your Dialogflow Chatbot

Before deployment, test your chatbot using Dialogflow's built-in simulator. This helps identify incorrect responses and missing conversation details.

Follow these steps to validate your agent:

1. Open the simulator: Access the testing panel in your Dialogflow console.

2. Try different queries: Enter common questions, alternative expressions, typos, and unexpected requests.

3. Review intent matching: Check whether Dialogflow identifies the correct intent for each message.

4. Verify parameters: Confirm the chatbot captures required details, such as dates or product names.

5. Improve training phrases: Add varied examples where the agent misinterprets user requests.

6. Retest your agent: Repeat failed scenarios after making changes.

Once your chatbot responds correctly, you can proceed with website integration.

Step 8: Add Your Dialogflow Chatbot to Your Website

Once testing is complete, you can deploy your chatbot using Dialogflow Messenger. This integration adds a chat widget to your website.

Follow these steps to add Dialogflow to website pages:

1. Open integrations: Navigate to the integrations section in your Dialogflow agent.

2. Enable Dialogflow Messenger: Select the integration and complete its required configuration.

3. Copy the embed code: Copy the generated JavaScript snippet and Messenger element.

4. Insert the code: Paste the snippet into your website's HTML, before the closing </body> tag, or use your website builder's custom code section.

5. Publish and test: Save your changes, publish the website, and test the chatbot widget.

Your chatbot is now accessible to website visitors.

Connecting Dialogflow to WhatsApp, Instagram, or live-chat inboxes requires additional integrations or third-party connectors.

How to Build a Chatbot Without Dialogflow or Coding

Dialogflow gives developers control over chatbot conversations and integrations. However, building and maintaining an agent requires technical configuration, webhook development, and additional integrations.

BotPenguin offers a no-code alternative for businesses seeking faster deployment. Instead of manually configuring intents, you can train an AI agent using your existing business content.

Here's how the setup processes compare:

Dialogflow Process

BotPenguin Alternative

Create a Google Cloud project and enable APIs

Sign up and create a bot without cloud configuration

Configure intents and training phrases

Train an AI agent using website content, documents, and FAQs

Set up entities and parameters

Configure questions and fields to capture customer information

Build webhook fulfillment

Use built-in lead capture and CRM sync on eligible plans

Integrate Dialogflow Messenger

Deploy a website chatbot or WhatsApp chatbot, alongside other supported channels

Configure escalation separately

Transfer conversations to human agents through live chat

BotPenguin also supports multiple AI models, including ChatGPT, Gemini, Claude, and DeepSeek. You can choose a model based on your business requirements.

The platform supports deployment across websites, WhatsApp, Instagram, Facebook Messenger, and Telegram. This reduces the need to configure separate integrations for each channel.

You can start with a seven-day King trial without a credit card. This lets you build and test your chatbot before choosing a paid plan.

Build Your Dialogflow Alternative Faster With BotPenguin, No Coding

Frequently Asked Questions

Is Dialogflow free to use?

Dialogflow offers free usage limits, making it possible to build and test basic chatbots. Beyond these limits, Google Cloud applies usage-based charges. Dialogflow ES and CX have different pricing structures, so check the official pricing page before deployment.

Do I need programming knowledge to build a Dialogflow chatbot?

You can create a basic Dialogflow chatbot without programming knowledge. However, advanced functionality requires development skills. Webhook fulfillment, external data retrieval, and many messaging-channel integrations involve writing code or configuring backend services.

How do I add a Dialogflow chatbot to my website?

Enable Dialogflow Messenger in your agent's integration settings. Copy the generated embed snippet and paste it into your website's HTML before the closing </body> tag. Publish your changes and test the chatbot to confirm it works correctly.

How many training phrases does an intent need?

Start with 10–20 varied training phrases for each intent. Include different ways users might express the same request. Review actual conversations regularly and add examples where the chatbot fails to recognize user intent accurately.

Should I use Dialogflow ES or CX?

Choose Dialogflow ES for simpler chatbots handling straightforward requests. Dialogflow CX suits complex, multi-turn conversations requiring visual flows and structured conversation paths. Your choice should depend on the chatbot's complexity and conversation requirements.

Can I build a chatbot without Dialogflow or code?

Yes. No-code platforms like BotPenguin let you train AI agents using website content, documents, and FAQs. You can deploy chatbots across supported websites and messaging channels without manually configuring intents or developing webhooks.

Keep Reading, Keep Growing

Checkout our related blogs you will love.

Table of Contents

  • Dialogflow ES vs. CX: Which Should You Use?
  • Step 1: Set Up Your Google Cloud Project
  • Step 2: Create Your Dialogflow Agent
  • Step 3: Create Intents and Add Training Phrases
  • Step 4: Set Up Entities and Parameters
  • Step 5: Configure Responses and Webhook Fulfillment
  • Step 6: Build Multi-Turn Conversations With Contexts or Flows
  • Step 7: Test and Improve Your Dialogflow Chatbot
  • Step 8: Add Your Dialogflow Chatbot to Your Website
  • How to Build a Chatbot Without Dialogflow or Coding
  • Frequently Asked Questions