Logo Kortix Teams

Kortix Teams

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

How to CONNECT Microsoft Teams (`kortix channels connect --platform teams`, prints a tenant-admin consent URL) and how to answer in Teams as a teammate. Covers the live Adaptive Card stream (`teams step` with --detail/--output/--source, `teams send` to finalize the answer), sending and downloading files (the consent-card upload flow + `teams download`), reading teams/channels/members through connector calls, asking the user, and the tone the bot should use. Load this when the turn is triggered from Teams (the prompt mentions a Teams tenant/conversation, or `$MS_TEAMS_CONVERSATION_ID` is set in the env), or when the user asks how to do anything in Teams.

Tổng quan

Nhà phát hànhkortix-ai
Kho mãCompanyOS
Tên kỹ năngkortix-teams
Sao
20.8K
Bản fork
3.5K
Tệp đi kèm
Chỉ có hướng dẫn
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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • 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 Teams 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-teams
  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-teams .claude/skills/kortix-teams
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 Teams 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 Teams 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 Teams 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.

sh
kortix channels status --platform teams     # is this project connected?
kortix channels connect --platform teams    # prints the Microsoft admin-consent URL

connect prints an admin-consent URL. The user opens it and grants tenant-wide consent; the app is then published to their Teams catalog automatically. There is no app to create by hand and no token to paste — a Microsoft tenant admin has to be the one who approves it, so if the user isn't an admin, they need to forward that link to someone who is.

kortix channels disconnect --platform teams removes an installation; kortix channels manifest --platform teams prints the app manifest and is only for manual/self-host setup (the consent flow never needs it).

Channels vs personal chats. In a personal chat every message reaches you. In a team channel or group chat, Teams only delivers a message when the bot is @-mentioned — UNLESS the tenant admin has consented to the "receive all channel messages" permission, after which a reply in a thread the bot already owns continues the session without a mention. Either way, a new channel post needs the mention.

The teams CLI is on $PATH and just works — there is no token in your sandbox and nothing to configure. Turn replies are owned and rendered by the Kortix server; vendor reads run through the Kortix connector gateway, which resolves the Microsoft Graph credential server-side. Don't look for an app password, don't reach for an MCP/HTTP workaround — just run the commands below. Two patterns matter most:

  • teams step "..." — narrate progress. Repaints the live Adaptive Card in the Teams conversation as you go.
  • teams send "..." — finalize the turn with your answer. This closes the live card and renders the reply. Markdown (headings, code, fenced blocks, tables, lists) is converted to card elements, so write normally.
  • teams send --card-file <path> — deliver a full Adaptive Card JSON as the reply instead of text, for rich layouts. The JSON's top-level type must be "AdaptiveCard".

Everything else (teams send --file, teams download, teams channels, …) is for when the task explicitly calls for it.

teams 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
teams step "Reading the incident logs"
teams step "Cross-referencing with the deploy timeline"
teams step "Drafting the post-mortem"

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

A one-line subtitle that explains what specifically you're doing in this step. Shown while the step is in progress.

sh
teams 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
teams step "Cross-referencing the deploy timeline" \
  --output "Found 47 ERROR lines clustered around 14:32 UTC"

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

--source URL|TITLE — citation footer

Attach citations to the closing step. Put several sources in ONE --source value, one URL|TITLE per line. A repeated --source flag keeps only the last one.

sh
teams 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 step; titles auto-trim at 80 chars.

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

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

Rules

  • Mark phase transitions, not every shell call. ~3–6 per turn is right for most tasks; one per bash is noise.
  • Set --detail and --output once per step. They're truncated at 500 chars upstream; aim for one tight sentence.
  • Don't teams step after teams send. The card is closed once the answer ships; a later step fails (exit 1, STEP_NOT_RELAYED).

The flip side: Teams rate-limits how fast a message can be edited, so the server coalesces rapid updates. Two practical consequences:

  • Don't spam steps. Firing ten teams steps in two seconds is pointless — intermediate edits get dropped by the throttle and only the latest survives. Space them at real phase boundaries.
  • Still don't go dark for ages. A live run has no timeout to trip, but a wall of nothing for ten minutes is bad UX. Post a step before anything slow (git clone, pnpm install, a test suite, a build, deep research, a big LLM call) so the conversation always shows fresh, honest progress.

The rule of thumb: one checkpoint per meaningful phase — enough that a teammate watching always knows what's happening, not so many that you're fighting the throttle.

sh
teams send "Reverted api@a3f1 — the new auth middleware dropped the trace header on retries. Errors are back to baseline."

