Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

An example of how to make a chatbot in discord.py using dialogflow/api.ai. Currently using older versions of dialogflow (v1)

Notifications You must be signed in to change notification settings

SpectrixDev/discordpy-dialogflow-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord.py Dialogflow Chatbot Examples

An open source repo just to help anyone who may want to use this tool in the future. Supporting async, ext and rewrite

Why would you want to use this?

You can use dialogflow to make chatbots, or if that's too complicated, you can use it's machine learning to make your bot understand what a user is asking for when it's mentioned. For example, "@MyBot can u hElp?" could trigger a help command, and dialogflow uses Google's ML to understand what users want and make life easier.

Ok, how do I get started?

You'll need to install the module apiai. Currently this is what I use for the repo. I'm not sure if this works with dialogflowv2 agents, and I'm 80% sure it doesn't, so it's best to set yours to dialogflowv1. To install, simply do:

pip3 install apiai

Then make sure to import apiai

Your code sucks, can I please make it better?

Sure you can, just open a pull request and I'll be glad to merge it :)

Other notes:

https://dialogflow.com/docs/getting-started

About

An example of how to make a chatbot in discord.py using dialogflow/api.ai. Currently using older versions of dialogflow (v1)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages