[ad_1]
About Dialogflow
Dialogflow CX Tutorial for Beginners Part 1
Let’s start developing Appointment Chatbot.
1. Google registration
To start using Dialogflow, you must have a Google Account. If you already use Gmail, you can sign in using this account. Or you can create a new Google account.
2. Create a project
To start developing a new chatbot in Dialogflow, we need to create a project. And make sure the Dialogflow API is enabled from your Google Cloud Console.
If your API is not enabled, refer to this https://support.google.com/googleapi/answer/6158841?hl=en document. and enable the Dialogflow API.
3. Create an agent
To get started with developing a new chatbot in Dialogflow, we need to create an agent.
Enter the name of your agent and select the default time zone. Choose the default language according to your preference.
4. Create an intention
To create a new intent, select the Manage tab and click Intents, then click the + symbol next to the menu.
Enter the name of the intent and in the training phrases section, we see the text box “Add user expression”. Enter your training phrases and click the save button.
You should enter training phrases according to the objective. You must decide what type of user input will trigger this intent. For example, to assign this book, I added “book meeting” and “book”.
5. What is a page?
A page is the fundamental building block of a conversation flow. A page represents a different step or stage in a conversation between a user and a virtual agent or chatbot.
Each page contains a set of related goals that represent the user’s intent at that point in the conversation. For example, a page for a travel booking application might include the objectives: “Search for flights”, “Select travel dates”, and “Select a destination”.
Pages can also contain various other elements, such as requests, conditions, and execution logic, that define how the conversation proceeds and how the chatbot responds to user input. For example, a request might ask the user to provide travel dates, while a condition might check whether the user has already selected a destination.
Pages in Dialogflow CX are typically connected by transitions that allow the conversation to move from one page to another based on user input or other conditions. This allows chatbot developers to create complex conversational flows that can handle a wide range of user input and scenarios.
Overall, pages are a core concept in Dialogflow CX and play an important role in designing effective and engaging chatbot conversations.
Steps to create:
To create a new page, select the build tab and click the + symbol from the Pages drop-down menu. Enter a page name and save.
6. What is Flow?
A flow is a collection of related pages that represent a complete conversation or workflow. A flow defines the overall structure of a conversation between a user and a virtual agent or chatbot, and determines how the chatbot responds to user input and continues the conversation.
A flow typically represents a specific use case or scenario, such as booking a hotel room or ordering food from a restaurant. Each stream consists of one or more pages, each of which represents a step or stage in the conversation.
Flows in Dialogflow CX can contain various elements such as goals, entities, requests, conditions, and execution logic that define how the chatbot interprets user input and generates responses. For example, a hotel room reservation flow might contain pages for selecting a destination, selecting a check-in and check-out date, and selecting a room type, each with its own set of goals, requirements, and conditions.
Flows in Dialogflow CX can also include transitions that define how a conversation flows from one page to another based on user input or other conditions. Transitions allow chatbot developers to create complex conversation flows that can handle a wide range of user input and scenarios.
Overall, flows are a critical concept in Dialogflow CX and play a key role in designing effective and engaging chatbot conversations that meet customer and business needs.
Page and Intent Relationship:
- Linking the welcome intent to the home page:
- Set response from agent responses.
- Create an intention to book a book
- To this end, we can add training phrases such as:
- Create a “book” page to link to the home page and integrate the book’s appointment intent into the home page.
- Select a new route from the home page and select the purpose of meeting the book in it.
- Add the agent’s response to it.
- Link the book page to it.
- Create a name intent
- Set the parameter as a person to recognize the name
- Connect the book page with the intention of the name. And set the agent response as below image.
- Set the route with the name intent.
- Create a “book date” page and link to a named intent.
- In Dialogflow ES, we cannot reuse the same intent value even for a confirmation flow like yes and no response, we need to create a new intent every time we need it, while in Dialogflow CX we can reuse the same intent over and over again. .
- Follow these steps to complete the flow for each intent and page.
Feel free to post your doubts/queries. We will be happy to help you. If you are looking for Chatbot Development or Natural Language Processing services then contact us or send us your inquiry at letstalk@pragnakalp.com. We will be happy to offer you our expert services.
[ad_2]
Source link