This finalizes the live card: the "Working on it…" title goes away, your answer renders below the steps, and a link back to the Kortix session is appended automatically. The server wraps your text into the Adaptive Card — you don't build the card yourself; just write a clear, well-structured message.

  • One teams send per turn. It closes the card; a second call fails (exit 1, SEND_NOT_RELAYED). If you have multiple things to say, fold them into one message.

  • Send the answer LAST. A teams step after it fails.

  • A link the user should open goes on its own line — it renders as a button:

    sh
    teams send "Gmail is not connected yet.
    
    [Connect Gmail](https://…)
    
    The link expires in 30 minutes. Reply **done** when you have connected it."

    Write the label as a short action (Connect Gmail, Open the pull request, Review the draft), at most 40 characters. Up to three link lines in one paragraph form a row of buttons; more stay a plain list. A connect link from kortix connectors connect is always a button, even inside a sentence. Every other link inside a sentence stays an ordinary link.

It renders a real card, the same shape as asking in the Kortix app:

  • one question, up to 6 options, one answer → a button per option, one tap;
  • several questions, a multi-select, or more than 6 options → a form: each question with its options listed, a box for an answer of their own, and one Submit;
  • a question with no options → a text box.

Put the detail in each option's description — the card shows it. The user can always reply in the chat instead of using the card, so a closed list never traps them. The tool returns at once with a note telling you to end your turn — it does not block. The user's answer arrives as your NEXT turn, with full context. Don't sit waiting for it inside a turn.

A numbered list of choices written into teams send is the wrong shape: the user cannot tap it. Use teams send for a question only when it is genuinely open-ended prose with nothing to pick.

jsonc
{
  "questions": [
    {
      "question": "Which environment should I deploy to?",
      "header": "Environment",          // shown above the question (max 30 chars)
      "options": [
        { "label": "Production", "description": "Live traffic; needs a rollback plan" },
        { "label": "Staging",    "description": "Mirrors prod data; safe to break" }
      ]
      // "multiple": true lets the user pick several
    }
  ]
}

The answer comes back labelled with its question, one line per question.

teams ask --form-file <path> — a form the question tool cannot express

When you need an input the question tool has no shape for — a date, a time, a number, a toggle — write the form yourself. Teams renders it as a card with real text boxes, dropdowns, toggles and one Submit button. Write a small JSON spec; the server builds the card.

sh
cat > /tmp/form.json <<'JSON'
{
  "title": "Deploy details",
  "subtitle": "Two things before I start",
  "submitLabel": "Deploy",
  "fields": [
    { "id": "env", "label": "Environment", "type": "choice",
      "choices": ["prod", "staging"], "required": true },
    { "id": "notes", "label": "Anything I should know?", "type": "textarea" },
    { "id": "dry", "label": "Dry run first", "type": "toggle" }
  ]
}
JSON
teams ask --form-file /tmp/form.json --text "Before I deploy:"

Field type: text, textarea, number, date, time, choice, multichoice, toggle. Add placeholder, value (prefill) and required. Up to 12 fields, 24 choices each.

ask finalizes the turn, exactly like send. The user's Submit arrives as your NEXT turn with their answers, so post the form and then END your turn.

When you want to…Use
Ask anything with choices — one question or severalthe question tool
Ask for a date, time, number, or toggleteams ask --form-file
Ask something genuinely open-endedteams send with the question
Deliver the final answerteams send
Show progress along the wayteams step
Send a fileteams send --file

Whichever you use, the reply arrives as your NEXT turn. Ask, then END the turn.

When the work produces an artifact (a PDF, CSV, report, diff, screenshot), offer it with --file. The server picks the delivery from the env — you always just run teams send --file:

  • An image (PNG, JPEG, GIF, WebP) → shown inline in the conversation, in every scope: personal chat, group chat, channel.
  • Any other file, personal chat → a file consent card: you offer the file, the user clicks Accept, and only then does Teams upload it. Two-step and asynchronous.
  • Any other file, channel → uploaded to the team's SharePoint drive and shared as a link card (needs the bot app's Files.ReadWrite.All permission — if it is missing, the command returns a clear error you can relay).
  • Any other file, group chat → not possible: Teams gives a bot no way to send a file into a group chat. Share a link in teams send instead.

An image too large for Teams to show inline falls back to the same path as any other file; in a group chat the command returns an error that asks for a smaller image.

The conversation context is taken from the env, so you don't pass IDs:

sh
teams send --file /workspace/output/chart.png --text "Sign-ups by source"
teams send --file /workspace/output/report.pdf --text "Incident report — accept to download."
  • --text is the caption, or the consent-card description (what the user sees before accepting). Optional.
  • --file posts a separate message — it does not finalize the turn. Follow it with a regular teams send "..." to close the live card:
sh
teams send --file /workspace/output/report.pdf --text "Full report — accept to download."
teams send "Pulled 12,847 sign-ups grouped by source. Report offered above; accept it to grab the PDF."
  • Upload limit ~4 MB. For anything larger, share a link in teams send instead of attaching.

Downloading a file shared in the conversation: teams download

