Logo Kortix Slack

Kortix Slack

Tổ chứcPhổ biến
kortix-ai
kortix-slack

How to CONNECT Slack (one command — `kortix channels connect`, prints a one-click install link) and how to answer in Slack as a teammate. Covers the live plan-block stream (`slack step` with --detail/--output, `slack send` to finalize the answer), file uploads, posting to other channels/threads, reactions, search, message editing/deletion, and how to write the answer (short, answer first), in Markdown that the platform renders as native Block Kit, with `--blocks-file` and validated patterns (references/block-kit-patterns.md) for cards, carousels, charts, data tables and buttons. Load this when the user asks to connect/set up Slack, when the turn is triggered from Slack (the prompt mentions a Slack workspace/channel/thread, or `$SLACK_CHANNEL_ID` is set in the env), when this session messages someone in Slack and needs their reply to come back (thread binding, `slack bind-thread`), or when the user asks how to do anything in Slack.

Tổng quan

Nhà phát hànhkortix-ai
Kho mãCompanyOS
Tên kỹ năngkortix-slack
Sao
20.8K
Bản fork
3.5K
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được kortix-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kortix Slack trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-slack
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-slack .claude/skills/kortix-slack
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kortix Slack trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kortix Slack ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kortix Slack với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

The slack CLI is on $PATH and just works — every call runs through the Kortix connector gateway, which resolves the Slack bot token server-side. There is no token in your sandbox and nothing to configure: don't look for $SLACK_BOT_TOKEN, don't reach for an MCP/HTTP workaround, just run the commands below. They are the full, supported surface (posting, file upload, history, reactions, search, edit/delete — all of it). Two patterns matter most:

  • slack step "..." — narrate progress. Updates the live plan block in the Slack thread as you go.
  • slack send "..." — finalize the turn with your answer. This closes the plan block and posts the reply. A turn that ends without it still answers: the platform posts your last message as the reply. That holds for a turn a colleague's report or another session's message started, too: when the report brings the person nothing new, end that turn with no text. Both forms render the same way: write the answer in normal Markdown, short and answer first, and the platform renders it as native Block Kit (headings, lists, a table, code). Use slack send --text "…" --blocks-file only for cards, carousels, charts, data tables and buttons (see <final-answer>).

Everything else (slack history, slack react, slack send --file, slack search, …) is for when the task explicitly asks for it.

Every Slack thread routes to exactly one Kortix session. A human reply in a thread goes to the session that thread is bound to. A reply in an unbound thread starts a new session: the user answers, and you never see it.

slack send --channel binds for you. When this session posts with --channel (a DM, a channel, a reply in a thread), the platform binds that thread to this session. The command output tells you the result:

sh
slack send --channel U0123ABCD --text "Can you approve the deploy?"
# {"ok": true, "ts": "1700000000.000100", "channel": "D0123ABCD",
#  "thread_binding": {"bound": true, "thread_ts": "1700000000.000100", "session_id": "<this session>"}}

Every slack send --channel prints thread_binding. Read it whenever you expect an answer. Anything but bound: true carries a hint with the next command. Act on it:

thread_bindingMeaningWhat to do
bound: trueIn a channel, a reply that @mentions the bot comes back to this session as your next turn. In a DM, every reply does.Tell the user you asked in Slack and, in a channel, to @mention the bot in the thread to answer. Then end the turn. Do not poll.
bound: false, reason: thread_bound_to_another_session, owner_session_idAnother session of this workspace owns the thread. Replies go there, not here.To take it over: slack bind-thread --channel <channel> --thread <thread_ts> --force. Otherwise post a NEW top-level message (slack send --channel <id> without --thread).
bound: false, reason: thread_owned_by_another_user / thread_owned_by_another_projectAnother person's session, or another workspace, owns the thread. --force cannot move it.Post a NEW top-level message.
bound: false, reason: workspace_unknown / bind_failedThe bind was not written. Replies will start a new session.Run slack bind-thread --channel <channel> --thread <thread_ts> once. If it fails, tell the user replies will not reach this session.
bound: false, reason: top_level_fileA top-level --file post has no thread to bind.Post a text message with slack send --channel if you expect a reply.
bound: "unknown", reason: not_reportedThe API did not report a binding.Run slack bind-thread --channel <channel> --thread <thread_ts> and read its result.

