Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 4, 2023

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
slack-sdk ==3.22.0==3.39.0 age confidence

Release Notes

slackapi/python-slack-sdk (slack-sdk)

v3.39.0

Compare Source

What's Changed

🚀 Enhancements
📦 Other changes

New Contributors

Full Changelog: slackapi/python-slack-sdk@v3.38.0...v3.39.0
Milestone: https://github.com/slackapi/python-slack-sdk/milestone/114?closed=1

v3.38.0

Compare Source

What's Changed

🚀 Enhancements
🐛 Bug Fixes
📚 Documentation
📦 Other changes

New Contributors

Full Changelog: slackapi/python-slack-sdk@v3.37.0...v3.38.0
Milestone: https://github.com/slackapi/python-slack-sdk/milestone/113?closed=1

v3.37.0

Compare Source

AI-Enabled Features: Loading States, Text Streaming, and Feedback Buttons

🍿 Preview
2025-10-06-loading-state-text-streaming-feedback.mov
📚 Changelog
⚡ Getting Started

Try the AI Agent Sample app to explore the AI-enabled features and existing Assistant helper:

### Create a new AI Agent app
$ slack create slack-ai-agent-app --template slack-samples/bolt-python-assistant-template
$ cd slack-ai-agent-app/

### Initialize Python Virtual Environment
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt

### Add your OPENAI_API_KEY
$ export OPENAI_API_KEY=sk-proj-ahM...

### Run the local dev server
$ slack run

After the app starts, send a message to the "slack-ai-agent-app" bot for a unique response.

⌛ Loading States

Loading states allows you to not only set the status (e.g. "My app is typing...") but also sprinkle some personality by cycling through a collection of loading messages:

@​app.message()
def handle_message(message, client):
    client.assistant_threads_setStatus(
        channel_id=channel_id,
        thread_ts=thread_ts,
        status="thinking...",
        loading_messages=[
            "Teaching the hamsters to type faster…",
            "Untangling the internet cables…",
            "Consulting the office goldfish…",
            "Polishing up the response just for you…",
            "Convincing the AI to stop overthinking…",
        ],
    )

### Start a new message stream
🔮 Text Streaming Helper

The chat_stream() helper utility can be used to streamline calling the 3 text streaming methods:

### Start a new message stream
streamer = client.chat_stream(
    channel=channel_id,
    recipient_team_id=team_id,
    recipient_user_id=user_id,
    thread_ts=thread_ts,
)

### Loop over OpenAI response stream
### https://platform.openai.com/docs/api-reference/responses/create
for event in returned_message:
    if event.type == "response.output_text.delta":
        streamer.append(markdown_text=f"{event.delta}")
    else:
        continue

feedback_block = create_feedback_block()
streamer.stop(blocks=feedback_block)
🔠 Text Streaming Methods

Alternative to the Text Streaming Helper is to call the individual methods.

1) client.chat_startStream

First, start a chat text stream to stream a response to any message:

@​app.message()
def handle_message(client, context, event, messsage):

### Start a new message stream
    stream_response = client.chat_startStream(
        channel=channel_id,
        recipient_team_id=team_id,
        recipient_user_id=user_id,
        thread_ts=thread_ts,
    )
    stream_ts = stream_response["ts"]
2) client.chat_appendStream

After starting a chat text stream, you can then append text to it in chunks (often from your favourite LLM SDK) to convey a streaming effect:

for event in returned_message:
    if event.type == "response.output_text.delta":
        client.chat_appendStream(
            channel=channel_id, 
            ts=stream_ts, 
            markdown_text=f"{event.delta}"
        )
    else:
        continue
3) client.chat_stopStream

Lastly, you can stop the chat text stream to finalize your message:

client.chat_stopStream(
    channel=channel_id, 
    ts=stream_ts,
    blocks=feedback_block
)
👍🏻 Feedback Buttons

Add feedback buttons to the bottom of a message, after stopping a text stream, to gather user feedback:

def create_feedback_block() -> List[Block]:
    blocks: List[Block] = [
        ContextActionsBlock(
            elements=[
                FeedbackButtonsElement(
                    action_id="feedback",
                    positive_button=FeedbackButtonObject(
                        text="Good Response",
                        accessibility_label="Submit positive feedback on this response",
                        value="good-feedback",
                    ),
                    negative_button=FeedbackButtonObject(
                        text="Bad Response",
                        accessibility_label="Submit negative feedback on this response",
                        value="bad-feedback",
                    ),
                )
            ]
        )
    ]
    return blocks

