Overview
Agents
Processing components that perform specific actions in document generation workflows. Agents can be:- Built-in agents: Pre-configured agents for common tasks (search, analysis, formatting)
- Custom agents: User-defined agents with specific instructions and outputs
Connectors
Specialized tools that give agents access to data-specific tools and functions. Connectors enable agents to:- Interpret different document types within the generation pipeline
- Access external systems and databases
- Apply specific rules and functions to data processing
Connector Management
Create Connector
Endpoint| Field | Type | Required | Description |
|---|---|---|---|
name | String | Yes | Human-readable connector name |
sourceType | String | Yes | Type of data source: “database” or “document” |
description | String | No | Connector description and purpose |
config | Object | No | Configuration including authentication credentials |
functions | Array[String] | No | List of functions the connector provides to agents |
rules | Array[String] | No | Processing rules and constraints |
database: Connects to external databases and data systemsdocument: Processes specific document formats and structures
List All Connectors
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
limit | Integer | No | Results per page (default: 20, max: 100) |
offset | Integer | No | Number of results to skip (default: 0) |
status | String | No | Filter by status |
Get Specific Connector
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Connector ID |
Update Connector
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Connector ID |
Delete Connector
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Connector ID |
Test Connector
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Connector ID |
Get Specific Agent
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | String | Yes | Agent ID |
Create Custom Agent
Endpoint| Field | Type | Required | Description |
|---|---|---|---|
name | String | Yes | Human-readable agent name |
description | String | Yes | Agent description and purpose |
category | String | No | Agent category (analysis, formatting, validation, etc.) |
instructions | String | Yes | Detailed instructions for agent behavior |
output_format | String | Yes | Output format: “text”, “html”, or “markdown” |
Update Agent
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | String | Yes | Agent ID |
Delete Agent
Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | String | Yes | Agent ID |
Call Agent Directly
Execute an agent outside of a pipeline for testing or standalone processing. Endpoint| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | String | Yes | Agent ID |
| Field | Type | Required | Description |
|---|---|---|---|
documentUrls | Array[String] | Yes | S3 URLs of ingested documents to process |
instructions | String | No | Additional instructions for this specific call |
CustomAgent Usage
The CustomAgent is a special built-in agent that allows users to define their own processing logic through instructions.Using CustomAgent in Pipelines
When creating a pipeline with CustomAgent:CustomAgent Direct Call
Permission-Based Sharing
Admin Sharing (Admin Users Only)
Administrators can make their custom agents and connectors visible to all users in the organization: Share AgentVisibility Rules
- Regular Users: See only their own custom agents/connectors plus built-in/preset ones
- Admin Users: See all agents/connectors in the organization
- Shared Items: Custom items shared by admins are visible to all organization members
Error Handling
Common Error Codes
| Error Code | HTTP Status | Description | Resolution |
|---|---|---|---|
CONNECTOR_NOT_FOUND | 404 | Connector ID does not exist | Verify connector ID and permissions |
AGENT_NOT_FOUND | 404 | Agent ID does not exist | Verify agent ID and availability |
INVALID_CONNECTOR_CONFIG | 400 | Connector configuration is invalid | Check authentication credentials and config format |
AGENT_EXECUTION_FAILED | 500 | Agent failed during execution | Check agent instructions and input documents |
MISSING_CREDENTIALS | 401 | Connector authentication failed | Verify and update authentication credentials |
INSUFFICIENT_PERMISSIONS | 403 | User lacks permission for operation | Contact admin or check user permissions |
INVALID_DOCUMENT_URL | 400 | Document URL is not accessible | Ensure document is properly ingested |
CUSTOM_AGENT_LIMIT_EXCEEDED | 400 | Too many custom agents (deprecated - no limits) | N/A |
CONNECTOR_IN_USE | 409 | Cannot delete connector used by active pipelines | Remove connector from pipelines first |
Error Response Format
Specific Error Scenarios
Invalid Connector IDBest Practices
Connector Management
- Use descriptive names that clearly indicate the connector’s purpose
- Test authentication before using connectors in production pipelines
- Keep credentials secure and rotate them regularly
- Document functions and rules thoroughly for team collaboration
- Monitor usage to identify unused connectors
Agent Development
Integration Patterns
Agent-Connector WorkflowPerformance Optimization
- Connector Reuse: Design connectors to be reusable across multiple agents and pipelines
- Agent Specificity: Create focused agents for specific tasks rather than generic ones
- Testing Strategy: Always test agents individually before using in pipelines
- Error Handling: Implement robust error handling and retry logic
- Monitoring: Track agent and connector performance for optimization opportunities
Rate Limiting
Rate limits apply at the LLM level for agent execution: Agent Execution Limits- Direct agent calls: Subject to LLM provider rate limits
- Pipeline execution: Rate limited by the underlying AI models
- Custom agent creation: No specific limits
Analytics Integration
Agent and connector usage is tracked for analytics purposes. Detailed analytics documentation is available in a separate API documentation page. Tracked Metrics Include:- Agent execution frequency and success rates
- Connector usage patterns and performance
- Error rates and failure patterns
- Processing time and resource utilization
- User adoption and feature usage