Please enable JavaScript.
Coggle requires JavaScript to display documents.
E119 | W10L20: Creating Your Chatbot - Coggle Diagram
E119 | W10L20: Creating Your Chatbot
1 of 6 - Log in to Dialogflow and Create Agent
Before you can start to build your Telegram chatbot, you need the following:
A Google account to create your Dialogflow agent
Refer to this(opens in a new tab) to create a Gmail account if needed
A Telegram account to link your chatbot so that it is publicly available on Telegram
Refer to this(opens in a new tab) to create a Telegram account if needed
2 of 6 - Set up Intents in Dialogflow
Step 1: Click on "Default Welcome Intent"
Step 2: Training Phrases (under Default Welcome Intent)
Step 3: Entities and Responses
Step 4: Try the "Default Welcome Intent"
Step 5: Click "Save" and go back to "Intents"
Step 6: Create New Intents
Step 7: Create Intent - "Types of Service"
Step 8: Add the other Intents too
3 of 6 - Follow-up Intents
Step 3: Create Another Follow-up Intent under "Servicing" Intent
Step 2: Configure the Follow-up Intent
Step 1: Add Follow-up Intent for "Servicing"
Summary:
In this section, we learnt to create follow-up intents. This is because real life conversations are more than a simple question-and-answer. After our chatbot provides an initial response to a customer's question, we can expect the customer to follow-up from that response.
4 of 6 - Define Entities in Dialogflow
Step 3: Go to the "Rental" Intent to Add Parameter
Step 4: Modify Training Phrases to Recognise Entity
Step 2: Creating Entity - "VehType"
Step 5: Test Your "Rental" Intent
Step 1: Create Entity
Step 6: Using Placeholders in Response
Summary:
Entities (parameters) are defined data which we wish to pick up from end-user expressions. Our bots can be trained to look out for such entities in the conversation to make conversations more meaningful.
Step 7: System Entities
5 of 6 - Integrate Chatbot to Telegram
Step 4: Give Your Chatbot a Name
Step 5: Chatbot Username (or Handle)
Step 3: Create Your Chatbot
Step 6: Chatbot Token
Step 2: Press the "START" button
Step 7: In Dialogflow, Click "Integrations" and Select "Telegram"
Step 1: Search "botfather" in Telegram
Step 8: Key Token Key into Dialogflow
Summary:
There are many platforms which we can link up our Dialogflow agent to. Here, we linked our agent to Telegram. If you are interested to link it up to another platform, you will similarly need to generate the Token from that portal.
Step 9: Try Your Live Chatbot!
6 of 6 - Train Your Chatbot & Miscellaneous
Step 2: Enable "Agent Validation" under Agent Settings
Step 3: Use the "Validation" Tool to Evaluate Chatbot
Step 1: Enable "Small Talk"
Step 4: Accessing Chat Conversations
Summary:
In this section, we covered Small Talks, Agent Validation and Agent Training. It is important that we regularly review our chatbots and train it better, so that it can continually provide the responses desired by our customers.
Step 5: Training Based on Chat Conversations