Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

LOCAL DRAFT PREVIEW. Not published. Pages tagged Draft are new, pages tagged Updated have additions. Yellow 'To confirm' boxes are internal questions.

Fini home pagelight logodark logo
    Documentation
    Use cases
    Trust & pricing
    API reference

    API Setup

    • API overview
    • API contract
    • Static IP Addresses
    • Database and Warehouse Connections
    • MCP Connections

    LLM Access

    • Coding agents
    • Claude Plugin

    Agents

    • Overview
    • POST
      Create agent
    • List agents
    • DEL
      Delete agent

    Analytics

    • Overview
    • Get agent analytics
    • Get agent analytics section

    Prompts

    • Overview
    • Get prompts
    • Get prompt history
    • Get prompt version
    • Update prompts
    • POST
      Create prompt draft version
    • Get prompt draft version
    • Publish prompt draft version
    • DEL
      Delete prompt draft version

    Actions

    • Overview
    • List actions
    • Get action
    • POST
      Create action
    • Update action
    • DEL
      Delete action
    • Test action
    • List agent assignments
    • POST
      Assign to agents

    Attributes

    • Overview
    • List attributes
    • Get attribute
    • POST
      Create attribute
    • Update attribute
    • DEL
      Delete attribute
    • Test attribute
    • List agent assignments
    • POST
      Assign to agents

    External API calls

    • Overview
    • List external API calls
    • Get external API call
    • POST
      Create external API call
    • Update external API call
    • DEL
      Delete external API call
    • Test external API call

    Intent Rules

    • Overview
    • List intent rules
    • Get intent rule
    • Get intent-rule fields context
    • POST
      Generate intent-rule draft with AI
    • POST
      Create intent rule
    • Update intent rule
    • List intent-rule versions
    • Get intent-rule version
    • Publish intent-rule draft
    • Restore intent-rule version as draft
    • DEL
      Delete intent-rule draft version
    • Get rule version test paths
    • Preview rule test paths
    • Run rule version test path
    • Run rule test path from config
    • DEL
      Delete intent rule

    Guardrails

    • Overview
    • List guardrail check types
    • List guardrail policies
    • Get guardrail policy
    • POST
      Create guardrail policy
    • Update guardrail policy
    • DEL
      Delete guardrail policy
    • List guardrail runs
    • Get guardrail hits

    Business Rules

    • Overview
    • List Business Rules
    • Get Business Rule
    • Get Business Rule fields context
    • List default Business Rules
    • POST
      Create Business Rule
    • POST
      Duplicate Business Rule
    • POST
      Evaluate Business Rule
    • Get Business Rule test fields
    • Preview Business Rule test fields
    • Update Business Rule
    • DEL
      Delete Business Rule

    Reply Rules

    • Overview
    • Get reply rules
    • Get reply rule fields context
    • Update reply rule

    Tag groups

    • Overview
    • List tag groups
    • Get tag group
    • POST
      Create tag group
    • Update tag group
    • DEL
      Delete tag group

    Tags

    • Overview
    • Get tag
    • List tags in group
    • List tags across groups
    • POST
      Create tag
    • Update tag
    • DEL
      Delete tag

    Conversations

    • Overview
    • List conversations
    • Get conversation
    • Get event metadata
    • POST
      Generate Answer
    • Send conversation feedback
    • Mark feedback resolved
    • POST
      Add feedback note
    • POST
      Evaluate conversation rule
    • DEL
      Delete conversation
    • DEL
      Bulk delete conversations

    Refine with AI

    • Overview
    • POST
      Create Refine with AI iteration
    • Get active Refine with AI session
    • Get Refine with AI session

    Replays

    • Replays
    • POST
      Create replay
    • List replays
    • Get replay
    • Get replay events

    Test Sets

    • Overview
    • List test sets
    • POST
      Create a test set
    • Get fields context
    • Get a test set
    • Update a test set
    • DEL
      Delete a test set
    • POST
      Add criteria
    • Update a criterion
    • DEL
      Delete a criterion
    • List runs
    • Start a run
    • Get a run

    Knowledge

    Updates

    • Changelog
      Draft
    Reply Rules

    Overview

    > ## Documentation Index
    > Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
    > Use this file to discover all available pages before exploring further.
    
    # Overview
    
    > Read the conditions that decide whether an agent sends a direct reply, adds an internal comment, or sends no reply.
    
    Reply rules are the API form of **Automations > Reply Rules** in the Fini dashboard. They decide how an agent responds when workspace-specific conditions match.
    
    Use the configured rules endpoint to audit active behavior, use fields context
    to resolve condition paths into customer-friendly labels and available values,
    and use the update endpoint to change one reply slot.
    
    ## Endpoints
    
    <CardGroup cols={2}>
      <Card title="Get reply rules" icon="list-check" href="/en/api-reference/get-reply-rules">
        Read the no reply, internal comment, and direct reply rule slots.
      </Card>
    
      <Card title="Get fields context" icon="table-list" href="/en/api-reference/get-reply-rule-fields-context">
        Read the fields, operators, sources, attributes, and tags available to conditions.
      </Card>
    
      <Card title="Update reply rule" icon="pen-to-square" href="/en/api-reference/update-reply-rule">
        Create or update one no reply, internal comment, or direct reply slot.
      </Card>
    </CardGroup>
    
    ## Authentication
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...`
      Read routes need `read` scope. The update route needs `write` scope.
    </ParamField>
    
    The workspace is derived from the API key. These endpoints do not accept a workspace ID.
    
    ## Reply rule collection
    
    The collection always contains three slots. A slot without a saved rule returns `conditions: []` and `isEnabled: false`.
    
    <ResponseField name="noReply" type="ReplyRule">
      Conditions under which the agent sends no customer-facing reply.
    </ResponseField>
    
    <ResponseField name="internalComment" type="ReplyRule">
      Conditions under which the agent adds a note visible only to the support team.
    </ResponseField>
    
    <ResponseField name="directReply" type="ReplyRule">
      Conditions under which the agent sends a reply directly to the customer.
    </ResponseField>
    
    ## ReplyRule object
    
    <ResponseField name="replyType" type="string">
      `NO_REPLY`, `INTERNAL_COMMENT`, or `DIRECT_REPLY`.
    </ResponseField>
    
    <ResponseField name="conditions" type="Condition[]">
      Condition groups evaluated for this behavior. An empty array means no rule is configured.
    </ResponseField>
    
    <ResponseField name="isEnabled" type="boolean">
      Whether Fini evaluates this rule.
    </ResponseField>
    
    <ResponseField name="id" type="string | undefined">
      Saved rule ID. Omitted for a default empty slot.
    </ResponseField>
    
    <ResponseField name="companyId" type="string | undefined">
      Workspace ID recorded on a saved rule. Omitted for a default empty slot.
    </ResponseField>
    
    <ResponseField name="createdAt" type="string | undefined">
      ISO 8601 creation timestamp. Omitted for a default empty slot.
    </ResponseField>
    
    <ResponseField name="updatedAt" type="string | undefined">
      ISO 8601 last-update timestamp. Omitted for a default empty slot.
    </ResponseField>
    
    ## Condition object
    
    <ResponseField name="scope" type="string">
      `SCALAR` for predicates against individual values, or `ARRAY` for quantified array conditions.
    </ResponseField>
    
    <ResponseField name="predicate" type="array">
      Comparisons with `left.path`, `left.dataType`, `operator`, and a `right.value` or `right.path`.
    </ResponseField>
    
    <ResponseField name="quantifier" type="string | undefined">
      `ANY`, `ALL`, or `NONE` for an array condition.
    </ResponseField>
    
    <ResponseField name="array" type="object | undefined">
      Array path and item type used by an array condition.
    </ResponseField>
    
    ## Errors
    
    <AccordionGroup>
      <Accordion title="401 Unauthorized" icon="lock">
        The API key is missing, malformed, revoked, or invalid.
      </Accordion>
    
      <Accordion title="403 Forbidden" icon="shield-halved">
        The API key does not include the `read` scope.
      </Accordion>
    
      <Accordion title="500 Internal Server Error" icon="triangle-exclamation">
        Fini failed while loading reply rules or their fields context.
      </Accordion>
    </AccordionGroup>
    
    
    ## Related topics
    
    - [Overview](/en/api-reference/tags.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Delete Business Rule
    Get reply rules
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform