Files
LocalAI/addons/slack/manifest.json
T
Ettore Di Giacinto 88aae9aa41 feat(slack): follow only the threads the bot started, and keep them
The option followThreads says which threads the bot follows without a new
mention: own (default) follows the threads that a top-level mention
started, any also follows a thread that other people started once the bot
is mentioned in it, never needs a mention each time. A mention inside a
thread that people started is answered and, in own mode, not followed.
The followed threads are kept in the add-on's data directory, written
atomically, and expire after a day without a message, so a restart or a
reconnect does not make the bot forget them.

Assisted-by: Claude Code:claude-sonnet-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-11-03 11:30:11 +00:00

51 lines
1.6 KiB
JSON

{
"schemaVersion": 1,
"id": "slack",
"version": "0.1.0",
"executable": "slack",
"os": "linux",
"arch": "amd64",
"host": { "min": 1, "max": 1 },
"api": { "min": 2, "max": 2 },
"protocol": { "min": 1, "max": 1 },
"dataFormat": { "min": 1, "max": 1 },
"capabilities": {
"connector": {
"kinds": [
{
"id": "slack",
"title": "Slack",
"description": "Talk to one of your saved agents from Slack, in direct messages and in channel threads.",
"senderHint": "A user ID (U...), a channel ID (C...) or an @name",
"delivery": "pull",
"page": "apps",
"history": { "thread": true, "maxMessages": 30 },
"options": [
{
"id": "followThreads",
"title": "Threads the bot follows",
"description": "Whether the bot answers replies in a thread without a new mention.",
"default": "own",
"values": [
{ "id": "own", "title": "Only threads it started" },
{ "id": "any", "title": "Any thread it was mentioned in" },
{ "id": "never", "title": "None: always ask with a mention" }
]
}
]
}
]
},
"ui": {
"entry": "ui/slack.js",
"css": ["ui/slack.css"],
"sdk": { "min": 2, "max": 2 },
"pages": ["apps"],
"mainPage": "apps",
"icon": "ui/icon.png",
"title": "Slack",
"description": "Bind a Slack app to one of your saved agents, so people can talk to it from Slack."
}
}
}