Repository navigation
feat(slack): tables, buttons and sections in messages from OpenWork - #7842
Conversation
Adds the slackRichMessages feature (off) and a shared composer that turns Markdown and a strict component vocabulary into Slack messages inside Slack's documented limits, with a full text fallback and a plain retry when Slack refuses the blocks. Wires it into Slack assistant answers and task reports, slack_send_as_bot, Your agent's messages and notices, and desktop handoff results. Choice buttons start the next request in the thread for the member they were addressed to. Streams rotate before Slack's 12,000 character limit instead of at 30,000.
… Slack components - The sandbox's sample Slack checks posted blocks against Slack's documented limits (Slack's error names) and draws them. - Proof: a member's agent sends a status table, a meeting follow-up and an Automation result through Den to the sample Slack, off then on. - API test: a signed choice click is accepted only from the member it was for, once, and the buttons are replaced. - docs/features/slack-rich-messages: what changes per surface, limits with sources, and a generated gallery of inputs and renders.
…rd what the interaction route now does
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Example use casesEvery picture below is drawn by the sample renderer, not by Slack. It is the sandbox's sample Slack, which checks blocks against Slack's documented limits and draws them from the Block Kit reference. Nothing here was sent to a real Slack workspace. Each picture is the message OpenWork's own code produced for the input above it. "Flag on" and "flag off" are this branch with A status report with a table (flag on)A chat or Automation sending with Tool call{
"target": "me",
"text": "Open issues this week: 4 open, 2 need you before Friday.",
"components": [
{
"type": "header",
"text": "Open issues"
},
{
"type": "table",
"columns": [
"Issue",
"Owner",
"Priority",
"Days open"
],
"rows": [
[
"[ACME-214 Export times out](https://linear.app/acme/issue/ACME-214)",
"Dana",
"Urgent",
"9"
],
[
"[ACME-221 Invoice totals round up](https://linear.app/acme/issue/ACME-221)",
"Lee",
"High",
"6"
],
[
"ACME-230 Slow search on large workspaces",
"Sam",
"Medium",
"4"
],
[
"ACME-233 Dark mode contrast",
"Riley",
"Low",
"2"
]
]
},
{
"type": "context",
"text": "From Linear, read Nov 27 at 9:02 AM"
},
{
"type": "buttons",
"buttons": [
{
"text": "Open the board",
"url": "https://linear.app/acme/team/ACME/active"
}
]
}
]
}The same report (flag off)A chat or Automation sending with Tool call{
"target": "me",
"text": "Open issues this week: 4 open, 2 need you before Friday.\n```\nIssue | Owner | Priority | Days open\nACME-214 Export times out | Dana | Urgent | 9\nACME-221 Invoice totals round up | Lee | High | 6\nACME-230 Slow search on large workspaces | Sam | Medium | 4\nACME-233 Dark mode contrast | Riley | Low | 2\n```"
}Pipeline by stage, answered in a thread (flag on)The Slack assistant's answer to a mention or DM The assistant's last message# Pipeline by stage
Two deals moved forward this week and one slipped: **Northwind** is waiting on their security review.
| Stage | Deals | Value | Change |
| --- | ---: | ---: | --- |
| Qualified | 7 | $96,000 | +2 |
| Proposal | 4 | $82,000 | +1 |
| Negotiation | 2 | $54,500 | Northwind slipped a week |
| Won this month | 2 | $31,500 | |
```slack
[
{
"type": "context",
"text": "From the CRM, read just now"
},
{
"type": "buttons",
"buttons": [
{
"text": "Open the pipeline",
"url": "https://crm.example.com/pipeline"
}
]
}
]
```A meeting follow-up with action items and owners (flag on)A chat or Automation sending with Tool call{
"target": "me",
"text": "Follow-up from the Northwind renewal call: they want the security review by Dec 4 and agreed to a two-year term.",
"components": [
{
"type": "header",
"text": "Northwind renewal call"
},
{
"type": "fields",
"fields": [
{
"label": "When",
"value": "Fri Nov 27, 10:00 AM"
},
{
"label": "Decision",
"value": "Two-year term, pending security review"
},
{
"label": "Attendees",
"value": "Alex, Dana and two from Northwind"
},
{
"label": "Next meeting",
"value": "Tue Dec 8"
}
]
},
{
"type": "divider"
},
{
"type": "table",
"columns": [
"Action item",
"Owner",
"Due"
],
"rows": [
[
"Send the security questionnaire answers",
"Dana",
"Dec 2"
],
[
"Draft the two-year order form",
"Alex",
"Dec 3"
],
[
"Confirm SSO requirements with their IT lead",
"Lee",
"Dec 4"
]
]
},
{
"type": "context",
"text": "From the meeting notes and the calendar invite"
}
]
}A daily brief from Your agent (flag on)Your agent's first check of the day The agent's message, and what OpenWork knows about the check{
"text": "Before your 10 AM with Northwind: <https://mail.google.com/mail/u/0/#inbox/18c2f|Dana's follow-up> from Thursday still has no reply, and it asks for the security questionnaire by *Dec 4*. I'd answer with a date before the call.\n\nA decision due today: Lee asked in <https://acme.slack.com/archives/C0123ABCD/p1764230400000100|#launch> whether the pricing page ships Monday or waits for legal. Nobody has answered since yesterday afternoon, and the build freezes at *5 PM*.\n\nTomorrow's 2 PM design review now overlaps the customer call that was moved this morning. I checked both invites: the customer call can't move again. I'd ask Sam to shift the review to 3.",
"sources": [
"Gmail",
"Slack",
"Google Calendar"
],
"at": 1795798920000,
"timeZone": "America/Los_Angeles",
"first": true
}An Automation result with a button to open it in OpenWork (flag on)An Automation run sending with Tool call{
"target": "me",
"text": "Your weekly signups digest finished: 468 signups, up 14% on last week.",
"components": [
{
"type": "fields",
"fields": [
{
"label": "This week",
"value": "468"
},
{
"label": "Last week",
"value": "412"
},
{
"label": "Change",
"value": "+14%"
},
{
"label": "Top source",
"value": "Docs (38%)"
}
]
},
{
"type": "context",
"text": "Weekly signups digest, ran Mon Nov 23 at 9:00 AM"
},
{
"type": "buttons",
"buttons": [
{
"text": "Open in OpenWork",
"open": "automations"
}
]
}
]
}An approval with buttons (flag on)The Slack assistant asking before it sends something The assistant's last messageHere's the reply to Dana, ready to go:
> Hi Dana, the security questionnaire answers are attached. The two open items are SSO and data retention; I'll have both to you by Wednesday.
```slack
{
"type": "choices",
"prompt": "Send this reply to Dana from your Gmail?",
"options": [
"Send it",
"Let me edit it first",
"Don't send"
]
}
```Flag on, after the member presses Send it. This picture shows the buttons being replaced and nothing more: "Send it" is queued as their next request, and no follow-up run happened here. An app needs reconnecting (flag on)Your agent, when a source it reads stops working What OpenWork knows{
"text": "Quick check: I can't read your Gmail, so I've paused checking it and kept reading the rest.",
"actions": [
{
"text": "Reconnect Google Workspace",
"url": "https://app.example.com/dashboard/library/connectors/emc_example"
}
]
}An Automation that could not run (flag on)An Automation run sending with Tool call{
"target": "me",
"text": "Your pipeline report didn't run: Google Sheets needs you to sign in again. Nothing was changed.",
"components": [
{
"type": "context",
"text": "Pipeline report, stopped Mon Nov 23 at 9:00 AM"
},
{
"type": "buttons",
"buttons": [
{
"text": "Reconnect in OpenWork",
"open": "connections"
}
]
}
]
}A finished desktop task with a table (flag on)Work handed to the desktop from Slack, when it finishes The desktop session's final message## Renewals due in December
I went through the contracts folder and the CRM export. Three renew next month and all three drafts are in `Renewals/2026-12`.
| Account | Renews | Seats | Draft |
| --- | --- | ---: | --- |
| Northwind | Dec 3 | 120 | Ready |
| Fabrikam | Dec 12 | 45 | Ready |
| Tailspin | Dec 19 | 300 | Needs the new price list |
Tailspin is the only one I couldn't finish: the 2027 price list isn't in the folder yet.The same desktop result (flag off)Work handed to the desktop from Slack, when it finishes The desktop session's final message## Renewals due in December
I went through the contracts folder and the CRM export. Three renew next month and all three drafts are in `Renewals/2026-12`.
| Account | Renews | Seats | Draft |
| --- | --- | ---: | --- |
| Northwind | Dec 3 | 120 | Ready |
| Fabrikam | Dec 12 | 45 | Ready |
| Tailspin | Dec 19 | 300 | Needs the new price list |
Tailspin is the only one I couldn't finish: the 2027 price list isn't in the folder yet. |
…tten mentions, budget the plain retry Review of the Slack components PR: - A press on a choice button is now only queued by the interactions route, which no longer calls Slack before acknowledging. The worker settles it: it rechecks the member's slackRichMessages flag, records the first answer in one transaction, and updates Slack with the recorded answer, so a second, different press can no longer be shown while the first one runs. - User mentions a model wrote are shown as text in the message body, Markdown, components and the text fallback. Mentions OpenWork adds itself are passed as trusted text. - The plain retry is budgeted with the caller's own blocks so it stays inside 50, and text alone is the last resort. - The text fallback keeps table links and keeps the buttons or question when it has to be cut. - Example pictures are labelled flag on / flag off and say they come from the sample renderer.












