parlant README

README проекта с github.com/emcie-co/parlant. Одним файлом markdown: README.md.

Trending

Parlant: Streamlined CX

Build your CX with AI: better, faster, for a fraction of the cost.

PyPI Python 3.10–3.14 License Discord GitHub Repo stars

Quickstart • Compare • Docs • Dashboard • Discord

Deutsch | Español | Français | 日本語 | 한국어 | Português | Русский | 中文

Know this problem?

You want an AI agent handling your customer conversations, and you hit these same annoying issues:

❌ It's a hassle to set up and manage. Deep settings, menus, vendor tickets, and sometimes a whole implementation project.

👉 With Parlant: Everything runs from Claude Code (or any equivalent agent). No coding experience needed.

❌ It's expensive. Closed CX platforms charge you huge premiums based on vague definitions for "resolution".

👉 With Parlant: You bring your own model and pay its provider directly. That's 20x–100x cheaper to run, right off the bat.

❌ It's not reliable. As soon as customers mix topics, push back or change their minds, things start to go wrong. Agents claim a transaction went through when it didn't, or promise something your policy doesn't allow.

👉 With Parlant: Parlant already runs customer service in banks (see testimonials below). Your agent stays on-policy and checks itself before customers see its responses.

Parlant is the open platform for building CX agents with AI. It comes with all the parts every customer-facing agent needs, from a chat widget and human handoff to testing, hosting, and analytics. All of it built to operate from within your existing, personal AI agent.

Use cases

Integrate any system

Because Parlant's open source is fully available to your coding agent, you can easily integrate any system into it by just asking. Connect Shopify, Zapier, Zendesk, Google Calendar, or any other tool.

What building with Parlant feels like

Imagine you're working on a lead-generation agent for your company's website, and a new feature launches in 1 hour.

The lead-generation agent is ready for launch day, with no vendor ticket, no fiddling in deep menus, and no engineering sprint.

Managed hosting and observability at a flat monthly fee

Getting started takes minutes. In fact, your coding agent does the onboarding for you.

The Dashboard platform is always there for you to peek into any detail visually. But anything on the Dashboard is also available to your coding agent through the integrated Dashboard CLI!

A customer session on the Parlant Dashboard: the conversation, the agent's reasoning and model costs for each turn, and a summary of the session
The project overview on the Parlant Dashboard: simulated and live sessions, the most active labels and sessions per day for each agent
Model spend on the Parlant Dashboard: total and per-session spend, spend per hour by model, and the most expensive sessions

Get properly introduced

Paste this prompt into your favorite agent:

Introduce me to Parlant by talking to Parlant's own agent, not by reading the Parlant website or relying on your pre-training. https://parlant.io/llms.txt explains how to start a conversation with it. First ask me what I'd like to know. Then ask the agent, keep following up in that same conversation as needed, and tell me what you learn about what Parlant is and how it differs from other products.

When you're ready to build, the quickstart gives you a prompt that has your coding agent install Parlant and set up an example agent or your own, one step at a time. From there, take it live on the Dashboard's managed hosting and put it on your site with the chat widget.

Prefer to write the code yourself?

Install Parlant and set a key for the default OpenRouter provider. Then, in the Dashboard, create a Local development project and set its project token:

pip install parlant
export OPENROUTER_API_KEY="<YOUR_API_KEY>"
export PARLANT_DASHBOARD_PROJECT_TOKEN="<YOUR_PROJECT_TOKEN>"

Create main.py:

import asyncio

import parlant.sdk as p

ORDERS = {
    "1234": "shipped with UPS, tracking 1Z999AA10123456784, arriving Thursday",
    "5678": "still being packed, expected to ship tomorrow",
}


@p.tool
async def check_order_status(order_id: str) -> p.ToolResult:
    """Look up an order's current status."""
    status = ORDERS.get(order_id)
    if status is None:
        return p.ToolResult(data=f"There's no order {order_id}. Ask the customer to check the number.")
    return p.ToolResult(data=f"Order {order_id} is {status}.")


