feat(methods): add agents.sessions method examples - #201
Merged
Merged
Conversation
Add examples for agents.sessions.setStatus and agents.sessions.rename with a minimal assistant:write manifest and the standard .slack CLI hooks. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Match the family-first header convention (### agents, like ### chat) and tighten the agents.sessions.* method descriptions. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
agents.sessions.setStatus and agents.sessions.rename require the chat:write bot scope per the method reference, not assistant:write. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Move the agents.sessions method examples from a flat agents_sessions/ dir to nested agents/sessions/ (path mirrors the agents.sessions.* method family), updating the README implementation links. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Add the recommended agent_view event subscriptions (agent_session_stopped, app_home_opened, message.im), the assistant:write scope, and im:history so message.im events deliver; enable socket mode. Clears the manifest recommendations and the agent_session_stopped subscription warning. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
This was referenced Aug 20, 2026
zimeg
added a commit
to slack-samples/bolt-js-examples
that referenced
this pull request
Aug 20, 2026
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
added a commit
to slack-samples/bolt-js-examples
that referenced
this pull request
Aug 20, 2026
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
added a commit
to slack-samples/bolt-js-examples
that referenced
this pull request
Aug 20, 2026
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
added a commit
to slack-samples/bolt-js-examples
that referenced
this pull request
Aug 20, 2026
Mirror the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match: - agents.sessions.rename Rename an agent session. - agents.sessions.setStatus Set an agent session's lifecycle status, creating the session if needed. Adds the two example scripts, a per-family manifest (agent view + the agent session bot events) with its .slack CLI config, and an "agents" section in the methods README. Requires client.agents.sessions.{rename,setStatus} in @slack/web-api (adds via slackapi/node-slack-sdk#2703); the package stays on the released ^8.0.0 range until that ships, so the typecheck can't resolve the methods until then. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
`agent_view` only accepts `agent_description`, `suggested_prompts`, and `actions` (additionalProperties: false), so `enabled: true` fails manifest validation. Replace it with a minimal `agent_description`. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…-method-examples # Conflicts: # methods/README.md
zimeg
marked this pull request as ready for review
September 23, 2026 23:14
zimeg
added a commit
that referenced
this pull request
Sep 23, 2026
…ns.* Decision (2026-09-23): ship agents.conversations.* only — no legacy codeChannels.* method names. Renames methods/src/code_channels/ -> methods/src/agents/conversations/, updates each example's method call (client.agents_conversations_*), aligns args to the SDK #1943 signatures (getCanvas/setCanvasContent take channel, not channel_id), drops the rename example (agents.sessions.rename, covered by #201), and updates the manifest description + methods/README. The features.code_channels manifest feature and code_channels:manage scope are unchanged — only method names moved. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ame example Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…mple Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Member
Author
|
🏁 Will merge to extend with adjacent testing - these method are released! At this time we're not referencing these implementation so reverting of course can be considered while more existing method examples are found. FWIW this is nice to have for testing purposes. |
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
agents.sessions.setStatusandagents.sessions.renamemethod examples with a minimalassistant:writemanifest and the standard.slackCLI hooks.These call typed methods that shipped in
slack_sdk3.44.0 (added in slackapi/python-slack-sdk#1942);methods/requirements.txtpinsslack_sdk==3.44.0accordingly. Theagents.conversations.*code-channel examples PR (#194) stacks on top of this one.🤖 Generated with Claude Code