Full-Code · Conversational Botsactive

Parlant

Type: full-code · Vendor: Emcie (Parlant) · Language: Python · License: Apache-2.0 · Status: active · Status in practice: emerging · First released: 2024-12-01

Links: homepage docs repo

Parlant is a framework for building conversational agents whose behaviour is controlled by condition-action guidelines that the engine matches and applies through structured Attentive Reasoning Queries.

Description. Parlant is a Python framework for building customer-facing conversational agents. Behaviour is defined as granular condition-action guidelines rather than free-form system-prompt instructions, and an engine pipeline matches only the relevant guidelines for the current conversational state, calls associated tools, and composes the message. The message composer uses Attentive Reasoning Queries, structured reasoning blueprints, to keep the agent adhering to its matched guidelines. It is released under Apache 2.0.

Agent loop shape. On each turn, the engine runs a pipeline: a GuidelineMatcher filters the full set of condition-action guidelines down to those relevant for the current conversational state, a ToolCaller executes the tools associated with matched guidelines, and a MessageComposer generates the response using the matched guidelines, tool results, and history under ARQ-based structured reasoning. The pipeline iterates until reaching a stable state.

Primary use cases

  • building controlled customer-facing chat agents
  • enforcing behavioral guidelines in conversation
  • tool-using conversational workflows
  • explainable agent decisions

Key concepts

  • Guideline deterministic-control-flow-not-prompt (docs)A condition-action rule (for example, condition='customer expresses interest in a high-risk product', action='provide risk disclosure') that the engine matches only when its condition holds for the current turn, so behaviour is specified as discrete rules instead of one system prompt.
  • Journey (docs)A multi-turn SOP expressed as a state diagram the agent follows when guiding a customer through a process like a booking or a return; it is adaptive, so the agent may skip ahead, revisit states, or change pace based on how the customer responds.
  • Attentive Reasoning Queries (ARQs) attentive-reasoning-queries (docs)Structured reasoning blueprints built into prompts that walk the model through targeted queries at the steps where guideline adherence tends to slip, used as distinct sets per engine component.
  • Canned response (docs)A pre-approved response template the engine can emit at high-stakes moments, capping failure severity by giving precise wording where it matters instead of letting the model phrase the reply freely.

Patterns this full-code implements —

Neighbourhood

Click any neighbour to follow the lineage. Scroll to zoom, drag to pan.