fluentcrm_create_campaign
Create email marketing campaigns in FluentCRM by setting campaign title, subject line, template, and recipient lists to engage your audience.
Instructions
Tworzy nową kampanię email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipient_list | No | ID list | |
| subject | Yes | Temat emaila | |
| template_id | No | ID szablonu | |
| title | Yes | Tytuł kampanii |
Implementation Reference
- src/fluentcrm-mcp-server.ts:203-205 (handler)Core implementation of the tool: sends POST request to FluentCRM API /campaigns endpoint with input data to create a new campaign.async createCampaign(data: any) { const response = await this.apiClient.post('/campaigns', data); return response.data;
- src/fluentcrm-mcp-server.ts:696-709 (registration)Registers the 'fluentcrm_create_campaign' tool in the MCP tools list, including description and input schema.{ name: 'fluentcrm_create_campaign', description: 'Tworzy nową kampanię email', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Tytuł kampanii' }, subject: { type: 'string', description: 'Temat emaila' }, template_id: { type: 'number', description: 'ID szablonu' }, recipient_list: { type: 'array', items: { type: 'number' }, description: 'ID list' }, }, required: ['title', 'subject'], }, },
- src/fluentcrm-mcp-server.ts:699-708 (schema)Defines the input schema for the tool parameters: title (required), subject (required), template_id, recipient_list.inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Tytuł kampanii' }, subject: { type: 'string', description: 'Temat emaila' }, template_id: { type: 'number', description: 'ID szablonu' }, recipient_list: { type: 'array', items: { type: 'number' }, description: 'ID list' }, }, required: ['title', 'subject'], },
- src/fluentcrm-mcp-server.ts:979-980 (handler)MCP server dispatch handler case that calls the client.createCampaign method with tool arguments and returns JSON response.case 'fluentcrm_create_campaign': return { content: [{ type: 'text', text: JSON.stringify(await client.createCampaign(args as any), null, 2) }] };