ghl_create_template
Create SMS, email, or WhatsApp templates with custom body and subject for email. Returns the new template ID.
Instructions
Create a new SMS, email, or WhatsApp template. For email, provide a subject and HTML body. Returns the created template including its ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"type": "<type>",
"body": "<body>"
},
"name": "ghl_create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Template body — plain text for SMS/WhatsApp, HTML for email | |
| name | Yes | Template display name | |
| type | Yes | Template channel type | |
| subject | No | Subject line — required for email templates | |
| attachments | No | Array of attachment URLs |