SlideShare a Scribd company logo
1 of 33
Creating a “Hello World!”
Telegram ChatBot
Getting Started
Ng Chong Yang
B.Eng (Hons, 1st), DipELN, Dip.M (CIM), MIEEE, FCIM

Email: bot@ethanwoof.com
Ethan Woof - A Telegram Bot Built Just for Fun: t.me/EthanWoof_Bot
AI
Conversational
Agent
Conversational
Interface
ChatBot
X={ERP, CRM, LMS, eCommerce, Wealth Management,
Retail Banking, Insurance … ++}
Conversational X
vs Web or Mobile
Look and feel for X
Design is not just
what it looks and
feels like. Design
is how it works.
Agenda
Steps to create an AI Conversational Agent (Virtual Agent | ChatBot)
• Getting started - Creating a Google Dialogflow account

• Manifest a Virtual Agent - Start creating a Dialogflow Agent (ChatBot/Agent)

• Create and Test a new Intent

• Make the Bot available on Telegram
Getting Started
Creating a Google Dialogflow Account
Creating a Dialogflow Account
Setting up an account
• Head over to https://dialogflow.com/

• Click on the “Sign up for free” button
Creating a Dialogflow Account
Setting up an account
• Click on the “Sign up with Google” button

• Sign in using a Google Account
Creating a Dialogflow Account
Setting up an account
• Select the Country or territory and accept the Terms of Service
Creating a Dialogflow Account
Setting up an account
• And now you’re into the Dialogflow console
Manifest a Virtual Agent
Creating a Dialogflow Agent
Creating a Dialogflow Agent
Turning on a Virtual Agent
• Click on “Create Agent”
Creating a Dialogflow Agent
Turning on a Virtual Agent
• Give the Bot a name, then click the “Create” button
Creating a Dialogflow Agent
Turning on a Virtual Agent
• Give the Bot a name, then click the “Create” button
Creating a Dialogflow Agent
Turning on a Virtual Agent
• Now you Bot is alive!
Creating a Dialogflow Agent
Turning on a Virtual Agent
• Try saying “Hello!” … and see the Bot respond.
Create and Test a New Intent
Educating the Bot to understand Intents
Create and Test a New Intent
Educating the Bot to understand Intents
• Click on the “Create Intent” button
Create and Test a New Intent
Educating the Bot to understand Intents
Page to create a
new Intent
Create and Test a New Intent
Educating the Bot to understand Intents
• Give the Intent a descriptor, e.g. “get.bot.name”

• Click on “Add Training Phrases”
Create and Test a New Intent
Educating the Bot to understand Intents
• Enter the different ways that users will ask to get the bot’s name.
These are known as “Training Phrases”. Click “Save” when done.
Phrases used to “train” the Bot to
identify the Intent of the user when she
asks questions similar to these “Training
Phrases”. The more training phrases/
variations, the better the Bot learns to
identify this Intent. 

