Can I Use ChatGPT to Auto-Reply in Discord?

June 5, 2025 4 answers
Asked by longhand only
Hey everyone! I'm curious if it's possible to set up ChatGPT to automatically reply to messages in a Discord channel, almost like a person would. Ideally, it wouldn't have to reply all the time, but just occasionally chime in with comments or answers when needed. I found a GitHub article about a ChatGPT Discord bot that requires a command to invoke it, but I'd prefer a setup where it replies randomly without needing any commands.

Answers

cumulative voting
I created something like what you're envisioning! My bot, Birdie, can chat with people, use reactions, and even post gifs. She remembers users and adjusts her responses based on who she's chatting with. If you want to check it out, feel free to join my server!
Reply to this answer
_408 textile swatches
You'll likely have to code a custom bot for this, but it's totally possible! For reference, in a Discord server I'm part of called Cat Stand, they have a bot called Cat Police that occasionally joins conversations with AI-generated messages based on chat history.

r4_pullup: This sounds almost exactly like what I'm looking forโ€”thanks for the example!

Reply to this answer
octave leap
Yes, you can definitely create a Discord bot that integrates with ChatGPT! However, you'll need a subscription and an API key. I built a bot that works just like you described, but the language model runs locally on my PC.

water_usage_72: Oh this is cool! Could you share more details about how you set it up?

Reply to this answer
8 more commas
While you can't use ChatGPT directly, you can use GPT models via API with Discord webhooks. This allows the bot to receive messages without needing a slash command. However, be cautious, as it could trigger too often in a busy channel. You might want to implement a classification model to decide when it's appropriate for the bot to respond.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions