create_product
Create a new product or business profile for automated outreach campaigns by analyzing its website to understand value proposition and target audience.
Instructions
Create a new product/business to manage outreach for. The AI will analyze the website to learn the value proposition and audience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product or business name | |
| domain | No | Website domain (e.g., "mycoaching.com") |
Implementation Reference
- src/tools/setup.ts:51-57 (handler)The handler for the 'create_product' tool, which calls the SwarmixClient's createProduct method.
handler: async (args: Record<string, unknown>) => { const result = await client.createProduct({ name: args.name as string, domain: args.domain as string | undefined, }); return JSON.stringify(result, null, 2); }, - src/tools/setup.ts:40-50 (registration)Tool registration for 'create_product', including its description and input schema.
name: 'create_product', description: 'Create a new product/business to manage outreach for. The AI will analyze the website to learn the value proposition and audience.', inputSchema: { type: 'object' as const, properties: { name: { type: 'string', description: 'Product or business name' }, domain: { type: 'string', description: 'Website domain (e.g., "mycoaching.com")' }, }, required: ['name'], }, - src/api-client.ts:109-111 (helper)The actual API implementation of createProduct, which performs a POST request to /api/products.
async createProduct(data: { name: string; domain?: string }) { return this.request('POST', '/api/products', data); }