Straico Official icon

Straico Official

Get data from Straico API

Overview

The node integrates with the Straico API to manage and interact with various resources such as agents, files, images, models, prompts, RAGs (Retrieval-Augmented Generation), and users. Specifically, for the Agent - Get Details operation, it retrieves detailed information about a specific agent by its ID.

This node is beneficial in scenarios where you need to programmatically access or manipulate AI agents managed on the Straico platform. For example, you might want to fetch an agent's configuration or status before sending it a prompt or updating its settings.

Practical example:

  • You have multiple AI agents configured for different tasks (e.g., customer support, sales assistant).
  • Before sending a prompt or updating an agent, you retrieve its details to verify its current configuration or metadata.

Properties

Name Meaning
Agent ID The unique identifier of the agent to retrieve details for. Example: agent_123456789.

Output

The output is a JSON object containing the detailed information of the requested agent as returned by the Straico API. This typically includes all relevant fields describing the agent's configuration, metadata, and status.

The structure depends on the API response but generally includes properties like agent name, description, default language model, custom prompts, tags, and other agent-specific data.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Straico API.
  • Requires an API authentication credential configured in n8n to authorize requests to the Straico service.
  • The base URL used for API calls is https://api.straico.com.
  • The node uses HTTP GET method to fetch agent details from endpoint /v0/agent/{agent_id}.

Troubleshooting

  • Common issues:

    • Missing or invalid Agent ID: The operation requires a valid agent ID; ensure the ID is correctly provided.
    • Authentication errors: Ensure the API key or authentication token is correctly set up in n8n credentials.
    • Network or connectivity problems: Verify that the n8n instance can reach the Straico API endpoint.
  • Error messages:

    • "No binary data property ... found on item!" — Not applicable for this operation since it does not handle binary data.
    • HTTP errors from the API (e.g., 404 Not Found) likely indicate the agent ID does not exist or is incorrect.
    • Authentication failures will result in 401 or 403 HTTP status codes; check API credentials.

Links and References


This summary focuses exclusively on the "Agent" resource with the "Get Details" operation as requested.

Discussion