Conversation
Adds example snippets for the Slack Code code-channel Web API methods, under the agents.conversations.* family (methods/src/agents/conversations/). Node counterpart to bolt-python-examples #194. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Set socket_mode_enabled: true so the example app can register agent slash commands. agents.conversations.setCommands returns no_actions_url unless the app has either a code_channels.slash_command_url or Socket Mode; Socket Mode routes command invocations automatically with no public URL to stand up. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Align each example payload with the request example on its docs.slack.dev reference page: - create: session_id + 'Migrate billing cron to Temporal' - archive: summary_message_ts - setProperties: full 4-item context_bar_items (repo/branch/pr/ci) - setView: html view with view_key/name/csp - setCommands: create-pr (argument_hint) / run-tests / summarize - removeView: identify by view_key - getCanvas: include_resolved - setCanvasContent: migration-plan content Duplicates the canonical examples rather than inventing variants. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds example snippets for the Slack Code code-channel Web API methods, under the
agents.conversations.*family (methods/src/agents/conversations/) — the Node counterpart to bolt-python-examples #194:agents.conversations.create— create a dedicated code channel for an agent sessionagents.conversations.archive— archive a code channel (optionally recording a summary message)agents.conversations.setProperties— set properties on a code channel (context bar items, external resource details)agents.conversations.setView— create or update a view (HTML, diff, Block Kit, or canvas tabs)agents.conversations.setCommands— register the agent's slash commands in a code channelagents.conversations.listViews— list the view tabs attached to a code channelagents.conversations.removeView— remove a view from a code channelagents.conversations.getCanvas— fetch a canvas attached to a code channelagents.conversations.setCanvasContent— replace the full markdown content of a plan canvasEach snippet mirrors the existing
agents.sessionsexamples: importWebClient, readSLACK_TOKEN, callclient.agents.conversations.<method>({ ... }), log the response. The app manifest declares thecode_channelsfeature and thecode_channels:managescope. Snake_case argument keys (origin_channel_id,channel_id,canvas_id, …) match@slack/web-api's convention.The
renameexample lives in the siblingagents.sessionsexamples, so there is noagents.conversations.renamehere.Dependency — stays DRAFT
Depends on the
agents.conversations.*methods landing in a published@slack/web-apirelease (SDK realign slackapi/node-slack-sdk#2748). Themethodstypecheck job will fail against the currently-released SDK because these methods aren't in a release yet — that is expected (executable-spec pattern). This PR stays DRAFT until #2748 ships and the pinned@slack/web-apiversion includes the methods.Explicitly no legacy
codeChannels.*method names — we shipagents.conversations.*only, mirroring the SDK realign.🤖 Generated with Claude Code