Actions14
- Agent Actions
- File Actions
- Image Actions
- Prompt Actions
- RAG Actions
Overview
The node integrates with the Straico API to manage and interact with "agents"—custom AI assistants configured with specific prompts, language models, and metadata. The Agent Create operation allows users to create a new agent by specifying its name, custom prompt, default large language model (LLM), description, and tags.
This node is useful in scenarios where you want to programmatically set up AI agents tailored for different tasks or domains, such as customer support bots, content generation assistants, or research helpers. For example, you could create an agent specialized in answering product questions by providing a custom prompt and selecting a preferred LLM.
Properties
| Name | Meaning |
|---|---|
| Name | The unique name of the agent being created. |
| Custom Prompt | A multi-line string defining the custom prompt or instructions that guide the agent's behavior. |
| Default LLM | The identifier or name of the default large language model the agent will use for completions. |
| Description | A textual description explaining the purpose or details of the agent. |
| Tags | A JSON array of tags (strings) to categorize or label the agent, e.g., ["assistant","rag"]. |
Output
The output is a JSON object representing the response from the Straico API after creating the agent. This typically includes details about the newly created agent such as its ID, name, prompt, default LLM, description, tags, creation timestamp, and possibly status information.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating requests to the Straico API.
- The node makes HTTP POST requests to the endpoint:
https://api.straico.com/v0/agent. - The request body is sent as URL-encoded form data (
application/x-www-form-urlencoded).
Troubleshooting
- Invalid or missing API credentials: Ensure that a valid API key credential is configured in n8n for the Straico API.
- Malformed tags property: The
tagsinput must be a valid JSON array string. Invalid JSON will cause errors. Example:["assistant","rag"]. - Required fields missing: All required properties (
name,custom_prompt,default_llm,description) must be provided; otherwise, the API may reject the request. - API errors: If the API returns an error, check the message for details such as rate limits, invalid parameters, or server issues.
- Network issues: Verify network connectivity to
https://api.straico.com.
Links and References
- Straico API Documentation (general): https://api.straico.com/docs (assumed)
- n8n HTTP Request Node Documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
- JSON Array Format Reference: https://www.json.org/json-en.html