Google’s advice is: “in most cases, you
should enter at least 10-20 (depending
on complexity of intent) training phrases
for reliable intent matching.”
Create and Test a New Intent
Educating the Bot to understand Intents
• Clicking “Save” will initiate the saving of the Intent. And start the Agent (Bot) to
train to understand to pick out this Intent from what the User says from now on
This appears when the Agent
training (to identify this Intent
from the supplied Training
Phrases is completed.
Create and Test a New Intent
Educating the Bot to understand Intents
• Now, teach the Bot how to respond if she identified that the User’s Intent is to
get the Bot’s name. Enter the acceptable responses in the “Text Response”
section of the “Add Intent” page. Click “Save” when done.
Here’s the Bot’s
response to the
question.
Create and Test a New Intent
Educating the Bot to understand Intents
Start testing the Bot to
see if she understands
that your intent is to get
the Bot’s name.
Type or click the icon
to “speak” the question
here.
Here’s the Intent
that the Bot
identified.
Congratulations!
Your very first Hello World! Bot is now “Live” on Telegram!

Have fun … Do continue to build awesome Bots!

Go to the following Website to learn more about creating Bot on Dialogflow:

https://cloud.google.com/dialogflow/docs/quick/build-agent
Make the Bot Available on
Telegram
Integrate to Telegram
Make the Bot available on Telegram
Integrate to Telegram
• Launch the Telegram app

• Chat with BotFather. Search for BotFather via the Telegram App or open this
link in Telegram: https://telegram.me/BotFather

• Give BotFather the start command by typing /start
• The issue the command /newbot and follow BotFather’s instructions

• Once successfully done, BotFather will issue a token
Make the Bot available on Telegram
Integrate to Telegram
Get this Telegram
Token from
BotFather
Make the Bot available on Telegram
Integrate to Telegram
• After obtaining the Telegram Token from
BotFather, head over to the Dialogflow console
and select “Integrations” to reach the
integrations selection page

• Click on the Telegram logo and the Telegram
integration pop-up window will appear
Make the Bot available on Telegram
Integrate to Telegram
• Toggle the switch on in the Telegram integration pop-up window. Then copy
the Telegram Token that was issued by BotFather and paste it in the Telegram
Token input box
Make the Bot available on Telegram
Integrate to Telegram
• Click the “Start” button. And this message should pop up on the bottom right
hand corner of your Dialogflow console:

• Close the pop-up window
Make the Bot available on Telegram
Integrate to Telegram
• On the Dialogflow console’s Integrations page, the switch in the Telegram
channel box should have toggled on after the Telegram integration pop-up
window is closed
Make the Bot available on Telegram
Integrate to Telegram
• Now, head over to the Telegram app

• Search for and add the Bot

• Start chatting with the Hello World! Bot

• Ask your friends to try as well …
Conversational AI Agent (ChatBot)
Key components
Conversational AI Agent (ChatBot)
NLU

(Understand + Respond)
Actions

(Do Something)
Machine Learning
Functions

<code>
External APIs
Databases
Channel

APIs
Invoke/Response
Intents + Entities in

Result of Actions out
Users
DeveloperConversational
Designer
Conversational AI Agent Manager
“Live”
Training
Ng Chong Yang
B.Eng (Hons, 1st), DipELN, Dip.M (CIM), MIEEE, FCIM

Email: bot@ethanwoof.com
Ethan Woof - A Telegram Bot Built Just for Fun: t.me/EthanWoof_Bot
Thank You!
Let’s Learn About ChatBots Together …

More Related Content

Similar to Creating a Hello World Telegram ChatBot by CY

Easily Deploy your Chat Bot to Multiple Channels with Stamplay
Easily Deploy your Chat Bot to Multiple Channels with StamplayEasily Deploy your Chat Bot to Multiple Channels with Stamplay
Easily Deploy your Chat Bot to Multiple Channels with StamplayIBM Watson
 
Here's How to Create a Chatbot for your B2B Website
Here's How to Create a Chatbot for your B2B WebsiteHere's How to Create a Chatbot for your B2B Website
Here's How to Create a Chatbot for your B2B WebsiteAreeba Khan
 
WebsiteAlive Operator Panel
WebsiteAlive Operator PanelWebsiteAlive Operator Panel
WebsiteAlive Operator PanelWebsiteAlive
 
Diwug 2019 Teams Development
Diwug 2019 Teams DevelopmentDiwug 2019 Teams Development
Diwug 2019 Teams DevelopmentAlbert-Jan Schot
 
Easily Build a FAQ Spark Bot with IBM Watson
Easily Build a FAQ Spark Bot with IBM WatsonEasily Build a FAQ Spark Bot with IBM Watson
Easily Build a FAQ Spark Bot with IBM WatsonGiuliano Iacobelli
 
9324 mgd1059.zipfirst ebook
9324 mgd1059.zipfirst ebook9324 mgd1059.zipfirst ebook
9324 mgd1059.zipfirst ebookcynthiab49
 
Loomio how to Series - Working on a Discussion
Loomio how to Series - Working on a DiscussionLoomio how to Series - Working on a Discussion
Loomio how to Series - Working on a DiscussionSEA Tecnologia
 
Introduction to Facebook Messenger, Conversational UI & NLP
Introduction to Facebook Messenger, Conversational UI & NLPIntroduction to Facebook Messenger, Conversational UI & NLP
Introduction to Facebook Messenger, Conversational UI & NLPSaurabh Sharma
 
Let's go Virtual- Guide to Using Zoom for Rotary Clubs
Let's go Virtual-  Guide to Using Zoom for Rotary ClubsLet's go Virtual-  Guide to Using Zoom for Rotary Clubs
Let's go Virtual- Guide to Using Zoom for Rotary ClubsOperation Warm
 
Popup Talent Tracker: the HOW TO guide for mentors
Popup Talent Tracker: the HOW TO guide for mentorsPopup Talent Tracker: the HOW TO guide for mentors
Popup Talent Tracker: the HOW TO guide for mentorsMatt Kepple
 
Getting Started With Twitter
Getting Started With TwitterGetting Started With Twitter
Getting Started With TwitterRobert Crane
 
Let's Build a Chatbot
Let's Build a ChatbotLet's Build a Chatbot
Let's Build a ChatbotTessa Mero
 

Similar to Creating a Hello World Telegram ChatBot by CY (20)

Operator How-To
Operator How-ToOperator How-To
Operator How-To
 
Easily Deploy your Chat Bot to Multiple Channels with Stamplay
Easily Deploy your Chat Bot to Multiple Channels with StamplayEasily Deploy your Chat Bot to Multiple Channels with Stamplay
Easily Deploy your Chat Bot to Multiple Channels with Stamplay
 
Twitter Campaigns
Twitter CampaignsTwitter Campaigns
Twitter Campaigns
 
Here's How to Create a Chatbot for your B2B Website
Here's How to Create a Chatbot for your B2B WebsiteHere's How to Create a Chatbot for your B2B Website
Here's How to Create a Chatbot for your B2B Website
 
Chatbot ppt
Chatbot pptChatbot ppt
Chatbot ppt
 
D agree User Manual
D agree User ManualD agree User Manual
D agree User Manual
 
WebsiteAlive Operator Panel
WebsiteAlive Operator PanelWebsiteAlive Operator Panel
WebsiteAlive Operator Panel
 
Diwug 2019 Teams Development
Diwug 2019 Teams DevelopmentDiwug 2019 Teams Development
Diwug 2019 Teams Development
 
Chat bots
Chat botsChat bots
Chat bots
 
Easily Build a FAQ Spark Bot with IBM Watson
Easily Build a FAQ Spark Bot with IBM WatsonEasily Build a FAQ Spark Bot with IBM Watson
Easily Build a FAQ Spark Bot with IBM Watson
 
9324 mgd1059.zipfirst ebook
9324 mgd1059.zipfirst ebook9324 mgd1059.zipfirst ebook
9324 mgd1059.zipfirst ebook
 
UX & UI Design 101
UX & UI Design 101UX & UI Design 101
UX & UI Design 101
 
Loomio how to Series - Working on a Discussion
Loomio how to Series - Working on a DiscussionLoomio how to Series - Working on a Discussion
Loomio how to Series - Working on a Discussion
 
Using voice thread
Using voice threadUsing voice thread
Using voice thread
 
Introduction to Facebook Messenger, Conversational UI & NLP
Introduction to Facebook Messenger, Conversational UI & NLPIntroduction to Facebook Messenger, Conversational UI & NLP
Introduction to Facebook Messenger, Conversational UI & NLP
 
Let's go Virtual- Guide to Using Zoom for Rotary Clubs
Let's go Virtual-  Guide to Using Zoom for Rotary ClubsLet's go Virtual-  Guide to Using Zoom for Rotary Clubs
Let's go Virtual- Guide to Using Zoom for Rotary Clubs
 
Popup Talent Tracker: the HOW TO guide for mentors
Popup Talent Tracker: the HOW TO guide for mentorsPopup Talent Tracker: the HOW TO guide for mentors
Popup Talent Tracker: the HOW TO guide for mentors
 
Getting Started With Twitter
Getting Started With TwitterGetting Started With Twitter
Getting Started With Twitter
 
Shareist tutorial for Beginners
Shareist tutorial for BeginnersShareist tutorial for Beginners
Shareist tutorial for Beginners
 
Let's Build a Chatbot
Let's Build a ChatbotLet's Build a Chatbot
Let's Build a Chatbot
 

Recently uploaded

定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of indiaimessage0108
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...akbard9823
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 

Recently uploaded (20)

定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of india
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
Sushant Golf City / best call girls in Lucknow | Service-oriented sexy call g...
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICECall Girls Service Dwarka @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SERVICE
Call Girls Service Dwarka @9999965857 Delhi 🫦 No Advance VVIP 🍎 SERVICE
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
sasti delhi Call Girls in munirka 🔝 9953056974 🔝 escort Service-
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 

Creating a Hello World Telegram ChatBot by CY

  • 1. Creating a “Hello World!” Telegram ChatBot Getting Started Ng Chong Yang B.Eng (Hons, 1st), DipELN, Dip.M (CIM), MIEEE, FCIM Email: bot@ethanwoof.com Ethan Woof - A Telegram Bot Built Just for Fun: t.me/EthanWoof_Bot
  • 2. AI Conversational Agent Conversational Interface ChatBot X={ERP, CRM, LMS, eCommerce, Wealth Management, Retail Banking, Insurance … ++} Conversational X vs Web or Mobile Look and feel for X Design is not just what it looks and feels like. Design is how it works.
  • 3. Agenda Steps to create an AI Conversational Agent (Virtual Agent | ChatBot) • Getting started - Creating a Google Dialogflow account • Manifest a Virtual Agent - Start creating a Dialogflow Agent (ChatBot/Agent) • Create and Test a new Intent • Make the Bot available on Telegram
  • 4. Getting Started Creating a Google Dialogflow Account
  • 5. Creating a Dialogflow Account Setting up an account • Head over to https://dialogflow.com/ • Click on the “Sign up for free” button
  • 6. Creating a Dialogflow Account Setting up an account • Click on the “Sign up with Google” button • Sign in using a Google Account
  • 7. Creating a Dialogflow Account Setting up an account • Select the Country or territory and accept the Terms of Service
  • 8. Creating a Dialogflow Account Setting up an account • And now you’re into the Dialogflow console
  • 9. Manifest a Virtual Agent Creating a Dialogflow Agent
  • 10. Creating a Dialogflow Agent Turning on a Virtual Agent • Click on “Create Agent”
  • 11. Creating a Dialogflow Agent Turning on a Virtual Agent • Give the Bot a name, then click the “Create” button
  • 12. Creating a Dialogflow Agent Turning on a Virtual Agent • Give the Bot a name, then click the “Create” button
  • 13. Creating a Dialogflow Agent Turning on a Virtual Agent • Now you Bot is alive!
  • 14. Creating a Dialogflow Agent Turning on a Virtual Agent • Try saying “Hello!” … and see the Bot respond.
  • 15. Create and Test a New Intent Educating the Bot to understand Intents
  • 16. Create and Test a New Intent Educating the Bot to understand Intents • Click on the “Create Intent” button
  • 17. Create and Test a New Intent Educating the Bot to understand Intents Page to create a new Intent
  • 18. Create and Test a New Intent Educating the Bot to understand Intents • Give the Intent a descriptor, e.g. “get.bot.name” • Click on “Add Training Phrases”
  • 19. Create and Test a New Intent Educating the Bot to understand Intents • Enter the different ways that users will ask to get the bot’s name. These are known as “Training Phrases”. Click “Save” when done. Phrases used to “train” the Bot to identify the Intent of the user when she asks questions similar to these “Training Phrases”. The more training phrases/ variations, the better the Bot learns to identify this Intent. Google’s advice is: “in most cases, you should enter at least 10-20 (depending on complexity of intent) training phrases for reliable intent matching.”
  • 20. Create and Test a New Intent Educating the Bot to understand Intents • Clicking “Save” will initiate the saving of the Intent. And start the Agent (Bot) to train to understand to pick out this Intent from what the User says from now on This appears when the Agent training (to identify this Intent from the supplied Training Phrases is completed.
  • 21. Create and Test a New Intent Educating the Bot to understand Intents • Now, teach the Bot how to respond if she identified that the User’s Intent is to get the Bot’s name. Enter the acceptable responses in the “Text Response” section of the “Add Intent” page. Click “Save” when done.
  • 22. Here’s the Bot’s response to the question. Create and Test a New Intent Educating the Bot to understand Intents Start testing the Bot to see if she understands that your intent is to get the Bot’s name. Type or click the icon to “speak” the question here. Here’s the Intent that the Bot identified.
  • 23. Congratulations! Your very first Hello World! Bot is now “Live” on Telegram! Have fun … Do continue to build awesome Bots! Go to the following Website to learn more about creating Bot on Dialogflow: https://cloud.google.com/dialogflow/docs/quick/build-agent
  • 24. Make the Bot Available on Telegram Integrate to Telegram
  • 25. Make the Bot available on Telegram Integrate to Telegram • Launch the Telegram app • Chat with BotFather. Search for BotFather via the Telegram App or open this link in Telegram: https://telegram.me/BotFather • Give BotFather the start command by typing /start • The issue the command /newbot and follow BotFather’s instructions • Once successfully done, BotFather will issue a token
  • 26. Make the Bot available on Telegram Integrate to Telegram Get this Telegram Token from BotFather
  • 27. Make the Bot available on Telegram Integrate to Telegram • After obtaining the Telegram Token from BotFather, head over to the Dialogflow console and select “Integrations” to reach the integrations selection page • Click on the Telegram logo and the Telegram integration pop-up window will appear
  • 28. Make the Bot available on Telegram Integrate to Telegram • Toggle the switch on in the Telegram integration pop-up window. Then copy the Telegram Token that was issued by BotFather and paste it in the Telegram Token input box
  • 29. Make the Bot available on Telegram Integrate to Telegram • Click the “Start” button. And this message should pop up on the bottom right hand corner of your Dialogflow console: • Close the pop-up window
  • 30. Make the Bot available on Telegram Integrate to Telegram • On the Dialogflow console’s Integrations page, the switch in the Telegram channel box should have toggled on after the Telegram integration pop-up window is closed
  • 31. Make the Bot available on Telegram Integrate to Telegram • Now, head over to the Telegram app • Search for and add the Bot • Start chatting with the Hello World! Bot • Ask your friends to try as well …
  • 32. Conversational AI Agent (ChatBot) Key components Conversational AI Agent (ChatBot) NLU (Understand + Respond) Actions (Do Something) Machine Learning Functions <code> External APIs Databases Channel APIs Invoke/Response Intents + Entities in Result of Actions out Users DeveloperConversational Designer Conversational AI Agent Manager “Live” Training
  • 33. Ng Chong Yang B.Eng (Hons, 1st), DipELN, Dip.M (CIM), MIEEE, FCIM Email: bot@ethanwoof.com Ethan Woof - A Telegram Bot Built Just for Fun: t.me/EthanWoof_Bot Thank You! Let’s Learn About ChatBots Together …