
BUILDING AI MICROCOURSE
DISCORDBOTS
Integrate a Dialogflow Agent with a Discordbot

Learn how to integrate your DialogFlow agent with a Discordbot and create interactive conversational projects.
This microcourse takes you through the process of creating a Discord account, and joining the HaileyburyXAI Discord server; helps you understand repl.it, a powerful but simple interactive programming environment; and then helps you code your own Discordbot and integrate it with Google Dialogflow.
STEP 1
You should create your own Discord account by going to
and use the Google account you created in the Dialogflow microcourse.
Important
13 is the minimum age to access Discord. You can read more about Discord and safety here.
STEP 2
Join the HaileyburyX AI Build a Bot Discord server by accepting the invitation you have received.
You can then post a message to introduce yourself in the #introductions channel. Why not say your name and maybe post about what you think AI will be able to do in the future? (You could also post a picture of your cat).
If you've never used Discord before, watch this video.
STEP 3
Create a repl.it account by going to
and signing with your Google account.
Then why not head back to Discord and join the #replit channel and tell us what you think repl.it does, and tell us if you have any coding experience and what languages you have coded in, and what have you built.
When you have done this, move onto step 4, where you will learn about repl.it, Discord and how they work together.
STEP 4
Watch this video tutorial from Haileybury's Jeff Plumb on how to create a Discordbot and how Discord and repl.it work together.
You'll learn about how to create a bot in Discord, how use our programming template and connect it to the Discord server using OAuth, how to add your bot to our Discord server, and how to interact with your bot by talking to it and asking it questions.
STEP 5
Now you can code your own Discordbot using Google Dialogflow.
To do this you will need to have done three things:
Completed the Dialogflow microcourse, where you learned how to use Google DialogFlow to create a simple TrviaBot
Completed the Digital People microcourse, where you used DialogFlow to create a more sophisticated conversational AI and used it to script a Soul Machines™ digital person.
You need to have completed step 4 above.
Now watch this video tutorial from Haileybury's Jeff Plumb on how to create your own Discordbot that integrates with Google Dialogflow.
COMING SOON
In the LEARNING CHALLENGE microcourse you will be able to choose from a variety of Learning Challenges.
In the AI EXPLORATORY microcourse you can choose to share your work with other students.