When a teammate attaches a file to their message, its name and download URL are listed in your prompt under "Attached files". Pull it into the sandbox to work on it:

sh
teams download --url "<downloadUrl from the prompt>" --out /workspace/incoming/data.csv

The download runs through the Kortix server (the credential stays server-side); you just give the URL and an output path.

Images: download, then just look at them

A pasted screenshot arrives as an attachment marked (image) — in a personal chat, a group chat, and a channel alike. Download it and open it with the read tool — you can see images directly.

sh
teams download --url "<downloadUrl from the prompt>" --out /workspace/attachment.png
# then: read /workspace/attachment.png

Kortix runs an image-bearing turn on a model that can see images, so this works even when the conversation's usual model is text-only.

Do not go looking for OCR. ImageMagick, tesseract, PIL and an image-captioning API are all the wrong move — if read shows you the image, describe what you see. If it genuinely does not, say so in teams send rather than ending the turn silently.

In a channel the bot acts only on messages that @mention it. The discussion you were asked about is NOT in your session. Read it:

sh
teams thread              # the thread you were mentioned in: the root post + every reply
teams history --limit 20  # recent posts in this channel

Both print JSON: messages[] with from, text (HTML stripped), at, and id, oldest first. Deleted and system messages are dropped. The channel, thread, and team come from the env — pass --team, --channel, or --message only to read somewhere else.

  • In a personal chat you need neither. Every message there already reaches this session. Both commands return NOT_A_CHANNEL.
  • NO_TEAM: Teams did not send the team id with this message. Pass --team <team-id> if the user gave you one; otherwise say in teams send that you cannot read the channel. Do not guess an id.
  • A 403 from Microsoft Graph means the Kortix app is not installed in that team, or the tenant has not granted it permission to read messages. Say so in teams send; do not retry.
  • conversation_not_in_project: every Kortix workspace in a tenant shares one app, so reads reach only this workspace's conversations. The channel or thread belongs to another workspace, or this workspace has no conversation in that channel while the tenant has several workspaces. Do not retry with another id. Say so in teams send, using the error's message.
  • teams history prints the help instead of JSON: this sandbox was built before the command existed. Say you cannot read the channel from here.

teams send answers the message you are handling. To post somewhere else — a nightly summary into a team channel, an alert, a hand-off note — use teams post. It does not touch the current turn.

sh
teams conversations                                    # what you may post into
teams post --conversation "19:...@thread.tacv2" "Nightly build is green."
teams post --conversation "19:..." --card-file /tmp/report.json

teams post prints the posted message's messageId. Keep it to change the message later instead of posting a correction under it:

sh
teams edit   --conversation "19:..." --message "<messageId>" "Nightly build is green (re-run)."
teams edit   --conversation "19:..." --message "<messageId>" --card-file /tmp/report.json
teams delete --conversation "19:..." --message "<messageId>"

Only a message the bot posted can be edited or deleted. Teams gives a bot no way to add a reaction.

You can only post into a chat or channel the bot is already in for this workspace. Anything else returns 404 — list the targets first rather than guessing an id.

Look up teams, channels, members, users

sh
teams team     --team "<team-id>"
teams channels --team "<team-id>"
teams channel  --team "<team-id>" --channel "<channel-id>"
teams members  --team "<team-id>"
teams user     --id "<user-id-or-upn>"

$MS_TEAMS_TENANT_ID, $MS_TEAMS_CONVERSATION_ID, $MS_TEAMS_SERVICE_URL, and $MS_TEAMS_USER_ID are pre-injected on Teams-triggered turns. Use them — don't hard-code IDs. Full help: teams help.

  • No preamble. Don't open with "Sure!" / "I've taken a look and…". Get to the answer.
  • Standard Markdown. Teams Adaptive Cards render normal Markdown — **bold**, _italic_, `code`, [label](url) links, - bullet lists. This is the opposite of Slack — do NOT use Slack's *single-asterisk* bold or <url|label> links here; they render as literal text.
  • Short. A few sentences beat a wall of text. Use bullet lists for ≥3 items.
  • No XML, no "Here's a summary:" headers. This is a chat message, not a report.

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

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

How to CONNECT Microsoft Teams (`kortix channels connect --platform teams`, prints a tenant-admin consent URL) and how to answer in Teams as a teammate. Covers the live Adaptive Card stream (`teams step` with --detail/--output/--source, `teams send` to finalize the answer), sending and downloading files (the consent-card upload flow + `teams download`), reading teams/channels/members through connector calls, asking the user, and the tone the bot should use. Load this when the turn is triggered from Teams (the prompt mentions a Teams tenant/conversation, or `$MS_TEAMS_CONVERSATION_ID` is set...

Vì sao nên dùng Kortix Teams 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 Teams 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 Teams 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-teams. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Teams?

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 Teams 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 Teams 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 Teams 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 👇