AgentBill icon

AgentBill

Interact with AgentBill API for AI usage tracking & billing

Actions16

Overview

This node interacts with the AgentBill API to manage AI agents and related resources. Specifically, for the 'Agent' resource with the 'Create' operation, it allows users to create a new AI agent by specifying details such as the agent's name, description, and model. This is useful for users who want to programmatically add new AI agents to their AgentBill account for tracking and billing purposes.

Use Case Examples

  1. Creating a new AI agent named 'SupportBot' with a description and specifying the model as 'gpt-4'.
  2. Automating the addition of multiple AI agents in bulk via workflows.

Properties

Name Meaning
Agent Name The name of the AI agent to be created. This is a required string input.
Description An optional description providing additional details about the AI agent.
Model The AI model associated with the agent, defaulting to 'gpt-4' if not specified.

Output

JSON

  • id - Unique identifier of the created agent
  • name - Name of the created agent
  • description - Description of the created agent
  • model - AI model associated with the agent
  • createdAt - Timestamp when the agent was created

Dependencies

  • AgentBill API

Troubleshooting

  • Ensure the API key credential for AgentBill is correctly configured and has the necessary permissions.
  • Verify that the 'Agent Name' is provided and is not empty, as it is required.
  • Check that the 'Model' value is valid and supported by the AgentBill API.
  • Handle API errors gracefully by enabling 'Continue On Fail' to avoid workflow interruptions.

Links

Discussion