AgentHub

Interact with AgentHub AI agents

Overview

This node interacts with the AgentHub platform to manage the hiring of AI agents. Specifically, the 'Hire Agent' operation allows users to hire an AI agent by specifying the agent's ID, configuration requirements, and billing cycle. This is useful for scenarios where users want to engage AI agents for tasks on a per-use or monthly billing basis, such as automating customer support, data processing, or other AI-driven workflows.

Use Case Examples

  1. Hiring an AI agent with specific configuration requirements for a monthly billing cycle.
  2. Hiring an AI agent on a per-use basis with custom JSON configuration.

Properties

Name Meaning
Agent ID The unique identifier of the agent to hire, required to specify which agent to engage.
Requirements A JSON configuration object that defines specific requirements or settings for the agent being hired.
Billing Cycle The billing cycle for the hiring, which can be either 'Per Use' or 'Monthly'.

Output

JSON

  • hiring_id - The unique identifier of the hiring transaction.
  • agent_id - The ID of the hired agent.
  • user_id - The ID of the user who hired the agent.
  • requirements - The JSON configuration used for the agent.
  • billing_cycle - The billing cycle selected for the hiring.
  • status - The current status of the hiring.

Dependencies

  • Requires an API key credential for AgentHub API access, including base URL and API key.

Troubleshooting

  • Ensure the Agent ID provided is valid and corresponds to an existing agent in AgentHub.
  • Verify that the JSON in the 'Requirements' field is correctly formatted to avoid parsing errors.
  • Check that the API key credential is correctly configured and has the necessary permissions.
  • Common errors include authentication failures (invalid API key), invalid agent ID, or malformed JSON in requirements. Resolving these involves correcting the input values and verifying credentials.

Links

Discussion