SlideShare a Scribd company logo
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

PDF
How to build a Chatbot with Google's Dialogflow
PPTX
introduction to Dialogflow ES process.pptx
PPTX
Chatbot ppt
PDF
Dialogflow
PDF
OK Google, it's time to bot! - Hadar Franco & Stav Levi
PDF
Ok google, it's time to bot! - Hadar Franco, Albert + Stav Levi, Monday
PPTX
Developing Chatbots with Google DialogFlow
PDF
Beginners chatbotai workshopdbb_bitfusion
How to build a Chatbot with Google's Dialogflow
introduction to Dialogflow ES process.pptx
Chatbot ppt
Dialogflow
OK Google, it's time to bot! - Hadar Franco & Stav Levi
Ok google, it's time to bot! - Hadar Franco, Albert + Stav Levi, Monday
Developing Chatbots with Google DialogFlow
Beginners chatbotai workshopdbb_bitfusion

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

PPT
dialogflow-180515215638.ppt
PDF
Moving Conversational bots off Your Product Roadmap And Into Your Workstreams...
PPTX
Chatbot Basics for Customer Communication
PPTX
Introduction of Dialogflow with google assistant and Artificial intelligence
PDF
Conversational agents
PDF
Building Conversational Experiences with Dialogflow.pdf
PDF
(Brief) AI Conversational Agent - An Introduction to ChatBots v1.0
PDF
Conversational UIs for internal comms
PDF
Chatbots DDD North2016
PPTX
Build a Chatbot with IBM Watson - No Coding Required
PDF
Bot-Tender: A Chat Bot Walks into a Bar (Microsoft Tech Days Sweden 2018)
PDF
How to build an NLP chatbot for customer support automation
PPTX
Chatbot Basics - Building Chatbots using Google Dialogflow
PDF
Let's Build a Chatbot!
PDF
NUS-ISS Learning Day 2019- ChatBots: All about Conversational Experiences
PPTX
The Software Challenges of Building Smart Chatbots - ICSE'21
PDF
Bot builder workshop
PDF
Designing Intelligent Coversations: A Chatbot Workshop
PPT
Building a bot with an intent
PDF
dialogflow-180515215638.ppt
Moving Conversational bots off Your Product Roadmap And Into Your Workstreams...
Chatbot Basics for Customer Communication
Introduction of Dialogflow with google assistant and Artificial intelligence
Conversational agents
Building Conversational Experiences with Dialogflow.pdf
(Brief) AI Conversational Agent - An Introduction to ChatBots v1.0
Conversational UIs for internal comms
Chatbots DDD North2016
Build a Chatbot with IBM Watson - No Coding Required
Bot-Tender: A Chat Bot Walks into a Bar (Microsoft Tech Days Sweden 2018)
How to build an NLP chatbot for customer support automation
Chatbot Basics - Building Chatbots using Google Dialogflow
Let's Build a Chatbot!
NUS-ISS Learning Day 2019- ChatBots: All about Conversational Experiences
The Software Challenges of Building Smart Chatbots - ICSE'21
Bot builder workshop
Designing Intelligent Coversations: A Chatbot Workshop
Building a bot with an intent
Ad

Recently uploaded (20)

PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Digital Literacy And Online Safety on internet
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PPTX
artificial intelligence overview of it and more
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PPTX
E -tech empowerment technologies PowerPoint
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
innovation process that make everything different.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Sims 4 Historia para lo sims 4 para jugar
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Paper PDF World Game (s) Great Redesign.pdf
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Digital Literacy And Online Safety on internet
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
artificial intelligence overview of it and more
newyork.pptxirantrafgshenepalchinachinane
Mathew Digital SEO Checklist Guidlines 2025
An introduction to the IFRS (ISSB) Stndards.pdf
Power Point - Lesson 3_2.pptx grad school presentation
E -tech empowerment technologies PowerPoint
Unit-1 introduction to cyber security discuss about how to secure a system
innovation process that make everything different.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Slides PPTX World Game (s) Eco Economic Epochs.pptx
SAP Ariba Sourcing PPT for learning material
Sims 4 Historia para lo sims 4 para jugar
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Ad

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 …