create_agent
Create an AI outreach agent for LinkedIn, Email, X, Instagram, or Blog channels to automate client acquisition for specific products.
Instructions
Create a new AI outreach agent for a specific channel. Requires a product ID. Available platforms: linkedin, email, x, instagram, blog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | Product ID to create the agent for | |
| name | Yes | Agent name | |
| platform | Yes | Platform: linkedin, email, x, instagram, or blog |
Implementation Reference
- src/tools/setup.ts:76-83 (handler)The tool handler for "create_agent" which invokes the SwarmixClient.createAgent method.
handler: async (args: Record<string, unknown>) => { const result = await client.createAgent({ productId: args.productId as string, name: args.name as string, platform: args.platform as string, }); return JSON.stringify(result, null, 2); }, - src/tools/setup.ts:60-84 (registration)Registration of the "create_agent" tool in the getSetupTools array.
name: 'create_agent', description: 'Create a new AI outreach agent for a specific channel. Requires a product ID. Available platforms: linkedin, email, x, instagram, blog.', inputSchema: { type: 'object' as const, properties: { productId: { type: 'string', description: 'Product ID to create the agent for' }, name: { type: 'string', description: 'Agent name' }, platform: { type: 'string', description: 'Platform: linkedin, email, x, instagram, or blog', enum: ['linkedin', 'email', 'x', 'instagram', 'blog'], }, }, required: ['productId', 'name', 'platform'], }, handler: async (args: Record<string, unknown>) => { const result = await client.createAgent({ productId: args.productId as string, name: args.name as string, platform: args.platform as string, }); return JSON.stringify(result, null, 2); }, }, - src/api-client.ts:113-115 (helper)The API client method that performs the actual network request to create an agent.
async createAgent(data: { productId: string; name: string; platform: string }) { return this.request('POST', '/api/agents', data); }