Inspiration

I learned about Claude's slack integration via MCP servers and wanted to learn about how to communicate with AI through chatbots. I also wanted to have more efficient conversations on Discord by having AI as a summarizer directly in the platform.

What it does

You can use slash commands to communicate with LLMs in Discord or have it summarize conversations. You also have the option to have the AI's output to be ephemeral or public, so you can share the AI's thoughts or summarize a conversation privately.

How we built it

This was built using Discord webhooks/bots and having it communicate to a Railway server to use LLM APIs and return the output back to discord.

Challenges we ran into

One of the biggest hurdles was trying to communicate was getting access to private conversations, this is not typically possible through Discord's API. The only way to do so is through automated scraping like Playwright. I didn't do it to ensure I comply with Discord's TOS.

Accomplishments that we're proud of

I was able to build a Discord bot that interacts with LLMs as my first AI project.

What we learned

I learned about Discord bots, webhooks and the API involved, I also learned about how to use AI in apps.

What's next for Discord AI Integration

Create a dedicated MCP Server to communicate directly with discord and create a two-way communication method.

Built With

Share this project:

Updates