@​app.message()
def handle_message(client, context, event, message):

### ... previous streaming code ...
### Stop the stream and add feedback buttons
    feedback_block = create_feedback_block()
    client.chat_stopStream(
        channel=channel_id, 
        ts=stream_ts, 
        blocks=feedback_block
    )

Ⓜ️ Markdown Text Support

chat_postMessage supports markdown_text
response = client.chat_postMessage(
    channel="C111",
    markdown_text=markdown_content,
)

Learn more in #​1718

🧩 Markdown Block

📚 https://docs.slack.dev/reference/block-kit/blocks/markdown-block/

from slack_sdk.models.blocks import MarkdownBlock
...

@​app.message("hello")
def message_hello(say):
    say(
        blocks=[
            MarkdownBlock(text="**lets's go!**"),
        ],
        text="let's go!",
    )

Learn more in #​1748

🎞️ Workflows Featured Methods

Add support for the workflows.featured.{add|list|remove|set} methods:

app.client.workflows_featured_add(channel_id="C0123456789", trigger_ids=["Ft0123456789"])
app.client.workflows_featured_list(channel_ids="C0123456789")
app.client.workflows_featured_remove(channel_id="C0123456789", trigger_ids=["Ft0123456789"])
app.client.workflows_featured_set(channel_id="C0123456789", trigger_ids=["Ft0123456789"])

Learn more in #​1712

What's Changed

👾 Enhancements
🐛 Bug fixes
📚 Documentation
🤖 Dependencies
🧰 Maintenance

New Contributors 🎉

Milestone: https://github.com/slackapi/python-slack-sdk/milestone/112
Full Changelog: slackapi/python-slack-sdk@v3.36.0...v3.37.0
Package: https://pypi.org/project/slack-sdk/3.37.0/

v3.36.0

Compare Source

What's changed

👾 Enhancements
🧪 Tests
📚 Documentation
  • docs: reference creating an app with scopes to gather a token for installation in #​1694 - Thanks @​zimeg!
  • Docs: Update old links, apply style guide, and generally copyedit/clean up the Python SDK docs. in #​1699 - Thanks @​technically-tracy!
🤖 Dependencies
🧰 Maintenance

Milestone: https://github.com/slackapi/python-slack-sdk/milestone/111
Full Changelog: slackapi/python-slack-sdk@v3.35.0...v3.36.0

v3.35.0: version 3.35.0

Compare Source

What's Changed

➕ features
🐛 fixes
📚 docs
🏗️ maintenance
:dependabot: dependabot

New Contributors


v3.34.0: version 3.34.0

Compare Source

Changes

Dependabot

v3.33.5: version 3.33.5

Compare Source

Changes

v3.33.4: version 3.33.4

Compare Source

Changes

v3.33.3: version 3.33.3

Compare Source

Changes

  • #​1576 Enable rich_text_* elements to have an empty 'elements' property - Thanks @​seratch

v3.33.2: version 3.33.2

Compare Source

Changes


v3.33.1: version 3.33.1

Compare Source

Changes

  • Enable WebClient#assistant_threads_setSuggestedPrompts to skip title param - Thanks @​seratch

v3.33.0: version 3.33.0

Compare Source

Changes


v3.32.0: version 3.32.0

Compare Source

What's Changed

Features and Fixes
Documentation
Misc
Dependabot

New Contributors


v3.31.0: version 3.31.0

Compare Source

What's Changed


v3.30.0: version 3.30.0

Compare Source

Changes

All issues/pull requests: https://github.com/slackapi/python-slack-sdk/milestone/99?closed=1
Full Changelog: slackapi/python-slack-sdk@v3.29.0...v3.30.0

v3.29.0: version 3.29.0

Compare Source

Changes


v3.28.0: version 3.28.0

Compare Source

What's Changed

New Contributors

All issues/pull requests: https://github.com/slackapi/python-slack-sdk/milestone/95?closed=1
Full Changelog: slackapi/python-slack-sdk@v3.27.2...v3.28.0

v3.27.2: version 3.27.2

Compare Source

Changes


v3.27.1: version 3.27.1

Compare Source

Changes


v3.27.0: version 3.27.0

Compare Source

Changes


v3.26.2: version 3.26.2

Compare Source

Changes

v3.26.1: version 3.26.1

Compare Source

Changes


v3.26.0: version 3.26.0

Compare Source

Changes

v3.25.0: version 3.25.0

