AgentBill icon

AgentBill

Interact with AgentBill API for AI usage tracking & billing

Actions16

Overview

This node interacts with the AgentBill API to track AI usage events and manage usage data. Specifically, the 'Usage' resource with the 'Track Usage' operation records usage events such as API calls, associating them with customer and agent identifiers. This is useful for monitoring AI usage, billing, and analytics in applications that integrate AI services.

Use Case Examples

  1. Tracking an API call event for a specific customer and agent to record usage data for billing and analytics.
  2. Recording custom usage events to monitor AI consumption across different agents and customers.

Properties

Name Meaning
Event Type Type of usage event to track, e.g., 'api_call'.
Customer ID Identifier for the customer associated with the usage event.
Agent ID Identifier for the agent associated with the usage event.

Output

JSON

  • event_type - The type of usage event tracked.
  • customer_id - The customer identifier associated with the event.
  • agent_id - The agent identifier associated with the event.

Dependencies

  • AgentBill API key credential

Troubleshooting

  • Ensure the Customer ID is provided and does not exceed 255 characters; otherwise, the node will throw an error.
  • Agent ID is required for tracking usage events; missing this will cause an error.
  • The node requires a valid AgentBill API key credential to authenticate requests.
  • If the API request fails, check network connectivity and API endpoint correctness.

Links

Discussion