explaingit

emcie-co/parlant

📈 Trending18,079PythonAudience · pm founderComplexity · 3/5ActiveLicenseSetup · easy

TLDR

Python framework for building AI chat agents that reliably follow business rules by matching guidelines to messages and enforcing them before generating responses.

Mindmap

mindmap
  root((Parlant))
    What it does
      Rule-based AI agents
      Enforce guidelines
      Prevent model drift
    Key features
      Condition-action pairs
      External tool hooks
      Response templates
      Multi-step journeys
    Use cases
      Customer support bots
      Compliance-heavy chats
      Brand-consistent agents
    Tech stack
      Python framework
      Built-in testing
      Local playground
    Audience
      AI product teams
      Customer service leads

Things people build with this

USE CASE 1

Build customer support chatbots that follow company policies without drifting from instructions.

USE CASE 2

Create multi-step customer journeys (like refund flows) with guaranteed rule enforcement.

USE CASE 3

Deploy AI agents that use live APIs and databases to check order status or inventory before responding.

USE CASE 4

Test and validate agent behavior against business rules before going live.

Tech stack

Pythonpip

Getting it running

Difficulty · easy Time to first run · 5min
Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.

In plain English

Parlant is a Python framework for building customer-facing AI chat agents that reliably follow business rules. The core problem it addresses is that AI language models, when given a long list of instructions in a system prompt, often ignore some of them or behave inconsistently across conversations. Parlant takes a different approach: instead of hoping the model reads the prompt carefully, it introduces a structured layer that matches relevant rules to each incoming message and enforces them before a response is generated. You define agent behavior through guidelines, each guideline pairs a condition (for example, "customer asks about refunds") with an action ("check order status first"). You can also attach external tools such as APIs or database lookups to specific interaction events, define scripted journeys for multi-step flows, teach domain-specific vocabulary, and use pre-written response templates for situations where you need exact wording rather than generated text. Parlant includes a built-in testing framework for validating that your agent behaves as intended, and provides explainability features that show which guidelines were matched and why. The framework is installable via pip and comes with a local playground for interactive testing.

Copy-paste prompts

Prompt 1
I need to build a customer support chatbot that always checks order status before discussing refunds. How do I set up a guideline in Parlant that enforces this?
Prompt 2
Show me how to attach an external API call to a specific event in Parlant so the agent looks up real data before responding.
Prompt 3
How do I write a response template in Parlant for situations where I need exact wording instead of AI-generated text?
Prompt 4
I want to test my Parlant agent to make sure it follows all my business rules. What does the built-in testing framework do?
Prompt 5
Can you walk me through creating a multi-step customer journey in Parlant, like a refund request flow with multiple decision points?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.