Create new agent (CLI/SDK)
Creates a new AI agent via CLI/SDK.
Documentation Index
Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt
Use this file to discover all available pages before exploring further.
Body
Agent name
2 - 100"Customer Support Bot"
Agent description
10 - 500"AI-powered customer support agent"
Agent category
SALES, CUSTOMER_SUPPORT, VOICE, OPERATIONS, FINANCIAL_PREVENTION, FINANCIAL_RECOVERY, MARKETING, ANALYTICS "CUSTOMER_SUPPORT"
Agent source code
"export function main() { return \"Hello World\"; }"
Agent subcategory for more specific classification
SDR_OUTBOUND, SDR_INBOUND, ACCOUNT_MANAGER, SALES_CLOSER, LEAD_QUALIFIER, TIER_1_SUPPORT, TECHNICAL_SUPPORT, ESCALATION_HANDLER, CHAT_SUPPORT, COLD_CALLING, CUSTOMER_SERVICE_VOICE, APPOINTMENT_SETTER, SURVEY_CALLER, DATA_PROCESSOR, WORKFLOW_AUTOMATOR, QUALITY_CHECKER, REPORT_GENERATOR, FRAUD_DETECTOR, RISK_ASSESSOR, COMPLIANCE_MONITOR, DEBT_COLLECTOR, PAYMENT_NEGOTIATOR, RECOVERY_SPECIALIST, CONTENT_CREATOR, CAMPAIGN_MANAGER, SOCIAL_MEDIA_MANAGER, EMAIL_MARKETER, DATA_ANALYST, PERFORMANCE_TRACKER, INSIGHT_GENERATOR, DASHBOARD_CREATOR "TIER_1_SUPPORT"
Agent status
ACTIVE, INACTIVE, ERROR, DEPLOYING "INACTIVE"
Agent logo URL
500"https://example.com/logo.png"
Repository URL
500"https://github.com/user/agent-repo"
Agent endpoint URL
500"https://api.example.com/agent/endpoint"
File tree structure for IDE-like interface
[
{
"name": "src",
"type": "folder",
"children": [
{
"name": "index.ts",
"type": "file",
"content": "export function main() { return \"Hello World\"; }"
}
]
}
]Programming language
50"typescript"
Git branch
100"main"
Git commit hash
100"abc123def456"
Agent tags
["ai", "customer-support", "chatbot"]Template ID for project initialization (from /public/templates)
starter, rag-agent, webhook-handler 50"starter"
Response
Agent created successfully.
Agent unique identifier
"123e4567-e89b-12d3-a456-426614174000"
Agent name
"Customer Support Bot"
Agent description
"AI-powered customer support agent"
Agent category
SALES, CUSTOMER_SUPPORT, VOICE, OPERATIONS, FINANCIAL_PREVENTION, FINANCIAL_RECOVERY, MARKETING, ANALYTICS "CUSTOMER_SUPPORT"
Agent status
ACTIVE, INACTIVE, ERROR, DEPLOYING "ACTIVE"
Agent source code
"export function main() { return \"Hello World\"; }"
Programming language
"typescript"
Git branch
"main"
Agent tags
["ai", "customer-support", "chatbot"]Creation timestamp
"2025-01-01T00:00:00.000Z"
Last update timestamp
"2025-01-01T00:00:00.000Z"
Tenant ID that the agent belongs to
"123e4567-e89b-12d3-a456-426614174000"
User ID that owns the agent
"123e4567-e89b-12d3-a456-426614174000"
Agent subcategory for more specific classification
SDR_OUTBOUND, SDR_INBOUND, ACCOUNT_MANAGER, SALES_CLOSER, LEAD_QUALIFIER, TIER_1_SUPPORT, TECHNICAL_SUPPORT, ESCALATION_HANDLER, CHAT_SUPPORT, COLD_CALLING, CUSTOMER_SERVICE_VOICE, APPOINTMENT_SETTER, SURVEY_CALLER, DATA_PROCESSOR, WORKFLOW_AUTOMATOR, QUALITY_CHECKER, REPORT_GENERATOR, FRAUD_DETECTOR, RISK_ASSESSOR, COMPLIANCE_MONITOR, DEBT_COLLECTOR, PAYMENT_NEGOTIATOR, RECOVERY_SPECIALIST, CONTENT_CREATOR, CAMPAIGN_MANAGER, SOCIAL_MEDIA_MANAGER, EMAIL_MARKETER, DATA_ANALYST, PERFORMANCE_TRACKER, INSIGHT_GENERATOR, DASHBOARD_CREATOR "TIER_1_SUPPORT"
Last deployment timestamp
"2025-01-01T00:00:00.000Z"
Agent logo URL
"https://example.com/logo.png"
Repository URL
"https://github.com/user/agent-repo"
Agent endpoint URL (populated by provisioning service)
"https://chatbot.acme.runflow.ai"
File tree structure for IDE-like interface
[
{
"name": "src",
"type": "folder",
"children": [
{
"name": "index.ts",
"type": "file",
"content": "export function main() { return \"Hello World\"; }"
}
]
}
]Git commit hash
"abc123def456"
Staging commit hash (latest deploy to staging)
"2025-01-01T00-00-00-000Z"
Staging endpoint URL
"https://staging.runflow.ai/agent/abc123"
Agent related statistics
{
"executions": 15,
"dataSources": 3,
"triggers": 2
}Repository name
"agent-repo"
AWS Scheduler ARN
"arn:aws:scheduler:us-east-1:123456789012:schedule/default/my-schedule"
Use new executor-engine (Go) instead of legacy execution-engine (NestJS)
true