slack bind-thread — check or bind a thread explicitly

slack bind-thread --channel <id> --thread <ts> binds a thread this session did not start (for example a thread a human started), and doubles as the check "is this thread mine?":

  • {"ok": true, "bound": true, "session_id": "<this session>"} — the thread is yours (already, or now).
  • exit 1, status: 409 — another session owns the thread; the error names it. The default never takes a thread over.
  • --force moves the thread to this session: {"bound": true, "rebound_from": "<old session>"}. It works only when both sessions belong to the same workspace and were started by the same user. Otherwise it fails with status: 403 (THREAD_OWNED_BY_ANOTHER_USER / THREAD_OWNED_BY_ANOTHER_PROJECT). After a move, replies stop reaching the old session — use --force only when the user wants this session to own the conversation.

Rules:

  • Tell the human to reply IN THE THREAD. A top-level message in the DM or channel is a new thread and starts a new session. In a channel, the reply must @mention the bot to reach the session. A DM needs no mention.
  • slack send --file --thread <ts> binds that thread; a top-level --file post binds nothing.
  • Answer a bound reply with slack send "<answer>". The reply opened a Slack turn in this session, so the plain answer form works.

If the workspace isn't wired to Slack yet (or the user asks to connect/set up Slack), run:

sh
kortix channels connect

On Kortix Cloud this prints a one-click "Add to Slack" install link. Your entire job is: surface that URL to the user and tell them to open it, pick their workspace, and click Allow. That's the whole setup — the platform's shared Slack app handles the webhook, tokens, and connector materialization automatically. Verify afterwards with kortix channels status (or run kortix channels connect --wait to block until the install lands).

Do NOT:

  • walk the user through creating a Slack app at api.slack.com,
  • print or paste the app manifest,
  • ask for a bot token or signing secret,
  • mint a secret-intake link for SLACK_BOT_TOKEN/SLACK_SIGNING_SECRET,
  • add a Slack connector with kortix connectors add (the Slack channel is kortix_slack, built by Kortix; a connector you add does not connect it).

The manual path exists ONLY for self-hosted servers without the shared Slack app — and kortix channels connect detects that case itself and prints the manual instructions (kortix channels manifest + --manual). Trust its output; don't pre-empt it.

slack step "<title>" — emit a checkpoint

Call this before each major step of your work. Keep titles short, human, and present-tense. A few per task — not one per shell command.

sh
slack step "Reading the incident logs"
slack step "Cross-referencing with the deploy timeline"
slack step "Drafting the post-mortem"

--detail "<subtitle>" — short context line under the title

Use --detail to add a one-line subtitle that explains what specifically you're doing in this step. Shown while the step is in_progress.

sh
slack step "Reading the incident logs" --detail "Last 24h, severity >= warn"

--output "<result>" — concrete result attached to the PREVIOUS step

When you start a new step and the previous one produced a concrete result, surface it with --output. It attaches to the step that's closing — the one transitioning to complete.

sh
slack step "Cross-referencing with the deploy timeline" \
  --output "Found 47 ERROR lines clustered around 14:32 UTC"

slack step "Drafting the post-mortem" \
  --output "3 candidate deploys in the window; api@a3f1 looks suspicious"

Inline links inside --detail / --output

Use Slack mrkdwn link syntax <https://… |label> (NOT Markdown [label](url)). Slack server-parses these into proper rich-text link elements rendered inside the task card:

sh
slack step "Reading the incident logs" \
  --detail "Pulling from <https://datadog.example.com/dash/api-errors|Datadog API errors>"

