- As Tools - For agent execution (LLM decides when to call)
- Direct Invocation - For programmatic execution (you control when to call)
Key Features
- 🔄 Dynamic Schema Loading - Schemas are fetched from the backend automatically
- 🎭 Transparent Mocking - Enable mock mode for development and testing
- 🛣️ Path Parameter Resolution - Automatic extraction and URL building
- ⚡ Lazy Initialization - Schemas loaded only when needed, cached globally
- 🔐 Flexible Authentication - Supports API Key, Bearer Token, Basic Auth, OAuth2
- 🔄 Multiple Credentials - Override credentials per execution (multi-tenant support)
- ✅ Type-Safe - Automatic JSON Schema → Zod → LLM Parameters conversion
Usage Mode 1: As Agent Tool
Use connectors as tools that the LLM can call automaticallyUsage Mode 2: Direct Invocation
Call connectors programmatically, without agent involvement. Works anywhere: standalone scripts, workflow steps, API handlers.Response Format
The response is wrapped in a standard envelope:Examples
- Custom headers (highest - overrides everything)
- credentialId override (runtime override)
- Instance credential (default from connector instance)
- No authentication
Public APIs — call a template directly (no instance)
For connector templates withauthRequired = false (public APIs imported via OpenAPI, like JSONPlaceholder, public REST endpoints, etc.), you can skip the instance step entirely and pass the template slug as the first argument. The resolver tries an instance match first and transparently falls back to the template when no instance exists.
connector(...) and createConnectorTool({ connector: 'slug', ... }). The shortcut only kicks in when the template has no auth — anything requiring a credential still needs an instance.
Using Connectors in Workflows
Inside .step() (recommended)
Call connector() directly inside a workflow step:
Using .connector() step (native)
The FlowBuilder also has a native .connector() method for simple cases:
The native
.connector() step uses template interpolation ({{input.field}}) for parameters. For dynamic logic (conditionals, transformations), use connector() inside a .step() instead.Using loadConnector Helper
For connectors with many resources, use theloadConnector helper:
Path Parameters
Connectors automatically resolve path parameters from the resource URL:Mock Execution
Enable mock mode for development and testing:How It Works
- Tool Creation:
createConnectorToolcreates a tool with a temporary schema - Lazy Loading: On first agent execution, schemas are fetched from the backend in parallel
- Schema Conversion: JSON Schema → Zod → LLM Parameters (automatic)
- Caching: Schemas are cached globally to avoid repeated API calls
- Execution: Tool/API executes with authentication, path resolution, and error handling
Next Steps
Workflows
Orchestrate complex processes
Tools
Learn more about tools
Channels
WhatsApp, Telegram and more — replies are sent through connectors