Compare Source

Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.23.0 chore(deps): update dependency slack-sdk to v3.23.1 Nov 14, 2023
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 3dd590c to 787ce21 Compare November 14, 2023 06:48
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.23.1 chore(deps): update dependency slack-sdk to v3.24.0 Nov 16, 2023
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 787ce21 to 9a2f7f5 Compare November 16, 2023 07:54
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.24.0 chore(deps): update dependency slack-sdk to v3.25.0 Nov 21, 2023
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 9a2f7f5 to c2e4e17 Compare November 21, 2023 07:58
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.25.0 chore(deps): update dependency slack-sdk to v3.26.0 Nov 23, 2023
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from c2e4e17 to 4b6b375 Compare November 23, 2023 03:04
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.26.0 chore(deps): update dependency slack-sdk to v3.26.1 Dec 4, 2023
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 4b6b375 to e353e5c Compare December 4, 2023 08:44
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.26.1 chore(deps): update dependency slack-sdk to v3.26.2 Jan 9, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from e353e5c to b3be2ad Compare January 9, 2024 07:41
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from b3be2ad to de559dd Compare February 13, 2024 07:02
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.26.2 chore(deps): update dependency slack-sdk to v3.27.0 Feb 13, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from de559dd to bdf5789 Compare February 28, 2024 03:33
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.27.0 chore(deps): update dependency slack-sdk to v3.27.1 Feb 28, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from bdf5789 to 564addb Compare May 16, 2024 03:19
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.27.1 chore(deps): update dependency slack-sdk to v3.27.2 May 16, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 564addb to 6d806d7 Compare June 10, 2024 21:45
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.27.2 chore(deps): update dependency slack-sdk to v3.28.0 Jun 10, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 6d806d7 to f4dc34f Compare June 14, 2024 03:31
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.28.0 chore(deps): update dependency slack-sdk to v3.29.0 Jun 14, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from f4dc34f to 4274811 Compare June 21, 2024 20:04
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.29.0 chore(deps): update dependency slack-sdk to v3.30.0 Jun 21, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 4274811 to 0232de2 Compare July 4, 2024 19:13
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.30.0 chore(deps): update dependency slack-sdk to v3.31.0 Jul 4, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 0232de2 to a96a8c5 Compare September 6, 2024 19:32
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.31.0 chore(deps): update dependency slack-sdk to v3.32.0 Sep 6, 2024
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.0 chore(deps): update dependency slack-sdk to v3.33.1 Sep 19, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 8c7f119 to 1bf7790 Compare September 19, 2024 12:10
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 1bf7790 to 4e5f1a4 Compare October 25, 2024 07:43
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.1 chore(deps): update dependency slack-sdk to v3.33.2 Oct 25, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 4e5f1a4 to 393a55c Compare October 30, 2024 03:56
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.2 chore(deps): update dependency slack-sdk to v3.33.3 Oct 30, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 393a55c to 47bca39 Compare November 19, 2024 04:04
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.3 chore(deps): update dependency slack-sdk to v3.33.4 Nov 19, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 47bca39 to c251c25 Compare December 5, 2024 04:14
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.4 chore(deps): update dependency slack-sdk to v3.33.5 Dec 5, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from c251c25 to c8b522e Compare December 17, 2024 22:45
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.33.5 chore(deps): update dependency slack-sdk to v3.34.0 Dec 17, 2024
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from c8b522e to 7ef2a5a Compare March 17, 2025 17:07
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.34.0 chore(deps): update dependency slack-sdk to v3.35.0 Mar 17, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 1, 2025

@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.35.0 chore(deps): update dependency slack-sdk to v3.36.0 Jul 9, 2025
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 7ef2a5a to 167c7d1 Compare July 9, 2025 23:38
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 9, 2025

@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 167c7d1 to cb04408 Compare September 9, 2025 04:30
@lewismc lewismc closed this Sep 9, 2025
@lewismc lewismc reopened this Sep 9, 2025
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from cb04408 to 6deedde Compare September 9, 2025 17:25
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 6deedde to 29c3ffb Compare October 7, 2025 02:02
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.36.0 chore(deps): update dependency slack-sdk to v3.37.0 Oct 7, 2025
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.37.0 chore(deps): update dependency slack-sdk to v3.38.0 Nov 13, 2025
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from 29c3ffb to a6306cc Compare November 13, 2025 20:34
@renovate renovate bot force-pushed the renovate/slack-sdk-3.x branch from a6306cc to c0131fc Compare November 20, 2025 18:01
@renovate renovate bot changed the title chore(deps): update dependency slack-sdk to v3.38.0 chore(deps): update dependency slack-sdk to v3.39.0 Nov 20, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants