Quickstart: Build Your First Bot

In this guide, we'll build a simple Discord Support Bot — a bot that listens for messages and uses AI to reply. By the end you'll have a deployed, running bot.

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


1. Create a New Bot

In Narakim Studio, go to Workspaces → Create Bot.

Choose "Create from scratch", then fill in:

  • Name: Support Bot
  • Archetype: Discord
  • Visibility: Private

Click Create Bot. You'll be taken to the Bot Dossier.


2. Install Extensions

Go to the Extensions tab and install:

  • Message Create (Discord Trigger)
  • OpenRouter AI (Action)
  • Send Message (Discord Action)

3. Connect Discord

Go to Configurations → Connect Platform → Discord.

Select integration level Bot Level (recommended), then enter:

Click Connect. Once connected, the status indicator turns green.

info

Bot Level means your automation runs as a standalone bot identity — a separate Discord account. See Integration Levels for details.


4. Add Secrets

The Discord and OpenRouter AI extensions require secrets. Go to Configurations → Extension Secrets and fill in:

  • DISCORD_BOT_TOKEN — your Discord bot token
  • DISCORD_APPLICATION_ID — your application ID
  • OPENROUTER_API_KEY — your OpenRouter API key (get one here)

5. Build the Automation

Go to the Automation tab.

In the Node Palette (bottom-left), add these nodes to the canvas:

  1. Message Create — drag it onto the canvas
  2. OpenRouter AI — drag it next to Message Create
  3. Send Message — drag it after the AI node

Now connect them:

  • Draw an edge from Message Create → OpenRouter AI
  • Draw an edge from OpenRouter AI → Send Message

Configure the nodes:

  • OpenRouter AI → Set model to openai/gpt-4o-mini, set systemPrompt to You are a helpful support assistant.
  • Click the edge between Message Create and OpenRouter AI → map contentmessage
  • Send Message → Set channelId to your support channel ID
  • Click the edge between OpenRouter AI and Send Message → map responsecontent

6. Validate and Test

Click Save, then Validate Graph. All nodes should show green checkmarks.

Click Run Smoke Test to simulate a message event and verify your automation executes correctly. No live messages are sent during a smoke test.


7. Deploy

Go to the Deployments tab → click Deploy.

Once the instance status shows RUNNING, your bot is live. Send a message in your Discord server and watch it reply!


Next Steps

  • Add an If Condition node to filter messages (e.g., only respond in the #support channel).
  • Try the AI Studio — describe what you want and let the AI build the graph for you.
  • Build a Telegram bot or a Universal bot that bridges multiple platforms.
Was this helpful?
historyLast updated: May 10, 2026