What is this about?
Messages the OpenWork app posts in Slack can now use Slack's own components: real tables, headers, context lines, fields, link buttons, and buttons a person presses to answer a question.
What problem does it solve?
A status report arrived in Slack as typed characters in a code block, and agents could not ask for anything better.
What was the situation before?
dev)slack_send_as_bottextonlytextplus validatedcomponentsHow is this implemented?
slackRichMessages(cloud and self-hosted, off). Safe to kill: every surface sends what it sent before, and buttons already in Slack start nothing. Internal doc.slack-assistant/rich-message.ts: Markdown or a strict component schema in, messages inside Slack's limits out (table, markdown, button, chat.postMessage). Model-written mentions never notify. Raw Block Kit is never accepted.slack-assistant/choice.ts: the interactions route only queues a press and acknowledges; the worker lets the first press from the addressed member become their next request.What else changed?
Release note
With Slack components turned on, OpenWork's messages in Slack can show real tables, headers and buttons instead of text only.
Evidence
evals/proofs/slack-rich-messages.proof.test.ts— before (flag off): the agent is offeredtextonly and the table is typed characters; after (flag on): the same call arrives as a header, a four-row table, a source line and a button.ee/apps/den-api/test/api/slack-rich-messages.api.test.ts— two different presses queue one request, and a press with the flag off queues none.