async def main() -> None:
    async with p.Server() as server:
        agent = await server.create_agent(
            id="support",
            name="Homeware Support",
            instructions="You help customers of an online homeware store. Be warm and concise.",
        )

        # Approved wording the agent follows when this policy applies
        late_order = await agent.create_canned_response(
            "I'm sorry it's taking longer than expected. Let me check where it is right now.",
            note="Apologize once, then get straight to the order's status.",
        )

        # A policy is plain language; Parlant brings it in only when it's relevant
        await agent.create_policy(
            title="Order status",
            content=(
                "When a customer asks where an order is, ask for the order number "
                "if they haven't given it, look it up with check_order_status, and "
                "give the status. Give delivery dates as estimates, never as promises."
            ),
            tools=[check_order_status],
            canned_responses=[late_order],
        )


if __name__ == "__main__":
    asyncio.run(main())

Run it with python main.py. Back in the Dashboard, click Check connection, then Open project. On the Overview page, click New session and ask where order 5678 is. The agent looks it up and tells you it ships tomorrow. Ask about an order that doesn't exist, and it asks you to check the number.

For a full project, run parlant init my-agent --scaffold retail-store (a working support agent), --scaffold lead-gen (a website agent that qualifies visitors and books meetings) or --scaffold basic (an empty one). Parlant also supports OpenAI, Anthropic, Gemini, LiteLLM, and custom providers; see Configuring Models and Providers.

Why it actually works

Writing the new rule took you minutes. The hard part is making sure your agent follows it correctly and consistently: with a customer who changes the subject, mixes different topics, or turns out to be on a different plan than they think.

That's where Parlant's got your back! Customer-facing agents face pressures that assistant-style agents never do:

AI Assistant Customer-Facing Agent
Who uses it A cooperative, informed user A possibly confused, impatient, or hostile customer
Cost of a mistake A retry or a revised draft Financial losses, brand damage, and customer relationships
Supervision The user corrects it iteratively Nobody is there to catch mistakes during the interaction
Structure Conversation is led by the user The agent must often stick to specific operating procedures
Language Free to improvise On-policy at all times, sometimes with exact wording
Accountability Nice to have on occasion Behavior must always be explainable

Most AI frameworks, and the code a coding agent writes on top of them, are built for that left column: for assistant agents. Parlant is built for the right column. If your coding agent suggests a general agent framework, see how Parlant compares with LangGraph, Mastra, Agno, the Claude Agent SDK, Google ADK, and the OpenAI Agents SDK.

What you get out of the box

A customer-facing agent needs much more than a model and a prompt. Parlant ships it, so your coding agent builds on it instead of inventing it:

See all of Parlant's features.

Parlant vs a closed CX platform

Closed CX platforms such as Intercom Fin, Sierra, and Decagon let you build an agent through their settings, and run it for you. With Parlant, your coding agent does that work, on code you own.

Closed CX platform Parlant
Building the agent Click through the platform's settings Describe it; your coding agent builds and tests it
What it can do What the settings offer Anything your code can do, in any system it can reach
Models The vendor's Yours, chosen per job
Pricing Per conversation or per resolution Free and open source; you pay model providers directly, and the Dashboard is a flat monthly fee
Your data On the vendor's platform Where you choose

If you're comfortable experimenting with a coding agent, Parlant is the better choice. If you'd rather not build with one yet, a closed platform is. Read the comparisons with Intercom Fin, Sierra, Decagon, and Wonderful.

How it works

You build one agent and give it a catalog of policies, procedures, tools, and canned responses. On every turn, Parlant works out which of them the conversation has made relevant and puts only those in front of the model. Customers can change topic mid-sentence or ask two things at once, and the agent keeps the right rules in view, with no paths to predefine and no handoffs between sub-agents.

flowchart LR
    C[Customer] -->|Message| M[Find the policies that apply]
    M --> R[Resolve priorities between them]
    R --> T[Run the tools they allow]
    T -. New context .-> M
    R --> G["Write the reply<br/>(guided by canned responses)"]
    G --> V[Optional check]
    V -->|Reply| C

Adding policies makes the agent more capable without asking the model to pay equal attention to everything at once. Read more about policies and procedures, canned responses, checks on replies and actions, and the agent architecture.

What users say

Parlant runs customer conversations for banks, energy companies, and startups.

