Custom Agents
Overview
Custom Agents let you build your own AI agents inside the Zynap platform — each one tied to an LLM provider you control, given a system prompt that defines its role, and equipped with tools from external MCP (Model Context Protocol) servers plus a small set of built-in platform tools.
Once an agent is saved, it becomes selectable inside the NINA workflow builder via the Custom Agent Node, which sends a per-run prompt to the agent and writes the structured output back to the workflow.
The feature lives under Automation → Custom Agents in the dashboard sidebar and is split into three tabs:
| Tab | Purpose |
|---|---|
| Providers | Register LLM providers and store their API keys. |
| MCP Servers | Connect to external MCP servers that expose tools. |
| Agents | Compose named agents from a provider, model, system prompt, and selected MCP tools. |
How the pieces fit together
┌────────────────┐ ┌──────────────┐ ┌──────────────┐
│ Provider │ │ MCP Server │ │ Internal │
│ (OpenAI, │ │ (Atlassian, │ │ Tools │
│ Anthropic, │ │ Datadog, │ │ (file_write, │
│ Gemini, │ │ GitHub MCP, │ │ http_ │
│ OpenRouter, │ │ any custom │ │ request, │
│ DeepSeek, │ │ MCP server) │ │ …) │
│ AWS Bedrock) │ │ │ │ │
└───────┬────────┘ └──────┬───────┘ └──────┬───────┘
│ │ │
│ provides │ provides │ always
│ model + creds │ external tools │ available
│ │ │
└─────────┬──────────┴───────────────────┘
│
▼
┌──────────────┐
│ Agent │
│ ────────── │
│ system prompt│
│ provider+model
│ MCP servers │
│ tool subset │
│ output schema│
└──────┬───────┘
│ referenced by agent_id
▼
┌─────────────────────┐
│ Custom Agent Node │ ← per-run prompt set on the canvas
│ (in workflow) │
└─────────────────────┘
The provider supplies the LLM and its API key. MCP servers supply external tools (e.g. read a Jira issue, page Datadog, search a codebase). Each agent picks one provider+model and zero or more MCP servers, then optionally narrows down which tools from each server it is allowed to call. The Custom Agent Node in a workflow references the saved agent by ID and adds a per-run task prompt.
Recommended order of operations
The pieces have a strict dependency order — you'll want to set them up in this sequence the first time:
- Add at least one Provider so the platform has an LLM to call. See Providers.
- (Optional) Connect MCP Servers if your agent needs external tools. See MCP Servers.
- Create an Agent that picks a provider, a model, a system prompt, and any MCP servers/tools you want it to use. See Agents.
- Drop a Custom Agent Node onto a workflow and select your agent. See the Custom Agent Node guide.
Authentication and security
- Provider credentials are encrypted at rest and never returned to the browser after save. Editing a provider with every credential field left blank keeps the stored values; filling them in replaces the encrypted blob.
- AWS Bedrock supports two auth modes — a Bedrock API key (bearer token) or AWS IAM access key + secret. Pick one per provider.
- MCP server credentials (bearer tokens, basic-auth passwords, custom headers) are encrypted at rest and never returned to the browser after save.
- OAuth MCP servers use the MCP Authorization spec — discovery, Dynamic Client Registration, and PKCE all happen server-side. The user only sees a normal "Connect" button that opens the provider's consent screen in a popup. Tokens are scoped per-user; revoking is a one-click action.
- Per-user OAuth tokens are not shared between users in the same organisation; each user authorises themselves, and the agent runtime uses the calling user's token at execution time.
Feature highlights
- Six LLM providers: OpenAI (incl. Azure), Anthropic, Google Gemini (incl. Vertex), OpenRouter, DeepSeek, and AWS Bedrock — the last giving a single connection to Claude, Amazon Nova, Meta Llama, Mistral, Cohere, AI21 Jamba, and more through your AWS account.
- Schema-driven provider form: each provider type exposes its own fields (API key, AWS region, Azure version, Vertex project, etc.). Adding a new provider type doesn't require a UI release.
- Two MCP transports: SSE (older) and Streamable HTTP (modern).
- Five MCP authentication modes: None, Bearer token, Basic auth, Custom headers, OAuth MCP.
- Seven built-in internal tools:
write_output_file,file_write,file_read,think,http_request,generate_pdf,isolated_script_execution— available to every agent with no setup. - Per-agent tool selection: pick a subset of an MCP server's tools rather than handing the agent everything.
- Optional output schema: enforce a JSON shape on the agent's final output, useful for downstream automation.
- Tunable execution: per-agent temperature, max tokens, and max reasoning steps.
See also
- Providers — registering LLM providers and managing API keys.
- MCP Servers — connecting external tool servers, including OAuth.
- Agents — building and configuring agents.
- Custom Agent Node — using an agent inside a workflow.
Updated: 2026-05-21