---
title: "OpenClaw setup and Building Discord Chatbot by only using prompt"  
description: "This blog is help you provide the information about how to setup OpenClaw and building a practical project."  
author: "Yash Srivastava"  
published: 2026-06-29  
updated: 2026-06-29  
canonical: https://answers.mindstick.com/blog/457/openclaw-setup-and-building-discord-chatbot-by-only-using-prompt  
category: "technology"  
tags: ["openclaw", "ai model", "artificial intelligence", "automation"]  
reading_time: 3 minutes  

---

# OpenClaw setup and Building Discord Chatbot by only using prompt

## Introduction

After Collecting the conceptual knowledge it's time for implementation of the [OpenClaw](https://answers.mindstick.com/blog/456/introduction-to-openclaw). Here we will get to know that how can we setup the OpenClaw and after that we will start with a small project of a Chatbot which will be integrated to Discord named QubitBot.

## How to setup OpenClaw?

OpenClaw provides an easy setup process by using which you can setup very easily. OpenClaw have some predefined dependencies like Node.js and Git, now:

### Step 1: Install the dependencies

By using a single command you can install OpenClaw with the other dependencies, use command:

```plaintext
iwr -useb https://openclaw.ai/install.ps1 | iex
```

### Step 2: Setup with OpenClaw

Now, provide the basic information whatever is asked by OpenClaw like:

- AI Provider
- Model Configuration
- Channel Configuration

**AI provider:** This request is arise by the OpenClaw to connect you with the the openclaw with the Model providers like OpenAI, Anthropic, Google, etc.\
***note:-*** *If you want to access with the openSouce model or for free you can select:*

> More then select ollama

**Model Configuration:-** Here you have to select which paid model which you want to use with openClaw. like:- GPT 5.5, Claude, Gemini, LLama3, etc.

***note:-** If you are working with ollama select any of Local model or cloud based model like: qwen, llama, mistral models. Here I am using: **gemma4:31b-cloud** model.*

### Step 3: Openclaw Dashboard

To open the Dashboard of OpenClaw use:

```plaintext
OpenClaw dashboard
```

now, you are connected with your openclaw dashboard.

## Building a Chatbot using OpenClaw

### Step 1: Open OpenClaw Dashboard

To open the Dashboard of OpenClaw use:

```plaintext
OpenClaw dashboard
```

### Step 2: Start Prompting

here the prompt plays the very important role, for building an AI chatbot which will interact with the Discord I an using the prompt:

```plaintext
Set up my Discord connection. Here's what you need:
Bot token: PASTE_YOUR_BOT_TOKEN_HERE
Server ID: PASTE_YOUR_SERVER_ID_HERE
My User ID: PASTE_YOUR_USER_ID_HERE
Do all of this:
1. Update my openclaw.json config with these values.
2. Create the channels you think I need (general chat, code tasks, research, automations — or whatever makes sense).
3. Generate the OAuth2 invite link with the right bot permissions
  (Send Messages, Read Message History, Attach Files, Use Slash Commands, Add Reactions, Embed Links) and give me the link to paste in my browser.
4. Once I tell you I've authorized the bot, restart the gateway and verify everything is connected.
```

Now, when you enter this prompt the automated task will begin and it will also connect the Discord with the codes.

![OpenClaw setup and Building Discord Chatbot by only using prompt](https://answers.mindstick.com/blogs/d6af1cbe-9008-486e-b429-489e4acc5cb1/images/bd147d59-a705-49b8-a5cd-92a2452596f8.png)

Here firstly the model response with an error and the reply as:

![OpenClaw setup and Building Discord Chatbot by only using prompt](https://answers.mindstick.com/blogs/d6af1cbe-9008-486e-b429-489e4acc5cb1/images/b4908c6f-0828-4d6a-846d-29b247ef11a3.png)

### Step 3: Fixing the bug

now here we can allow the access to the OpenClaw which can perform the task on your behalf and deploy the model in the server.

### Step 4: Testing

Now you can test your bot with some prompt like:

![OpenClaw setup and Building Discord Chatbot by only using prompt](https://answers.mindstick.com/blogs/d6af1cbe-9008-486e-b429-489e4acc5cb1/images/4fa759d4-9bee-4a29-a826-a8c6e6b955a0.png)

![OpenClaw setup and Building Discord Chatbot by only using prompt](https://answers.mindstick.com/blogs/d6af1cbe-9008-486e-b429-489e4acc5cb1/images/17ec79ed-90fc-4047-81d7-d27fc97d653f.png)

---

Original Source: https://answers.mindstick.com/blog/457/openclaw-setup-and-building-discord-chatbot-by-only-using-prompt

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
