Bolna对话语音AI代理 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.8 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
Bolna对话语音AI代理 是一款基于 Python 开发的开源工具,专注于 语音AI、对话代理、工作流 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Bolna对话语音AI代理 是一款基于 Python 开发的开源工具,专注于 语音AI、对话代理、工作流 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install bolna
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install bolna
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/bolna-ai/bolna
cd bolna
pip install -e .
# 验证安装
python -c "import bolna; print('安装成功')"
# 命令行使用
bolna --help
# 基本用法
bolna input_file -o output_file
# Python 代码中调用
import bolna
# 示例
result = bolna.process("input")
print(result)
# bolna 配置文件示例(config.yml) app: name: "bolna" debug: false log_level: "INFO" # 运行时指定配置文件 bolna --config config.yml # 或通过环境变量配置 export BOLNA_API_KEY="your-key" export BOLNA_OUTPUT_DIR="./output"
End-to-end open-source voice agents platform: Quickly build voice firsts conversational assistants through a json.
[!NOTE] We are actively looking for maintainers.
Bolna is the end-to-end open source production ready framework for quickly building LLM based voice driven conversational applications.
A basic local setup includes usage of Twilio or Plivo for telephony. We have dockerized the setup in local_setup/. One will need to populate an environment .env file from .env.sample.
The setup consists of four containers:
1. Telephony web server: Choosing Twilio: for initiating the calls one will need to set up a Twilio account Choosing Plivo: for initiating the calls one will need to set up a Plivo account 2. Bolna server: for creating and handling agents 3. ngrok: for tunneling. One will need to add the authtoken to ngrok-config.yml 4. redis: for persisting agents & prompt data
Alternatively, you can manually build and run the services:
1. Make sure you have Docker with Docker Compose V2 installed 2. Enable BuildKit for faster builds:
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
3. Build the images: docker compose build
4. Run the services: docker compose up -d
To run specific services only:
```bash docker compose up -d bolna-app twilio-app
The easiest way to get started is to use the provided script:
cd local_setup
chmod +x start.sh
./start.sh
This script will check for Docker dependencies, build all services with BuildKit enabled, and start them in detached mode.
You may try out different agents from example.bolna.dev.
You can also build and run an agent directly in Python without the local telephony setup.
Example script: examples/simple_assistant.py
import asyncio
from bolna.assistant import Assistant
from bolna.models import (
Transcriber,
Synthesizer,
ElevenLabsConfig,
LlmAgent,
SimpleLlmAgent,
)
async def main():
assistant = Assistant(name="demo_agent")
# Configure audio input (ASR)
transcriber = Transcriber(provider="deepgram", model="nova-2", stream=True, language="en")
# Configure LLM
llm_agent = LlmAgent(
agent_type="simple_llm_agent",
agent_flow_type="streaming",
llm_config=SimpleLlmAgent(
provider="openai",
model="gpt-4o-mini",
temperature=0.3,
),
)
# Configure audio output (TTS)
synthesizer = Synthesizer(
provider="elevenlabs",
provider_config=ElevenLabsConfig(
voice="George", voice_id="JBFqnCBsd6RMkjVDRZzb", model="eleven_turbo_v2_5"
),
stream=True,
audio_format="wav",
)
# Build a single coherent pipeline: transcriber -> llm -> synthesizer
assistant.add_task(
task_type="conversation",
llm_agent=llm_agent,
transcriber=transcriber,
synthesizer=synthesizer,
enable_textual_input=False,
)
# Stream results
async for chunk in assistant.execute():
print(chunk)
if __name__ == "__main__":
asyncio.run(main())
How to run:
export OPENAI_API_KEY=...
export DEEPGRAM_AUTH_TOKEN=...
export ELEVENLABS_API_KEY=...
python examples/simple_assistant.py
This demonstrates orchestration and streaming output. For telephony, use the services in local_setup/.
Note: For REST-based usage (Agent CRUD over HTTP), see API.md in the repo root.
Expected output shape: assistant.execute() is an async generator yielding per-task result dicts (event-like chunks). The exact keys depend on configured tools/providers; treat it as a stream and process incrementally.
If you want a text-only flow (no transcriber/synthesizer), you can enable a text-only pipeline:
Example script: examples/text_only_assistant.py
import asyncio
from bolna.assistant import Assistant
from bolna.models import LlmAgent, SimpleLlmAgent
async def main():
assistant = Assistant(name="text_only_agent")
llm_agent = LlmAgent(
agent_type="simple_llm_agent",
agent_flow_type="streaming",
llm_config=SimpleLlmAgent(
provider="openai",
model="gpt-4o-mini",
temperature=0.2,
),
)
# No transcriber/synthesizer; enable a text-only pipeline
assistant.add_task(
task_type="conversation",
llm_agent=llm_agent,
enable_textual_input=True,
)
async for chunk in assistant.execute():
print(chunk)
if __name__ == "__main__":
asyncio.run(main())
How to run (text-only):
export OPENAI_API_KEY=...
python examples/text_only_assistant.py
Expected output shape: assistant.execute() yields streaming dicts per task step; fields vary by configuration. Handle chunk-by-chunk.
https://github.com/bolna-ai/bolna/assets/1313096/2237f64f-1c5b-4723-b7e7-d11466e9b226
We have in the past tried to maintain both the open source and the hosted solution (via APIs and a UI dashboard).
We have fluctuated b/w maintaining this repository purely from a point of time crunch and not interest.
Currently, we are continuing to maintain it for the community and improving the adoption of Voice AI.
Though the repository is completely open source, you can connect with us if interested in managed hosted offerings or more customized solutions. <a href="https://calendly.com/bolna/30min"><img alt="Schedule a meeting" src="https://cdn.cookielaw.org/logos/122ecfc3-4694-42f1-863f-2db42d1b1e68/0bcbbcf4-9b83-4684-ba59-bc913c0d5905/c21bea90-f4f1-43d1-8118-8938bbb27a9d/logo.png" /></a>
Bolna helps you create AI Voice Agents which can be instructed to do tasks beginning with:
Bolna是专业的语音AI代理框架,架构清晰、功能完整。651星热度适中,Python生态友好,适合快速原型开发和定制化部署。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,Bolna对话语音AI代理 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | bolna |
| 原始描述 | 开源AI工作流:Conversational voice AI agents。⭐651 · Python |
| Topics | 语音AI对话代理工作流开源框架Python |
| GitHub | https://github.com/bolna-ai/bolna |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-25 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。