slack step "Cross-referencing the timeline" \
  --output "Tied to <https://github.com/acme/api/commit/a3f1|api@a3f1> — auth middleware"

People and channels in a step

A step never notifies anyone. <@U0123ABCD> in a step's title, --detail or --output shows as the person's name (@Sam Rivera), and <!here> shows as text. <#C0123ABCD> shows as the channel. To notify someone, mention them in slack send.

--source URL|TITLE — citation footer

Attach structured citations to the closing task. Slack renders them as a sources strip under that task's card. Put several sources in ONE --source value, one URL|TITLE per line ($'…' or a heredoc). A repeated --source flag keeps only the last one.

sh
slack step "Drafting the post-mortem" \
  --output "3 candidate deploys" \
  --source $'https://github.com/acme/api/commit/a3f1|api@a3f1
https://datadog.example.com/dash/api-errors|Datadog dashboard'

Up to 8 sources per task, titles auto-trim at 80 chars.

So the natural pattern, end-to-end, looks like:

sh
slack step "Reading the incident logs" --detail "Last 24h, severity >= warn"
# ... do the work ...
slack step "Cross-referencing the deploy timeline" \
  --output "47 ERROR lines around 14:32 UTC" \
  --detail "Walking back from the first error"
# ... do the work ...
slack step "Drafting the post-mortem" \
  --output "Pinned to api@a3f1 — auth middleware change" \
  --detail "Writing root cause + remediation"
# ... do the work ...
slack send "It was api@a3f1 — the new auth middleware drops the trace header on retries. Reverting now."

Rules

  • Use slack step to mark phase transitions, not every shell call. ~3–6 per turn is right for most tasks; one per bash is noise.
  • Every slack step starts a new step. --detail belongs to the new step; --output and --source belong to the step it closes. A step cannot be edited: to correct one, start the next.
  • Keep them short. --detail and --output get truncated at 500 chars upstream; aim for one tight sentence.
  • Don't slack step after you've called slack send. The plan is closed. A later step exits non-zero with reason: turn_finalized.
  • A step that did not reach the thread FAILS — it never answers ok: true. slack step exits 1 with {"ok": false, "code": "STEP_NOT_RELAYED", "reason": "<why>", "error": "…<what to do>"}. Read reason, then act:
    • no_open_turn — this run was not started from Slack (a web prompt on a Slack-born session), or the turn was already closed. Keep working; if the user is waiting in a thread, post there with slack send --channel <id> --thread <ts>.
    • turn_finalized — you already answered this turn. One slack send per turn.
    • relay_request_failed — the Kortix API refused the relay (auth, 5xx, timeout). That is a platform problem, not a missing turn: retry once, then report it in the thread with --channel/--thread.
    • stream_open_failed / post_failed — Slack rejected the message. Continue; deliver the answer with slack send at the end. Never assume a step was seen when the command failed.

The plan block is a posted message the server edits in place. It is not an open stream, so Slack cannot auto-fail it. A long, silent step (a build, a test suite, an agent subagent) does not paint an error and does not end your run. The server closes a thread on its own only when your run has ended and no slack send reached the thread within 30 minutes. That thread then shows "This run ended without a reply."

Do not run heartbeat loops (while sleep …; do slack step …; done). They buy nothing, and a loop left running after slack send is a leak.

A wall of nothing for ten minutes is still bad UX:

  • Post a step before anything slow — git clone, pnpm install, a test suite, a build, pnpm preview, deep research, a big LLM call, an agent subagent — so the thread shows what you are waiting on.
  • Narrate long work in phases. slack step "Installing deps" → slack step "Running typecheck" → slack step "Running tests" reads better than one silent 12-minute block.
  • Space steps at real phase boundaries. Ten steps in two seconds add noise, not information.

