Back to services

Parlant

Parlant is a production-ready LLM agent (AI agent) framework that uses "principles, not scripts" to keep model behavior predictable, controllable, and stable, helping developers quickly build truly reliable conversational bots.

View alternatives to Parlant
Contributor:
einverne
Suggest edit
完全免费
Open source
Self-hostable
Web
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Parlant: A Controllable AI Agent Framework

Key Highlights
Parlant is a production-ready LLM agent (AI agent) framework that uses "principles, not scripts" to keep model behavior predictable, controllable, and stable, helping developers quickly build truly reliable conversational bots.

Background

Traditional AI agents often rely on complex system prompts to drive model behavior. Common pain points include:

  • High randomness: in real-world scenarios, the model ignores prompts or hallucinates.
  • Hard to debug: edge cases aren't handled consistently, and every conversation is a roll of the dice.
  • Costly to scale: prompt tuning is hard to scale and lacks repeatability.

How Parlant Solves This

Parlant defines agent behavior through "natural language rules." The system automatically compiles the rules into execution strategies and guarantees that every rule is strictly followed.

  1. Create Guidelines using business semantics, with no need to write complex prompts.
  2. Condition matching triggers tool calls, in a modular and composable way.
  3. Built-in conversation analytics and explainability make monitoring and iteration easy.

Core Features

FeatureDescription
Natural language Guideline definitionsDescribe conditions and actions in human-readable language to easily manage complex business logic
Dynamic rule matchingAutomatically selects the most appropriate rules based on context, ensuring high consistency
Reliable tool integrationConnects seamlessly with external APIs, databases, and more, with unified management of call flows
Conversation analytics and iterationProvides fine-grained conversation metrics, supporting live monitoring and continuous optimization
Built-in safety and guardrailsAutomatically blocks out-of-scope or sensitive requests, reducing hallucinations and the risk of the model going off the rails
React chat widgetReady-to-use front-end plugin that can be embedded in any web app quickly
Explainability reportsTraces the source of every decision, helping teams understand and audit model behavior

Quick Start

In just three steps, you can launch a controllable agent in under a minute:

pip install parlant
import parlant.sdk as p

@p.tool
async def get_weather(context: p.ToolContext, city: str) -> p.ToolResult:
    return p.ToolResult(f"当前{city}天气:晴,25°C")

async def main():
    async with p.Server() as server:
        agent = await server.create_agent(name="WeatherBot", description="天气助手")
        await agent.create_guideline(
            condition="用户询问天气",
            action="调用 get_weather 并返回带建议的回复",
            tools=[get_weather]
        )

Once it's running, you can visit http://localhost:8800 to debug.

Versions and Community

  • Latest version: v3.0.1 (released 2025-08-16)
  • Open-source license: Apache-2.0
  • GitHub stars: 6.2k; forks: 541
  • Main languages: Python (89%), Gherkin, TypeScript

Use Cases

Parlant is designed with a focus on compliance and controllability, making it especially well suited to fields with high demands for stability and auditability, such as finance, healthcare, legal, and e-commerce.

  • Financial services: built-in risk control and compliance processes
  • Healthcare: HIPAA-level data protection
  • Legal tech: precise document review and compliance recommendations
  • E-commerce customer service: automated order inquiries and after-sales handling

Parlant turns AI agent development from "gambling on luck" into "rule-driven," safeguarding your product's path to launch.

1