Conversation
Add nine agents.conversations.* code-channel method examples, the java counterpart to the python bolt-python-examples #194 set. Each example mirrors the merged agents.sessions template: reads SLACK_TOKEN, builds a *Request via the builder, calls the matching methods.agentsConversations* method, and prints the response. The setProperties code_channel object and setCommands commands array are passed as JSON-encoded strings (codeChannelAsString / commandsAsString), matching how the java SDK models these not-yet-stabilized arguments. 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>
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/main/java/agents/conversations/) — the java counterpart to the python bolt-python-examples #194 set. Each example mirrors the mergedagents.sessionstemplate: readsSLACK_TOKEN, builds a*Requestvia its builder, calls the matchingmethods.agentsConversations*method, and prints the response.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 canvasThe manifest declares the
code_channelsfeature and thecode_channels:managescope. Explicitly no legacycodeChannels.*method names — we shipagents.conversations.*only, mirroring the SDK realign.The
setPropertiescode_channelobject andsetCommandscommandsarray are passed as JSON-encoded strings (codeChannelAsString/commandsAsString), matching how the java SDK (#1647) models these not-yet-stabilized arguments. Therenameexample lives in the siblingagents.sessionsexamples (agents.sessions.rename), so there is noagents.conversations.renamehere.Dependency — stays DRAFT
Depends on the
agents.conversations.*SDK methods (slackapi/java-slack-sdk#1647) landing in a publishedslack-api-clientrelease.mvn compilewill fail against the currently-pinned release (1.51.0) because these methods aren't in a release yet — that is expected (executable-spec pattern). This PR stays DRAFT until #1647 ships and the pinnedslack-api-clientversion includes the methods.🤖 Generated with Claude Code