feat(methods): add agents.sessions method examples - #201
Draft
zimeg wants to merge 7 commits into
Draft
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>
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.Experimental: calls typed methods that ship on the unmerged SDK method branch; draft until those land in a release.
(Replaces the prior PR whose branch was rebuilt to base on
main; the code-channels examples PR now stacks on top of this one.)