Get your first Botpress bot up and running in minutes. This guide takes you from installation to deployment with real working code.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/botpress/botpress/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:- Node.js 18.0.0 or higher installed on your machine
- A Botpress Cloud account (sign up at app.botpress.cloud)
- Your Personal Access Token from Botpress Cloud
Install the Botpress CLI
Verify installation
Confirm the CLI is installed correctly:You should see the version number displayed.
Create your first bot
Initialize a new bot project
Create a new bot using the interactive CLI:When prompted:
- Project type: Select
bot - Template: Choose
empty-bot(default) - Name: Enter a name like
my-first-bot
Add bot functionality
Let’s make your bot respond to messages with a friendly greeting.Test your bot locally
Start the development server
Run your bot in development mode:This command:
- Builds your bot
- Starts a local development server
- Creates a tunnel to Botpress Cloud
- Deploys a dev version of your bot
- Watches for file changes and auto-reloads
Test in Botpress Cloud
Once the dev server is running, you’ll see output like:
- Open the Botpress Cloud dashboard
- Navigate to your dev bot (marked with a dev badge)
- Open the Emulator or Web Chat
- Send a message - your bot will respond with “Hello, World!”
Deploy to production
Deploy your bot
When you’re ready to deploy to production:This command:
- Builds your bot for production
- Prompts for confirmation
- Deploys to Botpress Cloud
- Returns a bot ID
The first time you run
bp deploy, it creates a new bot. Subsequent deploys update the existing bot.Troubleshooting
Error: Node version not supported
Error: Node version not supported
Botpress requires Node.js 18.0.0 or higher. Check your version:If needed, upgrade Node.js from nodejs.org.
Error: Could not authenticate
Error: Could not authenticate
This usually means your Personal Access Token is invalid or expired:
- Generate a new token in Botpress Cloud
- Run
bp loginagain - Enter the new token
Dev server won't start
Dev server won't start
Common causes:
-
Port already in use: The default port (8075) might be occupied. Specify a different port:
-
Build errors: Check the terminal output for TypeScript errors and fix them before running
bp dev.
Changes not reflecting in the emulator
Changes not reflecting in the emulator
Try these steps:
- Wait a few seconds after saving - the rebuild takes time
- Refresh the Botpress Cloud dashboard
- Clear your browser cache
- Restart the dev server with
Ctrl+Cthenbp dev
Deployment fails
Deployment fails
Ensure you’re logged in and have the correct permissions:Check that your
bot.definition.ts has no validation errors.Next steps
Add integrations
Learn how to add pre-built integrations like Slack, OpenAI, and more to your bot
Build bots
Learn about bot configuration, handlers, and advanced features
Integration hub
Browse 67+ pre-built integrations available for your bots
SDK reference
Explore the full TypeScript SDK API documentation