> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# How I Built a Multi-Platform AI Bot with Langflow's Drag-and-Drop Workflows

> How I Built a Multi-Platform AI Bot with Langflow's Drag-and-Drop Workflows

This article is synchronized from the LangBot Blog. [Read the canonical version](https://langbot.app/en/blog/langflow-drag-and-drop-ai-bot).

Published 2025-12-05 · Author: LangBot Team

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/source/images/covers/langflow.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=c4f3664394ae9b2c3a50a62848fd95fd" alt="How I Built a Multi-Platform AI Bot with Langflow's Drag-and-Drop Workflows" width="1200" height="630" data-path="images/articles/source/images/covers/langflow.png" />

Drive chatbots across QQ, WeChat, Telegram, Discord, and more using visual workflows - no coding required.

***

[LangBot](https://github.com/langbot-app/LangBot) is an open-source instant messaging bot platform that connects AI workflow engines like Langflow, n8n, Dify, FastGPT, and Coze to platforms including WeChat, QQ, Feishu, DingTalk, Telegram, Discord, Slack, and LINE. This tutorial demonstrates how to use Langflow's visual workflows as LangBot's conversation engine.

## Why This Approach Works

* **True Multi-Platform**: One workflow powering 8+ messaging platforms simultaneously
* **Visual Orchestration**: Drag-and-drop conversation design with conditional branches, multi-turn dialogs, and external API calls
* **Flexible AI Models**: Support for OpenAI, Claude, Gemini, DeepSeek, and local models
* **Fully Open Source**: Both LangBot and Langflow are open-source projects for free deployment and customization

## Prerequisites

* Python 3.10+
* Docker (recommended for quick deployment)
* OpenAI API Key or API keys for other LLM services

## Step 1: Deploy LangBot

Launch with uvx in one command:

```bash theme={null}
uvx langbot
```

First run auto-initializes and opens your browser to [http://127.0.0.1:5300](http://127.0.0.1:5300).

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/0c8aa2c940ab-01-langbot-initial-page.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=6aaa05d3fa8c8d353be915275584abf4" alt="LangBot Initial Page" width="1870" height="880" data-path="images/articles/external/0c8aa2c940ab-01-langbot-initial-page.png" />

After registration, log in to access the dashboard:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/b93d97b5b830-04-langbot-dashboard.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=11bf816006091a79f60ef24beb2a0554" alt="LangBot Dashboard" width="1870" height="880" data-path="images/articles/external/b93d97b5b830-04-langbot-dashboard.png" />

## Step 2: Deploy Langflow

Deploy quickly with Docker:

```bash theme={null}
docker run -d --name langflow -p 7860:7860 langflowai/langflow:latest
```

Visit [http://localhost:7860](http://localhost:7860) to access Langflow:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/7e7ebfc3ba58-01-langflow-welcome.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=ad2e060fa23745c2f96eb1f0b61df8d6" alt="Langflow Welcome Page" width="1870" height="880" data-path="images/articles/external/7e7ebfc3ba58-01-langflow-welcome.png" />

## Step 3: Create a Langflow Workflow

In Langflow, select the "Basic Prompting" template to get started quickly:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/b304cebf8ce9-02-langflow-template-selection.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=082c92741bada55b8f83d9c8f577e1a1" alt="Langflow Template Selection" width="1870" height="880" data-path="images/articles/external/b304cebf8ce9-02-langflow-template-selection.png" />

This template includes four basic components:

* **Chat Input**: Receives user messages
* **Prompt**: Sets system instructions
* **Language Model**: Calls LLM to generate responses
* **Chat Output**: Returns results

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/6e24402fd4a8-03-langflow-workflow-editor.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=a5aa3b1b0f88b3ce6a6827d44aa51c2b" alt="Langflow Workflow Editor" width="1870" height="880" data-path="images/articles/external/6e24402fd4a8-03-langflow-workflow-editor.png" />

### Configure Language Model

Click the Language Model component and configure:

1. **Model Provider**: Select OpenAI (or other compatible providers like SiliconFlow, New API)
2. **Model Name**: Select gpt-4o-mini or deepseek-chat
3. **OpenAI API Key**: Enter your API Key

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/bcd91ef5e4b3-14-langflow-openai-api-key-configured.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=105a6c54120eb3c32bd885b12b6cfeb4" alt="Langflow OpenAI API Key Configured" width="1870" height="880" data-path="images/articles/external/bcd91ef5e4b3-14-langflow-openai-api-key-configured.png" />

> Tip: You can use OpenAI-compatible API services like SiliconFlow or New API by simply modifying the Base URL.

Save the workflow after configuration.

## Step 4: Get Langflow API Information

### Generate API Key

In Langflow's upper right: Settings → API Keys, navigate to the API Keys page:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/21fc47358066-05-langflow-api-keys-page.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=8bbf318065461e024fb544bd31b41008" alt="Langflow API Keys Page" width="1870" height="880" data-path="images/articles/external/21fc47358066-05-langflow-api-keys-page.png" />

Click Create New Key:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/8f04c7b00759-06-langflow-create-api-key-dialog.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=447c8494950c459d2ccbd2459641beb1" alt="Langflow Create API Key Dialog" width="1870" height="880" data-path="images/articles/external/8f04c7b00759-06-langflow-create-api-key-dialog.png" />

Generate and save the API Key:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/e5a019491ef8-07-langflow-api-key-generated.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=4814a4e12aed01caf07cdfe6f68463f2" alt="Langflow API Key Generated" width="1870" height="880" data-path="images/articles/external/e5a019491ef8-07-langflow-api-key-generated.png" />

Format: `sk-xxxxxxxxxxxxxxxxxxxxxxxx`

### Get Flow ID

Extract from the flow editor's URL:

```
http://localhost:7860/flow/{flow-id}
```

Record this `flow-id`.

## Step 5: Configure Langflow in LangBot

Return to LangBot dashboard and go to **Pipelines** page.

Click ChatPipeline to edit, in the AI tab:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/3c7d6bc96738-08-langbot-pipeline-ai-tab.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=c288ba4d73b7065906b9a2cda3817ab5" alt="LangBot Pipeline AI Tab" width="1870" height="880" data-path="images/articles/external/3c7d6bc96738-08-langbot-pipeline-ai-tab.png" />

Configure **Runner**, select **Langflow API**:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/ef9bbef78165-09-langbot-runner-dropdown.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=5be812ef76c22be2a816be31ea2a2079" alt="LangBot Runner Dropdown" width="1870" height="880" data-path="images/articles/external/ef9bbef78165-09-langbot-runner-dropdown.png" />

Fill in the Langflow configuration:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/82d5e2ffb9a0-10-langbot-langflow-config-form.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=1db54c98e9a25c4f3d79f6d1f1f7bbaf" alt="LangBot Langflow Config Form" width="1870" height="880" data-path="images/articles/external/82d5e2ffb9a0-10-langbot-langflow-config-form.png" />

Configuration items:

* **Base URL**: `http://localhost:7860` (local) or `http://langflow:7860` (Docker network)
* **API Key**: The API Key generated in Langflow
* **Flow ID**: The Flow ID recorded earlier

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/2fb54ce0f7a2-11-langbot-langflow-config-filled.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=1e173aab7d7839663415ede49544930a" alt="LangBot Langflow Config Filled" width="1870" height="880" data-path="images/articles/external/2fb54ce0f7a2-11-langbot-langflow-config-filled.png" />

> Docker Tip: If both services run in containers, ensure they're on the same network and use the container name for Base URL.

Click **Save** to save the configuration.

## Step 6: Test the Conversation

Click **Debug Chat** on the Pipelines page to open the debug chat interface:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/b36d6dea3702-12-langbot-debug-chat-interface.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=d4672b5d7c76c556b0ce000681a01ffe" alt="LangBot Debug Chat Interface" width="1870" height="880" data-path="images/articles/external/b36d6dea3702-12-langbot-debug-chat-interface.png" />

Enter a test message like "Hello" and view the AI response:

<img src="https://mintcdn.com/langbot/NbRS7zTwu8_8-9J1/images/articles/external/3d7fa393f210-13-langbot-chat-with-response.png?fit=max&auto=format&n=NbRS7zTwu8_8-9J1&q=85&s=0dbdafe36489477226811f43f9410053" alt="LangBot Chat Test Success" width="1870" height="880" data-path="images/articles/external/3d7fa393f210-13-langbot-chat-with-response.png" />

## How It Works

1. User sends a message on a messaging platform
2. LangBot receives and passes it to the Pipeline
3. Pipeline calls Langflow API
4. Langflow executes the workflow: receives input → adds prompt → calls LLM → returns result
5. LangBot sends the response back to the user

## Common Issues

**Cannot connect to Langflow?**

Check Base URL. For Docker deployment, ensure containers are on the same network:

```bash theme={null}
docker network create langbot_network
docker network connect langbot_network langflow
docker network connect langbot_network langbot
```

Use container name: `http://langflow:7860`

**API call fails?**

* Confirm API Key and Flow ID are correct
* Verify the Language Model in Langflow has a valid LLM API Key configured

## Advanced Use Cases

Langflow's power lies in visually orchestrating complex AI workflows:

* **Multi-Turn Memory**: Add Memory components for contextual understanding
* **Conditional Branches**: Execute different logic based on user input
* **External API Integration**: Connect databases, search engines, third-party services
* **Multi-Agent Collaboration**: Multiple LLM models working together
* **RAG Applications**: Integrate vector databases for knowledge base Q\&A

All achievable through drag-and-drop without writing code.

## Summary

With LangBot + Langflow, you can rapidly build powerful multi-platform AI chatbots. Langflow provides visual workflow orchestration, LangBot handles messaging platform integration - together they create a complete loop from workflow design to multi-platform deployment.

This approach is ideal for:

* Scenarios requiring the same AI capabilities across multiple platforms
* Teams wanting rapid iteration and testing of different conversation flows
* Developers wanting to build complex AI applications without deep coding

## Related Resources

* [LangBot Official Site](https://langbot.app) | [Documentation](https://docs.langbot.app) | [GitHub](https://github.com/langbot-app/LangBot)
* [Langflow Official Site](https://www.langflow.org) | [Documentation](https://docs.langflow.org) | [GitHub](https://github.com/langflow-ai/langflow)

***

*This article is based on the latest version of LangBot. LangBot supports integration with Dify, n8n, FastGPT, Coze, and other AI platforms - choose the workflow engine that best fits your needs.*
