AgenticUniverse - Previously Formi
    AgenticUniverse - Previously Formi
    • Our Technical Note
      • Why Open AI is not Enough
      • How business Outcomes would Change Radically with AgenticUniverse
      • Our Research
        • STT - Nuances and Insights
        • Solving for STT Constraints
    • Generate Token
      • Login/Generate Token
        POST
    • Agent Configuration
      • Model Configuration
        • Configuration Helpers
          • Supported Providers
          • Supported Models
          • Supported Parameters
        • Get Model Configuration
        • Set Model Configuration
      • State Machine
        • Edge
          • Legacy
            • Create Edge
            • Edge Details
            • Update Edge
            • Delete Edge
          • Update edge properties
          • Get edge details
          • Delete an edge
          • Create an edge (transition) between two states
        • State
          • Create State from Template
          • Get State Information
          • Update State
          • Delete State
        • Get State Machine Structure
      • Prompt Templates
        • Get All Templates
        • Render Template
      • Tools
        • Get Tools List
        • Add Tool
        • Update Tool
        • Delete Tool
      • Get All Agents
        GET
      • Single Agent Details
        GET
      • Create Agent
        POST
      • Update Agent Details
        PUT
      • Enable Dashboard For An Outlet
        POST
      • Disable Dashboard For An Outlet
        POST
      • Get Call queue Sheet ID
        GET
    • Interactions
      • Pre-Interaction Context
        • Schedule an Interaction
        • Update an Interaction Id
        • Delete an Interaction Id
        • Clear all interactions
        • Get Summarized Interaction Info
      • Interaction Modalities
        • Video
          • Generation
            • Generate Welcome Video
        • Text
          • Start Interaction
          • Create Response
          • End Interaction
        • Voice
          • Connection Configuration
            • Quickstart
            • Connecting Twilio
            • Connecting Exotel
            • Formi WebSocket Configuration Guide
            • Create a New Connection Vendor
            • Get All Connection Vendors
            • Update a Connection Vendor
            • Delete a Connection Vendor
            • Get Agent's Connection Config
            • Add or Update Agent's Connection Config
      • Post Interaction Configuration
        • Email Destination Configuration
        • Variables CRUD
          • Get all required variables for the outlet with map
          • Modify variable definition for outlet
          • Add a new variable for the outlet
          • DELETE variable for outlet
          • Connect Variable to a destination
        • Destinations CRUD
          • Get all destinations for the outlet
          • Modify Destination for outlet
          • Add a new Destination for the outlet
          • DELETE Destinations for outlet
      • Get Interaction Summary
        GET
      • Resolve an Escalated Interaction
        POST
      • Get the Interaction list
        GET
      • Get Information regarding Single Interaction
        GET
    • Agent Utilisation
      • Get Credits Available
        GET
      • Interaction Utilisation
        GET
      • Model Utilisation
        GET
    • Webhooks
      • Get webhook URL
      • Update webhook URL
      • Get webhook metadata
      • Modify webhook metadata
      • Get reservation ingestion metadata
    • Untitled Endpoint
      POST

    Agent Utilisation

    1. Overview#

    The Usage & Analytics APIs offer a suite of endpoints designed to provide detailed data on your Formi integration. These tools enable you to programmatically access credit balances, review historical usage for cost analysis, and drill down into the performance metrics of individual interactions and AI models (LLM, TTS). This empowers you to build custom dashboards, manage budgets effectively, and gain deep insights into your operational efficiency.

    2. Common Use Cases & Benefits#

    Financial & Cost Management
    Track real-time credit balances for all agents within an outlet.
    Analyze historical credit consumption and recharge patterns for budgeting and forecasting.
    Programmatically manage agent credits, including adding, updating, or clearing balances (Admin).
    Performance & Utilisation Analytics
    Retrieve detailed performance breakdowns for specific AI models (CONVERSATION, TRANSITION, TTS) to understand costs and latency.
    Aggregate usage data by OUTLET or AGENT to identify high-performing agents or costly interaction flows.
    Drill down into a single interaction's complete metadata for granular debugging and analysis.
    System Integration & Automation
    Feed usage data into internal financial dashboards or business intelligence (BI) tools.
    Build automated alerting systems to notify administrators of low credit balances.

    3. Expected Response / Response Handling#

    Success Condition: All successful requests will return an HTTP 200 OK status code. The response body will be a JSON object with a top-level success field set to true.
    Failure Condition: Client-side errors (e.g., invalid parameters, authentication failure) will result in a 4xx status code (e.g., 400 Bad Request, 401 Unauthorized). Server-side errors will result in a 5xx status code. The response body will contain a success: false field and a descriptive message.

    4. Example Flow / Scenario Walkthrough#

    Scenario: A manager wants to check the monthly credit usage for their main call center outlet.

    5. Developer Notes & Best Practices#

    Idempotency: All GET endpoints are idempotent and safe to retry. The POST /credits/set endpoint is not idempotent when using mode: "add".
    Caching: For analytics dashboards, it is highly recommended to cache the results of usage queries to improve performance and avoid rate limits. A cache duration of 1 to 24 hours is often suitable.
    Date Ranges: When querying by date, the end_date parameter is inclusive.

    6. Security Considerations#

    JWT Security: Your outlet-specific JWT is a sensitive credential. It should be stored securely on your backend and never exposed in client-side code (e.g., in a web browser).
    HTTPS: All API requests must be made over https:// to ensure data is encrypted in transit.
    Modified at 2025-07-01 10:40:47
    Previous
    Get Information regarding Single Interaction
    Next
    Get Credits Available
    Built with