POST /api/aigents
{
"name": "string",
"description": "string",
"type": "string",
"version": number,
"subtasks": [{
"id": "string",
"name": "string",
"description": "string",
"requiredCapability": "CapabilityKey",
"order": number,
"inputMapping": Record,
"outputMapping": Record,
"config": Record
}],
"customPrompt": "string",
"outputSchema": Record
}
POST /api/aigents/:aigentId/execute
aigentId
- The ID of the aigent to execute
{
"input": {
// aigent-specific input data
}
}
{
"taskId": "string",
"status": "pending" | "in_progress" | "completed" | "failed",
"results": {
// Subtask results mapped according to outputMapping
}
}
When an aigent is executed:
AI_ANALYSIS
- Performs analysis from the results of prior tasks using AI modelsGOOGLE_SEARCH
- Performs web searchesINSTAGRAM_PROFILE_RESEARCH
- Researches Instagram profilesINSTAGRAM_POSTS_RESEARCH
- Researches Instagram postsWEBSITE_RESEARCH
- Researches the contents of a websiteSEND_EMAIL
- Sends an emailSEND_SMS
- Sends an sms messageSEND_SHIPMENT
- Creates an order and sends a shipment for Shopify storeSTORE_MEDIA
- Stores media files for aigent consumptionGENERATE_PDF
- Creates a PDF file using provided contentsCREATE_META_AD
- Creates a Meta ad based on provided ad settingsSEND_PAYMENT
- Sends a payment using Paypal or StripeAIGENT_EXECUTION
- Executes nested capabilities