manage_automation_templates
Reusable automation templates (Automate → Templates in the app): list, get, create, and edit them. A template bundles trigger keywords, many comment-reply variations (comment_reply_template for 1st-degree commenters, non_first_degree_reply_template for the rest), DM variations (dm_templates, rotated; more than one is Pro+), follow-ups, and options like auto_connect and the ICP gate. Use a template's id as template_id when scheduling a post with an automation, or copy its fields into create_automation. Text supports {{firstName}}, {{lastName}}, {{fullName}}, {{linkedinUsername}}, {{linkedinUrl}}, and {{link}}: a per-post resource link filled in when you schedule a post with schedule_post_with_automation (automation.template + keyword + resource_link), so one template serves many posts; comment replies can also @mention with {{firstNameMention}} / {{fullNameMention}} (not in DMs). 'edit' changes only the fields you send; arrays you send replace the whole list. Editing never changes automations or scheduled posts already created from the template (they keep their own copy). Limits: name 100 chars, up to 20 variations per list and 20 keywords, 1000 chars per DM / follow-up, 1250 per comment reply. Apex-only options (send_if_liked, send_basedon_dm) are switched off with a warning on lower plans. To delete a template use delete_automation_template.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "manage_automation_templates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | create (required) / edit: template name, unique among your templates (max 100 chars). | |
| page | No | list: page number (default 1). | |
| limit | No | list: templates per page (1-100, default 20). | |
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| action | No | 'list' (default), 'get', 'create', or 'edit'. | |
| search | No | list: filter by name (contains). | |
| page_id | No | create/edit: attach one of your Pages (id from list_lead_pages). Null detaches. | |
| icp_gate | No | create/edit: only DM people who match your Ideal Customer (default 'off'). | |
| keywords | No | create/edit: trigger keywords (max 20). Empty = every commenter. | |
| auto_like | No | create/edit: like the comment (Pro+). | |
| description | No | create/edit: optional note (max 500 chars). | |
| template_id | No | get / edit (required): the template id, from list. | |
| auto_connect | No | create/edit: send a connection request to non-connections who comment. | |
| dm_templates | No | create/edit: DM variations, rotated (max 20; more than one is Pro+). | |
| links_enabled | No | create/edit: track leads.sh links in the DMs. | |
| send_if_liked | No | create/edit: only DM people who also liked the post (Apex). | |
| only_repost_dm | No | create/edit: only DM reposters (needs repost_specific_dm). | |
| send_basedon_dm | No | create/edit: Apex option send_basedon_dm (Apex). | |
| enable_follow_up | No | create/edit: send a follow-up DM (needs follow_up_template and follow_up_delay_minutes). | |
| follow_up_template | No | create/edit: follow-up DM text. | |
| repost_specific_dm | No | create/edit: a different DM for people who repost (Pro+). Null removes it. | |
| follow_up_template_2 | No | create/edit: second follow-up text (Pro+). Null removes it. | |
| follow_up_template_3 | No | create/edit: third follow-up text, sent after the second (Apex; Pro+ gets 2 follow-ups, Pro 1). Null removes it. | |
| comment_reply_template | No | create/edit: public reply variations for 1st-degree commenters (max 20, rotated). | |
| follow_up_delay_minutes | No | create/edit: minutes after the first DM (1-10080). | |
| follow_up_delay_minutes_2 | No | create/edit: minutes after the first follow-up (1-10080, default 1440 = 1 day). | |
| follow_up_delay_minutes_3 | No | create/edit: minutes after the second follow-up (1-10080, default 1440 = 1 day). | |
| follow_up_only_if_no_response | No | create/edit: skip the follow-up if they replied (default true). | |
| repost_comment_reply_template | No | create/edit: reply variations for reposters (max 20). | |
| non_first_degree_reply_template | No | create/edit: reply variations for commenters who are not connections (max 20). |