Your First Discord Bot

This step-by-step guide walks you through building a Discord Welcome Bot — a bot that sends a personalized welcome message every time a new member joins your server.

Time to complete: ~10 minutes
Prerequisites: A Discord server where you have Administrator permissions.


Step 1: Create a Discord Application

  1. Go to the Discord Developer Portal.
  2. Click New Application and give it a name (e.g., "Welcome Bot").
  3. Go to the Bot section → click Add Bot.
  4. Enable the GUILD_MEMBERS privileged intent.
  5. Click Reset Token and copy your Bot Token. Keep this safe.
  6. Copy your Application ID from the General Information page.
  7. Go to OAuth2 → URL Generator → select bot scope → select Send Messages permission → copy the generated URL and invite the bot to your server.

Step 2: Create a Bot on Narakim

  1. In Narakim Studio, go to Workspaces → Create Bot.
  2. Choose "Create from scratch".
  3. Enter the name Welcome Bot, archetype Discord.
  4. Click Create Bot.

Step 3: Install Extensions

Go to the Extensions tab. Install:

  • Guild Member Add (Discord Trigger)
  • Send Message (Discord Action)

Step 4: Connect Discord

Go to Configurations → Connect Platform → Discord.

Select Bot Level as the integration level, then enter:

  • Your Bot Token
  • Your Application ID

Click Connect. The connection status should turn green.


Step 5: Add Secrets

Go to Configurations → Extension Secrets and fill in:

  • DISCORD_BOT_TOKEN — your bot token
  • DISCORD_APPLICATION_ID — your application ID

Step 6: Build the Automation

Go to the Automation tab.

  1. Open the Node Palette (bottom-left) and click Guild Member Add to add it to the canvas.
  2. Click Send Message to add it to the canvas.
  3. Draw an edge from the output handle of Guild Member Add to the input handle of Send Message.

Step 7: Configure the Nodes

Guild Member Add — no configuration needed.

Send Message:

  • channelId — Enter your welcome channel's ID (right-click the channel in Discord → Copy Channel ID).
  • content — Enter a welcome message using template strings:
Welcome to the server, {{nodes.trigger.output.user.username}}! 🎉 We're glad to have you here.

Step 8: Save and Test

  1. Click Save in the top navigation.
  2. Click Validate Graph — all nodes should show green checkmarks.
  3. Click Run Smoke Test — this simulates a member join event and shows you the execution trace.

Step 9: Deploy

  1. Go to the Deployments tab.
  2. Click Deploy → choose DEVELOPMENT environment.
  3. Once the instance status shows RUNNING, your bot is live.

Try joining your Discord server from another account to see the welcome message in action!


Next Steps

  • Add an If Condition node to send different messages based on whether the new member is a bot.
  • Use the OpenRouter AI extension to generate a personalized welcome message.
  • Add a Log node to track every new member join in your bot's live log stream.
  • Try the AI Studio — describe a more complex bot and let the AI build it for you.
Was this helpful?
historyLast updated: May 10, 2026