Actions16
- Signal Actions
- Usage Actions
- Customer Actions
- Agent Actions
- Analytics Actions
- Invoice Actions
- Webhook Actions
- Cost Guard Actions
- Reconciliation Actions
Overview
This node interacts with the AgentBill API to retrieve cost analysis data related to AI usage. Specifically, the 'Get Cost Analysis' operation under the 'Analytics' resource fetches a cost breakdown for AI prompts within a specified date range. This is useful for users who want to monitor and analyze their AI usage costs over time, helping with budgeting and cost management.
Use Case Examples
- A user wants to see the cost breakdown of AI prompt usage from the start to the end of a month to understand spending patterns.
- A company integrates this node in their workflow to automatically fetch and report AI usage costs for financial reconciliation.
Properties
| Name | Meaning |
|---|---|
| Start Date | The start date for the cost analysis period, specifying the beginning of the date range to retrieve data for. |
| End Date | The end date for the cost analysis period, specifying the end of the date range to retrieve data for. |
Output
JSON
- ``
date- The date for which the cost data is reported.cost- The cost amount for AI prompt usage on the given date.details- Additional details or breakdown of the cost data.
Dependencies
- AgentBill API key credential for authentication
Troubleshooting
- Ensure the API key credential is correctly configured and has the necessary permissions to access analytics data.
- Verify that the start and end dates are valid and in the correct format; invalid dates may cause the API request to fail.
- If the node returns an error about missing parameters, check that the required input properties (startDate and endDate) are provided when using the 'Get Cost Analysis' operation.
Links
- AgentBill API Documentation - Official documentation for the AgentBill API, including endpoints for analytics and cost analysis.