fluentcrm_create_email_template
Create custom email templates for FluentCRM marketing campaigns by defining template name, subject line, and HTML content.
Instructions
Tworzy nowy szablon email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Treść HTML | |
| subject | Yes | Temat | |
| title | Yes | Nazwa szablonu |
Implementation Reference
- src/fluentcrm-mcp-server.ts:240-243 (handler)Core handler function in FluentCRMClient that creates an email template by sending a POST request to the '/email-templates' API endpoint with the provided data.async createEmailTemplate(data: any) { const response = await this.apiClient.post('/email-templates', data); return response.data; }
- src/fluentcrm-mcp-server.ts:754-765 (schema)Tool registration entry including name, description, and input schema definition (requires title, subject, body fields).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'], }, },
- src/fluentcrm-mcp-server.ts:989-990 (registration)Dispatch handler in the MCP server's CallToolRequestSchema that invokes the client.createEmailTemplate method.case 'fluentcrm_create_email_template': return { content: [{ type: 'text', text: JSON.stringify(await client.createEmailTemplate(args as any), null, 2) }] };