slackapi / slackapi/bolt-python

get_thread_context within a thread - way to get thread_ts?

Open
#1,301 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triage-skip enhancement question server-side
Dominant language
Python
Stars
1.3k
Forks
288
Avg merge
1d 8h
Merged PRs (30d)
10

Description

I'm building an AI app in Slack, and I'm looking to have the bot help with thread summarization. If I open the AI widget when I have a thread open and have the bot call "get_thread_context", I get back the following:

{'channel_id': 'C08MY3JQDRN', 'team_id': 'T08MY3H9SGG', 'enterprise_id': 'E08MLKPKWCR', 'thread_entry_point': 'sunroof', 'force_search': False}

Note that that doesn't include the thread_ts or any real "handle" into the thread that I'm looking at in my main panee - it's just the channel at large. Is there a way to use the "get_thread_context" or something similar to get a handle into the thread so my AI bot can perform a thread summarization?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the get_thread_context behavior described in the issue and the Slack API documentation for thread context and thread_ts. Determine whether Bolt for Python can expose a thread handle for the open Slack thread; the work is done only when a supported way to retrieve the thread context for summarization is identified or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.