Kite

How to Make a Discord Bot With ChatGPT

You can ask ChatGPT for a Discord bot and get one that actually runs. Add Kite to ChatGPT, say which commands and events you want, and ChatGPT builds them in Kite. Kite hosts the bot for free, so there's no code to paste into a file and no server to keep running.

About 10 minutes
Free
No code
Get Started for Free
1

Create Your Bot in Kite

ChatGPT builds your bot in Kite, and Kite hosts it. So you need a Discord application for the bot and a Kite app for it first.

  1. Create an application in the Discord Developer Portal, turn on the Privileged Gateway Intents on the Bot page and copy the token.
  2. Open Kite, click on Create app and paste the token.
  3. Click on Invite app and add the bot to your server.

Never done this before? Our first guide shows each step in detail.

Create App
Create a new app to get started with Kite and start building your app!
2

Add Kite to ChatGPT

Kite is an MCP server, which gives ChatGPT the tools to read and build your bot.

  1. Open chatgpt.com/plugins, click on + and choose Add custom MCP server.
  2. Name it Kite and paste https://kite.onl/api/mcp as the URL.
  3. Choose OAuth to sign in, confirm the warning about custom servers and create it.

OpenAI decides which plans can add their own MCP servers, and workspace admins can turn it off. If you can't find the option, your plan or workspace might not have it.

Add custom MCP server
Name
Kite
Remote MCP server URL
https://kite.onl/api/mcp
Cancel
Create
3

Sign In and Choose What It Can Do

After you create it, ChatGPT sends you to Kite to sign in. On that page you decide how much ChatGPT gets:

  • Full access lets it build and change your bot. Read only lets it look but not touch.
  • The apps it can see. If you have several, pick only the bot you're working on.

Click on Connect to finish. To cut ChatGPT off later, remove it under API tokens in Kite.

ChatGPT works on your bot's commands, events and messages. It can't send requests to Discord directly, like reading the members of a server. That needs a client that connects with an API token, like Codex.

ChatGPT
Connected from chatgpt.com ยท Used 3 minutes ago
Apps access
Full access
Which apps
Ticket Bot, Mod Bot
Always blocked for clients
Mass bansBulk deletesPruning membersLeaving servers
4

Describe Your Bot

Start a new chat, type @ and pick Kite. Then tell ChatGPT what your bot should do. Name the app if you have more than one.

Before it saves anything, ChatGPT reads how the blocks it needs work. Kite then checks the finished flow and turns down broken ones, so a half-built command never reaches your server.

chatgpt ยท my-bot
>@Kite Add a /suggest command that posts the suggestion in #suggestions with ๐Ÿ‘ and ๐Ÿ‘Ž reactions.
โ—kite ยท list_apps
โŽฟFound My Bot
โ—kite ยท list_channels
โŽฟFound #suggestions
โ—kite ยท get_blocks
โŽฟLooked up 4 blocks
โ—kite ยท create_command
โŽฟCreated /suggest
โ—Added /suggest to My Bot. It posts each suggestion in #suggestions and adds ๐Ÿ‘ and ๐Ÿ‘Ž for voting.
5

Try It in Discord

Run /suggest in your server. Discord can take up to a minute to show new commands.

From here on it's a normal Kite command. Change the text yourself in the editor, or go back to the chat and ask ChatGPT for a cooldown or a log channel.

A
Alexused/suggest
My BotAPPToday at 4:20 PM
Add a channel for memes ๐Ÿ‘ ๐Ÿ‘Ž

What to Ask ChatGPT For

ChatGPT sees your commands, logs, channels and roles, so you can describe things the way you'd tell a person.

Add a /ban command with a user and a reason, and reply with who was banned.
When someone joins, give them the Member role and welcome them in #welcome.
Why does my /ticket command fail? Check the logs and fix it.
Add the verification template and post its message in #verify.

Want a Bot That Talks Like ChatGPT?

Maybe you're looking for something else: a bot that answers questions in your server like ChatGPT does. You don't need ChatGPT or an OpenAI API key for that. The AI Discord bot page shows how to add an /ask command and a bot that replies when it's mentioned, with its own personality.

Using Codex Instead

Codex can build your bot from the terminal too. Add Kite with this command. If Codex doesn't open Kite to sign in, run codex mcp login kite.

codex mcp add kite --url https://kite.onl/api/mcp

Why Not Copy Code From ChatGPT?

ChatGPT can write a bot with discord.js or discord.py. Then you need a server that keeps it running, and every change means asking for new code and deploying it again. Code from tutorials also breaks when the libraries change.

With Kite, ChatGPT builds flows that Kite runs and keeps up to date. See Kite's MCP server for everything ChatGPT can do, or the MCP documentation for other clients.

Frequently Asked Questions

Can I make a Discord bot with ChatGPT for free?

Yes. Kite hosts the bot for free, and the free plan has 10,000 credits a month for running its commands. Which ChatGPT plans can add their own MCP servers is up to OpenAI, so check that you see Add custom MCP server under Plugins.

Does ChatGPT write code for my bot?

No. It builds flows out of Kite's blocks, like Ban member or Send message, and Kite runs them. To tweak something, open the command in the editor. There's no code to read.

Can I make a bot that answers with ChatGPT?

Yes, but that's a different thing: a bot that uses AI to answer your members. Kite's Ask AI block does that without an OpenAI API key. Start with the Ask AI template from the AI Discord bot page.

Does my bot stay online when I close ChatGPT?

Yes. You only need ChatGPT while you build. The bot itself runs on Kite's servers around the clock.

Is it safe to let ChatGPT change my bot?

You decide what ChatGPT gets when you sign in, and you can make it read only. If it changes something you didn't want, restore the earlier version from the command's history.

Still have questions? Join the Discord server

Make Your Own Discord Bot Today

Build commands by connecting blocks, or describe them and let AI build them. Kite is free to start and hosts your bot 24/7.

No credit cardHosted 24/7Open source