A Slack reply is a message from a teammate, not a report.

  1. The first 1–2 sentences are the answer: the result, the number, yes or no, or the decision you need.
  2. Most replies are 1–4 short paragraphs or one short list. Stop when the question is answered.
  3. No preamble and no recap. Do not open with "Sure!" or "I took a look at…". Do not restate the question. Do not close with "Let me know if…".
  4. Use structure only when the content has structure. Steps are a numbered list. Three or more parallel items are bullets. Items with the same attributes are a table. A short reply has no heading.
  5. Long-form is fine for research, reports and post-mortems. Then: the headline answer first, ## headed sections, a table for comparisons, sources at the end.
  6. More than ~400 words goes in a file. Write the full text to a file or a Drive document. Post the summary with the link, or attach the file with slack send --file (see <files-and-artifacts>).
  7. Mention people only to notify them. <@U…> pings the person, and <!here> / <!channel> ping everyone in the channel. Use those two only when the user asks. Write other names as plain text.

Markdown is the default

The platform renders your answer as native Block Kit. This applies to slack send "<markdown>" and to the turn's last message when you end without slack send. Write normal Markdown. Never hand-build Block Kit for prose.

markdown
**Checkout errors are back to baseline.** I rolled back `api@a3f1` at 14:51 UTC. <@U0123ABCD> owns the follow-up.

## What happened
1. The deploy reached 100% at 14:32.
2. The new auth middleware dropped the trace header on retries.
   - 3% of checkout requests failed for 19 min.

| Region | Failed requests | Error rate |
|---|---|---|
| eu-west | 1,204 | 3.1% |
| us-east | 860 | 2.4% |

