set_slack_message_template
Changes the template of the message posted to Slack for each lead (Slack formatting: *bold*, _italic_).
Set the Slack message template · Changes data
Changes the template of the message posted to Slack for each lead (Slack formatting: bold, italic). Merge fields are filled per lead and left empty when unknown: {{lead.company.name}}, {{lead.company.domain}}, {{lead.company.industry}}, {{lead.company.employees}}, {{lead.person.firstName}}, {{lead.person.lastName}}, {{lead.person.businessEmail}}, {{lead.person.position}}, {{lead.person.linkedin}}, {{lead.visit.pageList}}, {{lead.utm.source}} and the other lead.* fields of get_slack_message_template's default. Up to 3000 characters; an empty template goes back to the default. Answers { success } plus unknownFields when the template uses merge fields that don't exist (they would show empty).
| Connection | Account URL, team member URL or OAuth |
|---|
Parameters
| Parameter | Type | Required | Accepts | Description |
|---|---|---|---|---|
websiteId | string | Yes | any | Website ID from list_websites. |
template | string | Yes | max 3000 characters | The message: Slack formatting (bold, italic) and merge fields like {{lead.company.name}} (see mergeFields in get_slack_message_template). Up to 3000 characters; an empty string goes back to the default. |
Tool definition
What your assistant receives from tools/list:
{
"name": "set_slack_message_template",
"title": "Set the Slack message template",
"annotations": {
"title": "Set the Slack message template",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"inputSchema": {
"type": "object",
"properties": {
"websiteId": {
"type": "string",
"description": "Website ID from list_websites."
},
"template": {
"type": "string",
"maxLength": 3000,
"description": "The message: Slack formatting (*bold*, _italic_) and merge fields like {{lead.company.name}} (see mergeFields in get_slack_message_template). Up to 3000 characters; an empty string goes back to the default."
}
},
"required": [
"websiteId",
"template"
]
}
}get_slack_message_template
The template of the message posted to Slack for each lead: template (null = the default is used), defaultTemplate and mergeFields (every field a template may use).
send_slack_test_message
Posts a sample lead message (marked [Test Notification]) to a Slack channel so you can see how it looks.