You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 82b66b1
Browse filesBrowse the repository at this point in the historyBrowse files
feat(slack): stream an Agent's tool-call timeline without its text (#10370)
* feat(slack): stream an Agent's tool-call timeline without its text
Slack triggers gain streamTimelineSources (Agent blocks, including child
workflows) and streamToolLabels. A timeline source streams through the
executor as usual, but only its tool steps and optional thinking reach
Slack; its text is drained and never posted. The first message of an
execution is shared by timeline steps and the first answer, and is
owned and stopped by the controller. Deployed configs without the new
fields read as empty, so no redeploy is needed.
* fix(slack): keep per-invocation outcomes, offer structured Agents, unique task IDs
- The shared message settles from the invocations that wrote to it, and
each invocation succeeds only if the ones before it did, matching how
replies settled before the shared message existed.
- The progress picker offers every Agent, including one whose response
format replaces its content output.
- Task IDs include the execution order inside a child workflow instance,
so two Agents there never update the same step.
- Tool labels and display titles ignore inherited object properties.
- Fix the CI audits (toRecordOrNull, unused export) and test types.
* fix(slack): serialize appends to a message shared by several invocations
* test(slack): drive the append-ordering test with microtasks, not timers
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/slack.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ Custom-bot Slack triggers can stream workflow outputs directly back into the con
31
31
- Loop and parallel invocations each create their own Slack response.
32
32
- The response status label defaults to `Running` and can be customized in the trigger's advanced settings.
33
33
- Optional thinking and tool-call updates appear as Slack tasks in a timeline or plan.
34
+
-**Show progress from** (`streamTimelineSources`) shows an Agent's tool steps, and its thinking when enabled, without posting its text. Use it when an Agent's output is reviewed or reformatted by a later block: the steps and the first streamed answer share one Slack reply. Agents in child workflows can be selected. A block cannot be both an output to stream and a progress source.
35
+
-**Tool step labels** (`streamToolLabels`) renames tool steps by tool name, for example `lc_cur` → `Reading AWS cost data`. Unlisted tools use a generated name. Steps never show tool arguments.
36
+
- With PII block-output redaction on, Agent output is not streamed live, so no progress steps appear; selected outputs are still sent when their block completes.
34
37
- Slack Agent Sessions remain in processing state for the run, return to active when it finishes, and the native Slack stop button cancels active workflow executions.
35
38
36
39
Automatic trigger responses require a custom bot created by the Slack setup wizard. They are not available with the shared Sim Slack app. Where the deployment enables shared-app triggers, the Sim app can receive its subscribed event subset without automatic streaming.
@@ -3867,6 +3870,8 @@ Trigger from Slack events, interactions, and slash commands
3867
3870
|`threads`| string | No | Include thread replies, exclude them \(top-level only\), or fire only on thread replies. |
3868
3871
|`streamResponse`| boolean | No | Create a Slack agent session and stream selected workflow outputs into the conversation that started this run. Custom bots only. |
3869
3872
|`streamOutputs`| workflow-output-selector | No | Use `<blockName>.<outputPath>` for this workflow or `<childWorkflowId>.<blockName>.<outputPath>` for a child workflow. Selecting a child workflow applies to every invocation of it. Agent outputs stream live; other outputs are sent when the block completes. |
3873
+
|`streamTimelineSources`| workflow-output-selector | No | Agent blocks, including ones in child workflows, whose tool steps appear in the reply while they run. Their text is never posted. No steps appear when PII block-output redaction is on. |
3874
+
|`streamToolLabels`| table | No | Optional names for tool steps, keyed by tool name \(an MCP tool by its own name, like lc_cur\). Unlisted tools use a generated name. |
3870
3875
|`streamTaskTitle`| string | No | Optional status Slack shows while each selected response is being produced. Leave empty to use Running. |
3871
3876
|`streamTaskDisplayMode`| string | No | Choose how Slack displays thinking and tool progress. |
3872
3877
|`streamIncludeThinking`| boolean | No | Show agent thinking as Slack task updates while the response is generated. |
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/components/output-select/output-select.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/workflow-output-selector/workflow-output-selector.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1152,6 +1152,7 @@ function SubBlockComponent({
'Build Slack workflows with messages, conversations, files, reactions, pins, bookmarks, user groups, profiles, Lists, canvases, and Agent Sessions. Operations that need additional app scopes use custom Slack bots. Lists require lists:read/lists:write and a paid Slack plan. Native Sim connections retain their existing permissions. Page through list outputs explicitly.',
3552
3552
bestPractices: `${SlackBlock.bestPractices}
3553
3553
Native agent-session streaming uses a custom Slack bot and a supported trigger event. Enable streamResponse and select the intended outputs in streamOutputs; Sim Chat (mothership) streams its content output. The trigger owns the streamed reply, so another send needs a separate purpose.
3554
+
To show an Agent's tool steps without posting its text (for example an analyst whose output a later block reviews), list that Agent in streamTimelineSources while streamOutputs keeps the block that posts the answer (a block cannot be in both), and optionally name its tools in streamToolLabels.
3554
3555
The custom-bot manifest's baseline agent scopes are ${SLACK_AGENT_SCOPES.join(', ')}. Selected capabilities add their required scopes and event subscriptions. Verify the installed app's grants, resource access and event configuration; a saved credential or edited manifest alone does not prove access.
3555
3556
streamIncludeToolCalls displays tool activity; it does not authorize tool execution. Configure Sim Chat's selected operations and their credentials separately. Choose streamIncludeThinking deliberately for the destination audience.
3556
3557
Block Kit messages can contain buttons, selects and forms, but interactions require the app's interactivity request URL and the corresponding interaction trigger. Treat message events, button/select callbacks and modal submissions as separate paths. A control's action_id/value correlates work; runtime actor and state checks authorize it.`,
0 commit comments