> The fix is in [PR #8421](https://git.example.com/org/api/pull/8421).

- [x] Roll back
- [ ] Add a retry test

Sources: <https://metrics.example.com/d/checkout|checkout dashboard>
You writeSlack shows
# Title, ## Sectiona header block (150 characters max)
### Sub-section and deepera bold line
**bold** or *bold*, _italic_, ~~strike~~, `code`rich text styles. Single asterisks are bold, so write italic as _x_.
- item, 1. item, nested by indent, - [ ] taskrich lists; tasks show ☐ / ☑
a GFM tablea native table, numbers right-aligned. One table per message; a second one renders as monospace text.
> quotea quote
a fenced code block with a languagea code block
---a divider
![alt](https://…) alone on its linean image (the URL must be public)
[label](url), <https://…|label>, <@U…>, <#C…>, :emoji:, <!date^…>links, mentions, channels, emoji, localized dates

An answer longer than ~12,000 characters or ~48 blocks is cut. Keep it well below that limit and link a file for the rest.

A post with slack send --channel … (a sibling message, a DM, another channel) renders the same way, and its blocks go through the same checks as below.

When to use --blocks-file

Use Block Kit JSON only for layouts Markdown cannot express: cards, carousels, data tables, charts, layouts, collapsible containers and buttons.

sh
slack send --text "<the answer in one line>" --blocks-file /tmp/answer.json
  • --text carries the real answer in one line. Notifications and screen readers show only --text. If Slack rejects the blocks, the thread shows --text followed by the plain text of your blocks. Never write "Done." or "See below".
  • Prose goes in a markdown block. {"type":"markdown","text":"…"} between cards renders exactly like a Markdown answer.
  • Validate before you send. curl -s https://slack.com/api/blocks.validate --data-urlencode "blocks@/tmp/answer.json" returns {"ok":true}. It needs no token. It checks block fields only, not the per-message limits below.
  • Copy a pattern. references/block-kit-patterns.md has a validated template for every row with a pattern name below. Read it before you write blocks.
ContentLayoutHow
Status update1–3 lines of Markdown. Several items with states: tag pills.Markdown, or pattern "Status update with tag pills"
Yes/no answerThe answer in bold first, then 1–2 lines of reasonMarkdown
ComparisonThe recommendation first, then a Markdown table. Options the user picks from, each with a picture or details: a carousel.Markdown, or "Carousel of options"
List of items or ticketsUp to 5: a Markdown list with links. A button per item: sections. More than 5, or sortable: a data table.Markdown, "Ticket list: small", "Ticket list: data table"
Table of numbers, budget, expensesA Markdown table (numbers right-align). Next to buttons, a card or a chart: a table block.Markdown, or "Budget / expense table"
KPI strip2–3 numbers side by side"KPI strip"
Trend, share of a wholeA chart, with the key number in text above it"Data visualization: bar / line / pie"
Research result with sourcesMarkdown: headline answer, ## sections, a table, a sources list at the end. With citations and collapsed detail: blocks.Markdown, or "Deep research result"
Incident summaryHeader with severity, fields, timeline, cause, links"Incident summary"
Deploy or PR previewA card with a screenshot and link buttons"Deploy / PR preview card"
Approval request (your own next step)One action: a card. Several: a carousel."Approval card", "Approval carousel"
Schedule, itinerary, calendarSections with <!date^…> times and fields"Itinerary / schedule"
ErrorMarkdown: what failed, why, what is saved, the next step. One-click fixes: recovery buttons.Markdown, or "Error with recovery buttons"
ChoicesThe question tool, never a list in a message<asking-the-user>
File or log outputUp to ~15 lines: a fenced code block. Longer: a collapsed container, or slack send --file.Markdown, or "Log output"

Limits that matter

Slack rejects a whole message for one field over a limit. The server fixes what it can before it posts:

ItemLimitOver the limit, the server…
Blocks per message50. The platform uses 2 (the plan block and the footer), so you have 48.keeps the first 48
header150 characters, plain textclips it
sectiontext 3,000 characters; up to 10 fields of 2,000clips them
context / actions10 elements / 25 elements; button label 75 characterskeeps the first ones; clips labels
cardtitle and subtitle 150, body and subtext 200, up to 3 buttons, buttons onlyclips text; keeps the first 3 buttons
carousel1–10 cards, cards onlykeeps the first 10
table100 rows × 20 columns, 10,000 characters across all cells, one per messagetrims rows and columns; renders a second table as monospace text
data_tablea header row plus 200 rows, 20 columns, caption required, 20,000 charactersnothing: Slack rejects it
data_visualization2 per message; title 50; pie 1–12 segments; bar, line, area 1–12 series × 1–20 points; labels 20drops a third chart
markdown12,000 characters across all markdown blocks of the messagerenders it; drops markdown past 12,000
container10 child blocks; no markdown, card, carousel, data_table or chart insidekeeps 10; renders a markdown child as rich text
alertmodals only, not messagesconverts it to a section
plan, context_actions, file, auth_providernot for agent messagesdrops them
**bold** or [label](url) in a mrkdwn fieldmrkdwn uses *bold* and <url|label>converts them

If Slack still rejects the blocks, the answer falls back to --text followed by the plain text of your blocks (headers, sections, card bodies, table rows).

Buttons

  • Link button (has url): opens the link. It does not start a turn.
  • Action button (has action_id and value, no url): a click starts your next turn in the same thread with [Button click] The user clicked *<label>*., the action_id and the value. Put what you need to act in value, for example pr:128:merge.
  • Every click starts a turn, a repeated click too. Check whether the action already ran before you run it again.
  • Only buttons deliver a choice. A select menu, overflow menu, date picker, checkbox or input in your message does not pass the picked value to you.
  • A button needs this session's thread. It works on your answer and on a slack send --channel … --thread … post. A top-level post with no thread drops the click.
  • One primary button per message. Leave Skip, Cancel and Reject unstyled.
  • Kortix prefixes are reserved. An action_id that starts with approval_, qa_, review_, set_agent or another Kortix prefix is renamed, so it can never act as a platform control.
  • Approvals that grant something stay with Kortix's own approval flow. Connector approvals, access requests and permission grants post Kortix's approval card. Never build an agent button for them. Your own Approve button only tells you to go ahead with your next step. The action still runs under the normal connector rules.

One slack send per turn

Each turn finalizes exactly one answer. A second slack send exits 1 with reason: turn_finalized. To deliver several things, put them in one message, or post siblings with slack send --channel ... --thread ....

When slack send fails

A slack send with no --channel is the turn's answer. When it cannot be delivered into a Slack turn it exits 1 with {"ok": false, "code": "ANSWER_NOT_RELAYED", "reason": "<why>", "error": "…<what to do>"} — it never prints ok: true for an undelivered answer. no_open_turn means this run was not started from Slack, or the turn was closed before you answered; if the user is waiting in a thread, deliver the same answer with slack send --channel <id> --thread <ts> (the channel and thread are in the prompt header and in $SLACK_CHANNEL_ID / $SLACK_THREAD_TS). relay_request_failed is a Kortix API failure, not a missing turn: retry once, then post with --channel/--thread.

A loop fire is not a Slack turn either. When you set a loop (kortix loop) from a Slack thread, write the channel id and thread ts into the loop text — e.g. kortix loop "Check whether the deploy finished; post the result with slack send --channel C0123ABCD --thread 1727600000.000100" --in 30m — and answer the fire with slack send --channel <id> --thread <ts>. A plain slack send on that turn exits 1 with no_open_turn.

Rule: if your reply asks the user to choose, call the question tool. Never put a list of choices inside slack send.

slack send finalizes the turn and closes the live stream — once it fires, the user can only reply with free text. A list of choices written into it cannot be clicked.

When the turn is Slack-triggered, the Kortix server posts the question(s) into the thread: each question in bold, the option descriptions listed under it, and one clickable button per option. The tool returns at once with a note telling you to end your turn — it does not block, and it does not return the user's answer. END the turn.

The answer arrives as your NEXT turn, with full context:

  • a button click → Answering your question "<question>": and the picked label;
  • a reply typed in the thread → the message itself.
When you want to…Use
Ask the user to choosequestion tool
Offer options that each need a picture or details to choose wella carousel of cards (references/block-kit-patterns.md, "Carousel of options"); a click starts your next turn
Ask something genuinely open-endedslack send with the question
Deliver the final answer / summaryslack send (Markdown)
Show progress along the wayslack step
Post a separate message to another channelslack send --channel ...

Calling the question tool

Per the tool's schema, every option has a label (1–5 words) and a description:

jsonc
{
  "questions": [
    {
      "question": "Which environment should I deploy to?",
      "header": "Environment",          // short label (max 30 chars)
      "options": [
        { "label": "Production", "description": "Live traffic; needs a rollback plan" },
        { "label": "Staging",    "description": "Mirrors prod data; safe to break" },
        { "label": "Dev",        "description": "Sandbox; no real users" }
      ]
    }
  ]
}

Rules

  • One question per call when the answers depend on each other. Each click starts its own turn and carries one answer. Several questions in one call post several rows of buttons, and the user clicks them one at a time.
  • multiple and custom change nothing in Slack. Every option is a one-click button, and a reply typed in the thread always works.
  • Put the tradeoff in description. A button shows only its label; the descriptions are listed above the buttons.
  • Skip trivial yes/no when context implies the answer. Ask only what blocks you — not "are you sure?" rituals.

File upload is fully supported — slack send --file is the way. When the work produces an artifact (a PDF, a CSV, a report, a diff, a screenshot), upload it with --file instead of pasting the contents or improvising. Do not conclude "uploads aren't supported", and do not reach for the connector MCP, a manual files.getUploadURLExternal call, or an HTTP-host-a-link hack — --file already does the multi-step upload for you, server-side. It requires a --channel and (typically) a --thread so it lands under the answer:

sh
slack send \
  --channel "$SLACK_CHANNEL_ID" \
  --thread  "$SLACK_THREAD_TS" \
  --file    /workspace/output/report.md \
  --text    "Full report ↓"

$SLACK_CHANNEL_ID and $SLACK_THREAD_TS are pre-set on Slack-triggered turns. Use them.

Note: slack send --file ... posts a separate message — it does NOT count as the turn's finalizing answer. Combine it with a regular slack send "..." to also close the stream:

sh
slack send --channel "$SLACK_CHANNEL_ID" --thread "$SLACK_THREAD_TS" \
  --file /workspace/output/report.md --text "Full report attached."
slack send "Pulled 12,847 sign-ups, grouped by source. CSV above."

Read prior thread context

sh
slack history --channel "$SLACK_CHANNEL_ID" --limit 20            # the channel's recent messages
slack thread  --channel "$SLACK_CHANNEL_ID" --ts "$SLACK_THREAD_TS"  # this thread's replies

Each message carries user, the author's id, and user_name, the author's display name when Slack has one. Write people's names from user_name in an answer. Use <@user> only to mention someone, because a mention notifies them.

Where you can read and write

One Slack workspace runs in one Kortix workspace, and you move through it like a teammate, under your own connector rules:

  • Public channels: read and post anywhere. A read of a public channel the bot is not in joins it and reads again, by itself: you do not need slack join first.
  • Private channels, group DMs and DMs: the bot must be in them (a person invites it to a private channel). You read one only when the person you work for is in it too; otherwise the read is refused with slack_private_conversation. A private channel the bot is not in answers channel_not_found: ask the person to invite the bot.
  • Writes (slack send, --file, slack edit, slack delete, slack react, slack unreact, slack join, slack bind-thread) go anywhere the bot may post. Pass --channel as the id (C0123ABCD, or a user id U0123ABCD for a DM), never a channel name.
  • slack_not_linked means this Kortix workspace no longer holds the Slack workspace (another one installed Slack). Tell the user to connect Slack again from this workspace.

On a refusal, do not retry with another id. Tell the user what the error message says.

React to a message

sh
slack react   --channel "$SLACK_CHANNEL_ID" --ts "$SLACK_TRIGGER_TS" --emoji "white_check_mark"
slack unreact --channel "$SLACK_CHANNEL_ID" --ts "$SLACK_TRIGGER_TS" --emoji "eyes"   # remove one you added

A "seen it" reaction (eyes, hourglass, thinking_face, …) is temporary. The platform already marks the message ⏳ while you work, so you rarely need one. If you add one, remove it with slack unreact right after slack send. A marker left behind reads as "still working" forever.

Post to a different channel (announcements, cross-posts)

sh
slack send --channel "C0123ABCD" --text "Heads up: rolled api@a3f1 forward."

A channel of another Kortix workspace refuses the post (see "Reads and writes stay inside this workspace").

Edit / delete a message you posted earlier

sh
slack edit   --channel "$SLACK_CHANNEL_ID" --ts "<msg_ts>" --text "Updated answer."
slack delete --channel "$SLACK_CHANNEL_ID" --ts "<msg_ts>"

Search the workspace

sh
slack search --query "deploy api@"

Look up users / channels

sh
slack users
slack user        --id "U0123ABCD"
slack channels
slack channel-info --channel "C0123ABCD"
slack me

Download a file shared in the thread

sh
slack file-info --file "F0123ABCD"
slack download  --url "<file.url_private>" --out /workspace/incoming/x.png

Full help: slack help.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Kortix Slack làm được gì?

How to CONNECT Slack (one command — `kortix channels connect`, prints a one-click install link) and how to answer in Slack as a teammate. Covers the live plan-block stream (`slack step` with --detail/--output, `slack send` to finalize the answer), file uploads, posting to other channels/threads, reactions, search, message editing/deletion, and how to write the answer (short, answer first), in Markdown that the platform renders as native Block Kit, with `--blocks-file` and validated patterns (references/block-kit-patterns.md) for cards, carousels, charts, data tables and buttons. Load this w...

Vì sao nên dùng Kortix Slack trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kortix Slack là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kortix Slack trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-slack. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kortix Slack?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kortix Slack với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kortix Slack với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kortix Slack có miễn phí không?

Kỹ năng này được kortix-ai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