fluentcrm_create_email_template
Create email templates for marketing campaigns by defining title, subject, and HTML content to streamline communication workflows.
Instructions
Tworzy nowy szablon email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Nazwa szablonu | |
| subject | Yes | Temat | |
| body | Yes | Treść HTML |
Implementation Reference
- src/fluentcrm-mcp-server.ts:989-990 (handler)MCP tool handler: extracts arguments and calls FluentCRMClient.createEmailTemplate, formats response as JSON text.case 'fluentcrm_create_email_template': return { content: [{ type: 'text', text: JSON.stringify(await client.createEmailTemplate(args as any), null, 2) }] };
- src/fluentcrm-mcp-server.ts:240-243 (helper)Core helper method in FluentCRMClient: sends POST request to /email-templates API endpoint with input data.async createEmailTemplate(data: any) { const response = await this.apiClient.post('/email-templates', data); return response.data; }
- src/fluentcrm-mcp-server.ts:756-764 (schema)Input schema validation: requires title, subject, body for email template creation.inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Nazwa szablonu' }, subject: { type: 'string', description: 'Temat' }, body: { type: 'string', description: 'Treść HTML' }, }, required: ['title', 'subject', 'body'], },
- src/fluentcrm-mcp-server.ts:753-765 (registration)Tool registration in ListToolsResponse: defines name, description, and input schema.{ name: 'fluentcrm_create_email_template', description: 'Tworzy nowy szablon email', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Nazwa szablonu' }, subject: { type: 'string', description: 'Temat' }, body: { type: 'string', description: 'Treść HTML' }, }, required: ['title', 'subject', 'body'], }, },