Loading
Loading
  • Home

  • Automation with Zapier

  • Zapier tutorials

Zapier tutorials

5 min read

How to make a Discord bot without code

By Krystina Martinez · March 14, 2023
how-to-make-discord-bot-withou primary img

If you own or moderate a Discord server, managing your community without automation can be tough. 

Thanks to developers and users who like to tinker, there's a massive ecosystem of Discord bots. These user-like apps let you add extra moderation tools, gamification, or a dose of randomness to any server. Discord even launched an app directory to make adding bots to a server easier. 

But what if you can't find a bot that suits your needs and don't know how to code? You can create your Discord bot with Zapier in a few clicks. 

With our automated workflows called Zaps, you can connect your favorite apps to Discord without any code. We'll show you how you can create your own custom bot to manage your community your way. 

New to Zapier? It's workflow automation software that lets you focus on what matters. Combine user interfaces, data tables, and logic with 6,000+ apps to build and automate anything you can imagine. Sign up for free to use this app, and thousands more, with Zapier.

Types of Discord bots

There are a few types of Discord bots you might encounter. Since other users or developers often create bots, some may have a separate settings interface where you can manage bot behavior. 

Discord bots generally fall into a few groups: 

  • Command bots are triggered by a command often beginning with a slash or exclamation point. For example, the built-in /tableflip command will add the table-flipping text emoticon to your message. Currently, you need an understanding of code (or a willingness to tinker) to build Discord command bots.

  • Reply bots will respond to specific phrases you set in advance. These are often used for frequently asked questions or rule reminders. 

  • Notification bots alert a channel or specific role, often about events happening in other apps, such as someone starting a Twitch stream.  This tutorial will show you how to create a notification bot from a new Google Form submission. You can still follow along if you want to create a notification bot with another app.  

Note: Discord forbids "self-bots", which are bots that pose as your account.

Before you begin

To connect a Discord server to Zapier, you need to be the server owner or an administrator with the ability to add bots and create webhooks.

If you don't have one already, create a #testing channel that general members cannot access so you can test your bot without spamming the server. 

Since I'm using Google Forms for this tutorial, I need a Google Form with at least one submission to set up this Zap. If you're using a different app, ensure you have something you can test, like a recent pull request from GitHub. 

How to make a Discord bot without code

You can create your own Zap from scratch with our point-and-click editor, but we also have quick templates to get you started. 

To get started with a Zap template—what we call our pre-made workflows—just click on the button. It only takes a few minutes to set up. You can read more about setting up Zaps here.

Send Discord messages with new Google Forms responses

Send Discord messages with new Google Forms responses
  • Google Forms logo
  • Discord logo
Google Forms + Discord

Here's how to set it up:

  1. Create and test your trigger

  2. Connect your Discord account and set the correct permissions

  3. Customize your message

  4. Optional: Mention specific users or roles

  5. Test your bot and make sure it's ready to use

Set up your trigger

First, set up your trigger—the event that starts a Zap. 

If you're creating a Zap from scratch, search for and select the app and event that will start your Zap, and click Continue

Select the app and event that will trigger the Zap.

Next, connect your app account to Zapier. 

If you're following along with our Zap template, the Zap editor will prompt you to select the Google Forms account you want to use. You'll need to connect your account if you haven't connected Google Forms to Zapier before. When you're done, click Continue

For each app you connect, Zapier will ask for a general set of permissions which allows you to be flexible with your Zaps. The only actions Zapier takes on your app accounts are those a given Zap needs to accomplish what you've set up.

If you're using a different app, follow the prompts for setting up your trigger. Otherwise, select the Google Form you want to use and click Continue

Select the Google Form that will trigger the Zap.

Now click Test trigger. When you test your trigger, Zapier will look for a recent form response, which will be used to set up the rest of your Zap. Once you see a success message, click Continue

Test the trigger in the Zap editor and review the app data returned.

Connect your Discord account

Now it's time to create your Zap's action, which is the event it will perform once it's triggered. 

If you're building a Zap from scratch, search for and select Discord as the app and Send Channel Message as the event, then click Continue. 

Select the action app and event your Zap will perform.

You will be asked to connect your Discord account to Zapier, and you'll select which server you want to add your bot to.

Select the Discord server to add Zapier to.

Then, confirm Zapier's permissions for your server. Make sure you have a check next to Send Messages and Manage Webhooks or else your notification bot won't work. 

Select the permissions you want to grant Zapier.

Once you've confirmed the permissions, click Continue.

Customize your Discord message

Select the channel you want the message to go to, such as a testing channel. 

Then customize how you want your message to appear. In this example, I want my notification bot to include the answers from a new Google Form submission. To pass information from one app to another, you need to map field values from your form trigger. 

Just click inside the Message Text field. The Zap editor will show a dropdown menu with data from your previous Zap step. Search for and select the data you want to include in your message. 

Click inside a field in the Zap editor and select dynamic values from your trigger step.

You can include a mix of static text—which will appear the same each time your Zap runs—along with whatever you field map. 

In the example below, I included markdown to ensure any bot messages will be formatted correctly in Discord whenever my Zap runs. 

Add markdown, static text, and dynamic values to customize your Discord message.

Once you've formatted your message how you like, adjust your message settings, such as enabling text-to-speech or alerting anyone mentioned. If you'd like, you can also give your bot a name and provide an image URL for the bot icon. 

Customize message behavior for mentions, text to speech, and the bot appearance.

Once you're done, click Continue

Optional: How to mention roles or users

When you're customizing your Discord message, you can also include formatting to mention a user or a specific role. Since you need IDs in order to mention a user or a certain role, there are a few ways to achieve this. 

To mention the same role each time, send a message in any channel—preferably your testing channel— with \@ROLENAMEHERE. It will return the role ID, properly formatted for you to copy and paste. 

To mention a different role or user based on your Zap trigger, you can use a search stepavailable on paid Zapier plans—to dynamically search for role or user. Just make sure you have a way to collect user names. 

For example, if you're using Google Forms, you can include a question that asks for their actual username and include response validation to force users to follow your instructions.

Use response validation in Google Forms to collect usernames in the correct format.

You can also ask users to provide their IDs, which they can find once they turn on Developer Mode in Discord

In the example below, I instructed users to provide their user IDs and added response validation for this question to minimize errors. 

Add question instructions to a Google Form.

Test your bot

Finally, test your bot to make sure it's formatted correctly. Zapier will send a message to the specified Discord channel, so make sure you do this in a testing channel or alert your server that you're testing a bot. 

If everything is set up correctly, you'll see a success message. 

Review the results of the action test in the Zap editor.

Check your Discord to make sure you're happy with how your message looks. 

Check Discord to preview your test's appearance.

If everything looks good, return to the Zap editor. If you used a testing channel, go back and select the real channel you want your bot messages to appear, and make sure your Zap is on!

Create your own Discord bot with Zapier

I demonstrated a simple Discord bot you can create with Zapier, but you can make it as complex as you'd like. Chain multiple actions together with multi-step Zaps—available on paid Zapier plans—or check out our guides on using built-in Zapier tools with your favorite apps to create all sorts of Discord bots. 

This article was originally published in May 2019 by Justin Pot and was substantially updated in March 2023 by Krystina Martinez.

Get productivity tips delivered straight to your inbox

We’ll email you 1-3 times per week—and never share your information.

tags
mentioned apps

Related articles

Improve your productivity automatically. Use Zapier to get your apps working together.

Sign up
A Zap with the trigger 'When I get a new lead from Facebook,' and the action 'Notify my team in Slack'