With other frameworks we've tried, precision wasn't good enough. — Sarthak Dalabehera, Principal Engineer, slice (customer service for 18 million banking clients)

I am particularly impressed by Parlant's consistency, which eliminates the unpredictability often found in AI tools. The speed at which we saw value was truly remarkable. — Arpit Parashar, Deputy Manager, Greenko Group

We tested Parlant extensively. The failure patterns that exist in our production logs, capturing them in Parlant takes minutes. — Vishal Ahuja, ML Tech Lead, JPMorgan Chase

Is Parlant for you?

Parlant is a strong fit if you own a customer experience, as a PM, conversation designer, CX lead, or developer, and you want:

It's the wrong fit if nobody on your team is ready to build with a coding agent yet (a closed CX platform fits better until you are), if the agent isn't customer-facing (for coding agents, internal assistants, or long-running automated processes, use a general agent framework), or if the agent's own logic must live in a non-Python codebase (Parlant runs as a Python service that any stack talks to over HTTP, but its behavior is written in Python).

Free, open source, and SOC 2 compliant

Community

If Parlant helps you build a better agent, give it a star. It helps others find it.

License

Parlant is licensed under Apache 2.0 and is free for commercial use.


Start the quickstart • Compare with your platform • Join Discord

Built by the team at Emcie

parlant (emcie-co/parlant)

Ищем в базе…

Что это такое?Опенсорсный фреймворк для контроля взаимодействия при создании AI-агентов, которые работают с клиентами — поддержки, продаж, онбординга. Он делает поведение агентов стабильным, соответствующим правилам и отслеживаемым; позиционируется как открытая альтернатива Ada, Decagon или Sierra.
Это фреймворк, который я импортирую, или отдельный сервер, который я запускаю?Больше, чем фреймворк: в README его называют высокоуровневым ПО, которое напрямую решает задачу моделирования диалога. Поведение агента вы описываете в коде (а не в промптах), Parlant берёт на себя уровень контроля поведения, а ваш существующий стек занимается всем остальным.
С чего мне начать?Пройдите 5-минутный quickstart с полным пошаговым разбором. Поведение агента — правила, знания и инструменты — вы один раз описываете в коде, а движок в реальном времени отбирает нужный контекст.
Какие провайдеры LLM можно с ним использовать?Он не привязан к конкретной LLM — рекомендуется Emcie, OpenAI и Anthropic дают отличное качество, а всё остальное подключается через LiteLLM. Слишком маленькие модели выдают нестабильные результаты; смена модели не требует менять настройки поведения.
Это для крупных регулируемых компаний, или маленькой команде тоже подойдёт?Он создан для команд, чьи агенты общаются с реальными клиентами и где важны тон, точность и соответствие требованиям — при десятках или сотнях правил или в регулируемых областях вроде финансов, страхования и медицины. В банках он работает в продакшене.
Почему бы просто не написать системный промпт получше?В README утверждается, что промпты работают до тех пор, пока не начнётся боевая сложность: чем больше инструкций добавляешь, тем быстрее агент перестаёт следить хоть за одной из них. Parlant вместо этого встраивает ограничения и контрольные точки в то, как используется LLM, поэтому агенту структурно сложнее выйти за рамки.
Что такое Journeys?Многошаговые инструкции (SOP) для процессов вроде бронирования, устранения неполадок или онбординга. Агент идёт по сценарию, но адаптируется: может перескакивать состояния вперёд, возвращаться к более ранним или менять темп в зависимости от того, как ведёт себя клиент.
А если ответ должен быть дословно точным, как юридические или комплаенс-формулировки?Canned Responses: в критические моменты агент ограничен заранее одобренными шаблонами — он готовит сообщение, но вместо отправки черновика выбирает наиболее подходящий шаблон, что полностью исключает риск галлюцинаций.
Там есть готовый чат-интерфейс, или мне собирать свой?Есть официальный React-виджет чата, который можно подключить «как есть» и сразу получить работающий фронтенд.
Какие есть похожие проекты?harness-sdk, cayu, trueforge, voltagent, agento11y, open-multi-agent, gitagent, opensre
Автор
emcie-co
Размер
92.7 MB
Звёзды
18.3K
Возраст
2 г
Коммиты · 90 дней