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
    Intent Rules

    Run rule test path from config

    > ## 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.
    
    # Run rule test path from config
    
    > Run one test path against an unsaved Rulebook flow configuration.
    
    Runs a simulated Rulebook evaluation directly from a `flowConfig` payload. Use
    this for draft builders, preview tools, or CI checks that need to test an
    unsaved rule tree.
    
    ## Headers
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...`
      The key needs `read` scope.
    </ParamField>
    
    <ParamField header="Content-Type" type="string" required>
      `application/json`
    </ParamField>
    
    ## Body parameters
    
    <ParamField body="flowConfig" type="object" required>
      Rulebook flow configuration to run.
    </ParamField>
    
    <ParamField body="inputContext" type="object">
      Synthetic input fields for the rule evaluation.
    </ParamField>
    
    <ParamField body="runtimeContext" type="object">
      Synthetic runtime fields such as provider, channel, or agent context.
    </ParamField>
    
    <ParamField body="pathId" type="string">
      Generated path ID being run.
    </ParamField>
    
    <ParamField body="expectedTerminalNodeId" type="string">
      Node ID the simulation should end on.
    </ParamField>
    
    <ParamField body="interactionHistory" type="array">
      Optional simulated conversation history. Each item can include `role`, `type`,
      `content`, `event_id`, and `metadata.content`.
    </ParamField>
    
    <ParamField body="mockTextExtraction" type="boolean">
      Whether to mock LLM extraction nodes during simulation.
    </ParamField>
    
    ## Response
    
    Returns a rule test path run result.
    
    <RequestExample>
      ~~~bash cURL theme={null}
      curl --request POST \
        --url 'https://api-prod.usefini.com/v2/hc-rules/test-paths/config/run/public' \
        --header 'Authorization: Bearer fini_your_api_key' \
        --header 'Content-Type: application/json' \
        --data '{
        "flowConfig": {
          "root": "root",
          "nodes": {
            "root": {
              "id": "root",
              "name": "Refund workflow",
              "type": "SEQUENCE",
              "children": ["reply_escalate"]
            },
            "reply_escalate": {
              "id": "reply_escalate",
              "name": "Escalate refund",
              "type": "ACTION",
              "subType": "SEND_MESSAGE",
              "message": "Escalate refund request with order context."
            }
          }
        },
        "pathId": "refund-escalation",
        "expectedTerminalNodeId": "reply_escalate",
        "inputContext": {
          "message": {
            "text": "I need a refund for my order."
          }
        },
        "runtimeContext": {
          "source": "zendesk",
          "channel": "email"
        },
        "mockTextExtraction": true
      }'
      ~~~
    
      ~~~javascript Node.js theme={null}
      const response = await fetch(
        "https://api-prod.usefini.com/v2/hc-rules/test-paths/config/run/public",
        {
          method: "POST",
          headers: {
            Authorization: "Bearer fini_your_api_key",
            "Content-Type": "application/json",
          },
          body: JSON.stringify({
            flowConfig: {
              root: "root",
              nodes: {
                root: {
                  id: "root",
                  name: "Refund workflow",
                  type: "SEQUENCE",
                  children: ["reply_escalate"],
                },
                reply_escalate: {
                  id: "reply_escalate",
                  name: "Escalate refund",
                  type: "ACTION",
                  subType: "SEND_MESSAGE",
                  message: "Escalate refund request with order context.",
                },
              },
            },
            pathId: "refund-escalation",
            expectedTerminalNodeId: "reply_escalate",
            inputContext: {
              message: { text: "I need a refund for my order." },
            },
            runtimeContext: {
              source: "zendesk",
              channel: "email",
            },
            mockTextExtraction: true,
          }),
        }
      );
    
      const result = await response.json();
      ~~~
    
      ~~~python Python theme={null}
      import requests
    
      response = requests.post(
          "https://api-prod.usefini.com/v2/hc-rules/test-paths/config/run/public",
          headers={
              "Authorization": "Bearer fini_your_api_key",
              "Content-Type": "application/json",
          },
          json={
              "flowConfig": {
                  "root": "root",
                  "nodes": {
                      "root": {
                          "id": "root",
                          "name": "Refund workflow",
                          "type": "SEQUENCE",
                          "children": ["reply_escalate"],
                      },
                      "reply_escalate": {
                          "id": "reply_escalate",
                          "name": "Escalate refund",
                          "type": "ACTION",
                          "subType": "SEND_MESSAGE",
                          "message": "Escalate refund request with order context.",
                      },
                  },
              },
              "pathId": "refund-escalation",
              "expectedTerminalNodeId": "reply_escalate",
              "inputContext": {
                  "message": {"text": "I need a refund for my order."},
              },
              "runtimeContext": {"source": "zendesk", "channel": "email"},
              "mockTextExtraction": True,
          },
      )
    
      result = response.json()
      ~~~
    </RequestExample>
    
    <ResponseExample>
      ~~~json 200 OK theme={null}
      {
        "results": [
          {
            "id": "root",
            "name": "Refund workflow",
            "type": "SEQUENCE",
            "success": true
          },
          {
            "id": "reply_escalate",
            "name": "Escalate refund",
            "type": "ACTION",
            "subType": "SEND_MESSAGE",
            "success": true,
            "terminate": true,
            "result": {
              "message": "Escalate refund request with order context."
            }
          }
        ],
        "testContext": {
          "inputContext": {
            "message": {
              "text": "I need a refund for my order."
            }
          },
          "runtimeContext": {
            "source": "zendesk",
            "channel": "email"
          },
          "notes": ["Use a refund-related user message."]
        },
        "expectedTerminalNodeId": "reply_escalate",
        "actualTerminalNodeId": "reply_escalate",
        "matchedExpectedPath": true,
        "message": "Matched expected terminal node reply_escalate."
      }
      ~~~
    </ResponseExample>
    
    
    ## Related topics
    
    - [Get rule version test paths](/en/api-reference/get-rule-version-test-paths.md)
    - [Run rule version test path](/en/api-reference/run-rule-version-test-path.md)
    - [Preview rule test paths](/en/api-reference/preview-rule-test-paths.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Run rule version test path
    Delete intent rule
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform