Prerequisites
Before you begin, ensure you have:- Node.js version 18.15.0 or higher (< 19.0.0 or version 20+)
- npm package manager (comes with Node.js)
- An API key from an LLM provider (OpenAI, Anthropic, etc.)
Download Node.js from nodejs.org if you don’t have it installed.
Install and Start Flowise
Install Flowise globally
Open your terminal and run:This installs the Flowise CLI globally on your system.
Start the Flowise server
Launch Flowise with a single command:You should see output indicating the server is running:
The server starts on port 3000 by default. To use a different port, set the
PORT environment variable: PORT=8080 npx flowise startOpen the Flowise UI
Navigate to http://localhost:3000 in your web browser.You’ll see the Flowise canvas interface where you can build workflows.
Create Your First Chatflow
Now let’s build a simple conversational chatbot.Create a new chatflow
- Click the “Add New” button in the top navigation
- Select “Chatflow” from the options
- You’ll be taken to an empty canvas

Add a Chat Model node
- Click the ”+” button or search for “ChatOpenAI”
- Drag the ChatOpenAI node onto the canvas
- Click on the node to configure it
- Enter your OpenAI API key in the Connect Credential section
Add a Conversation Chain node
- Search for “Conversation Chain” in the node panel
- Drag it onto the canvas
- Connect the ChatOpenAI node output to the Conversation Chain node input
Configure memory (optional)
To give your chatbot memory of previous messages:
- Search for “Buffer Memory”
- Drag it onto the canvas
- Connect it to the Memory input of the Conversation Chain
Memory allows the chatbot to remember context from previous messages in the conversation.
Example Chatflow Configuration
Here’s what your first chatflow should look like:ChatOpenAI Configuration
ChatOpenAI Configuration
- Model Name:
gpt-3.5-turboorgpt-4 - Temperature:
0.7(controls randomness, 0-2) - Max Tokens:
1000(maximum response length) - OpenAI API Key: Your API key from OpenAI
Conversation Chain Configuration
Conversation Chain Configuration
- Language Model: Connected to ChatOpenAI node
- Memory: Connected to Buffer Memory node (optional)
- System Message: Optional custom system prompt
Buffer Memory Configuration
Buffer Memory Configuration
- Memory Key:
chat_history(default) - Session ID: Auto-generated per conversation
Use Your Chatflow via API
Once your chatflow is working, you can integrate it into your applications using the API.Next Steps
Congratulations! You’ve built your first AI chatflow with Flowise. Here’s what to explore next:Add RAG capabilities
Upload documents and create a Q&A system that answers from your data.
Build an AI Agent
Create autonomous agents that can use tools and make decisions.
Explore Integrations
Connect to different LLM providers, vector databases, and tools.
Production Deployment
Learn how to deploy Flowise in production with Docker and databases.
Troubleshooting
Port 3000 already in use
Port 3000 already in use
If port 3000 is already in use, you can start Flowise on a different port:
API key errors
API key errors
Make sure your API key is valid and has the necessary permissions:
- For OpenAI: Check your API key at platform.openai.com/api-keys
- Ensure you have billing enabled and credits available
- Verify the API key has access to the model you’re using
Node.js version issues
Node.js version issues
Flowise requires Node.js >= 18.15.0. Check your version:If your version is too old, download the latest LTS version from nodejs.org.
Installation fails
Installation fails
If
npm install -g flowise fails:- Try with sudo (macOS/Linux):
sudo npm install -g flowise - Or install locally without
-gflag and run withnpx flowise start - Clear npm cache:
npm cache clean --force
Get Help
Join Discord
Get help from the community and Flowise team.
GitHub Discussions
Ask questions and share your workflows.

