You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/english/concepts/acknowledge.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ We recommend calling `ack()` right away before initiating any time-consuming pro
10
10
11
11
:::
12
12
13
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
13
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
14
14
```python
15
15
# Example of responding to an external_select options request
Copy file name to clipboardExpand all lines: docs/english/concepts/actions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Actions can be filtered on an `action_id` parameter of type `str` or `re.Pattern
8
8
9
9
You'll notice in all `action()` examples, `ack()` is used. It is required to call the `ack()` function within an action listener to acknowledge that the request was received from Slack. This is discussed in the [acknowledging requests guide](/tools/bolt-python/concepts/acknowledge).
10
10
11
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
11
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
12
12
13
13
```python
14
14
# Your listener will be called every time a block element with the action_id "approve_button" is triggered
@@ -45,7 +45,7 @@ There are two main ways to respond to actions. The first (and most common) way i
45
45
46
46
The second way to respond to actions is using `respond()`, which is a utility to use the `response_url` associated with the action.
47
47
48
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
48
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
49
49
50
50
```python
51
51
# Your listener will be called every time an interactive component with the action_id “approve_button” is triggered
Copy file name to clipboardExpand all lines: docs/english/concepts/ai-apps.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,6 @@ The Agents & AI Apps feature comprises a unique messaging experience for Slack.
24
24
25
25
That being said, using the `Assistant` class will streamline the process. And we already wrote this nice guide for you!
26
26
27
-
:::info
28
-
You _could_ go it alone and [listen](/tools/bolt-python/concepts/event-listening) for the `assistant_thread_started`, `assistant_thread_context_changed`, and `message.im` events (see implementation details below) in order to implement the AI features in your app. That being said, using the `Assistant` class will streamline the process. And we already wrote this nice guide for you!
29
-
:::
30
-
31
27
## The `Assistant` class instance {#assistant-class}
32
28
33
29
The `Assistant` class can be used to handle the incoming events expected from a user interacting with an app in Slack that has the Agents & AI Apps feature enabled. A typical flow would look like:
@@ -101,15 +97,16 @@ While the `assistant_thread_started` and `assistant_thread_context_changed` even
101
97
102
98
If you do provide your own `threadContextStore` property, it must feature `get` and `save` methods.
103
99
104
-
:::tip[Refer to the [module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.]
100
+
:::tip[Refer to the [module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.]
105
101
:::
106
102
107
103
## Handling a new thread {#handling-a-new-thread}
108
104
109
105
When the user opens a new thread with your AI-enabled app, the [`assistant_thread_started`](/reference/events/assistant_thread_started) event will be sent to your app.
110
106
111
-
:::tip
112
-
When a user opens an app thread while in a channel, the channel info is stored as the thread's `AssistantThreadContext` data. You can grab that info by using the `get_thread_context` utility, as subsequent user message event payloads won't include the channel info.
107
+
:::tip[When a user opens an app thread while in a channel, the channel info is stored as the thread's `AssistantThreadContext` data.]
108
+
109
+
You can grab that info by using the `get_thread_context` utility, as subsequent user message event payloads won't include the channel info.
113
110
:::
114
111
115
112
### Block Kit interactions in the app thread {#block-kit-interactions}
@@ -260,9 +257,9 @@ When the user messages your app, the [`message.im`](/reference/events/message.im
260
257
Messages sent to the app do not contain a [subtype](/reference/events/message#subtypes) and must be deduced based on their shape and any provided [message metadata](/messaging/message-metadata/).
261
258
262
259
There are three utilities that are particularly useful in curating the user experience:
Copy file name to clipboardExpand all lines: docs/english/concepts/app-home.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
You can subscribe to the [`app_home_opened`](/reference/events/app_home_opened) event to listen for when users open your App Home.
6
6
7
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
7
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
Copy file name to clipboardExpand all lines: docs/english/concepts/commands.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ There are two ways to respond to slash commands. The first way is to use `say()`
8
8
9
9
When setting up commands within your app configuration, you'll append `/slack/events` to your request URL.
10
10
11
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
11
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
Copy file name to clipboardExpand all lines: docs/english/concepts/custom-steps-dynamic-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ A new `auto_acknowledge` flag allows you more granular control over whether spec
214
214
215
215
#### Example {#bolt-py}
216
216
217
-
In [Bolt for Python](https://docs.slack.dev/bolt-python/), you can set `auto_acknowledge=False` on a specific function decorator. This allows you to manually control when the `ack()` event acknowledgement helper function is executed. It flips Bolt to synchronous `function_executed` event handling mode for the specific handler.
217
+
In [Bolt for Python](https://docs.slack.dev/tools/bolt-python/), you can set `auto_acknowledge=False` on a specific function decorator. This allows you to manually control when the `ack()` event acknowledgement helper function is executed. It flips Bolt to synchronous `function_executed` event handling mode for the specific handler.
Copy file name to clipboardExpand all lines: docs/english/concepts/custom-steps.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Your app can use the `function()` method to listen to incoming [custom step requ
11
11
12
12
You can reference your custom step's inputs using the `inputs` listener argument of type `dict`.
13
13
14
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn about the available listener arguments.
14
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn about the available listener arguments.
15
15
16
16
```python
17
17
# This sample custom step formats an input and outputs it
Copy file name to clipboardExpand all lines: docs/english/concepts/event-listening.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ You can listen to [any Events API event](/reference/events) using the `event()`
4
4
5
5
The `event()` method requires an `eventType` of type `str`.
6
6
7
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
7
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
8
8
```python
9
9
# When a user joins the workspace, send a message in a predefined channel asking them to introduce themselves
Copy file name to clipboardExpand all lines: docs/english/concepts/global-middleware.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Global middleware is run for all incoming requests, before any listener middlewa
4
4
5
5
Both global and listener middleware must call `next()` to pass control of the execution chain to the next middleware.
6
6
7
-
Refer to [the module document](https://docs.slack.dev/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
7
+
Refer to [the module document](https://docs.slack.dev/tools/bolt-python/reference/kwargs_injection/args.html) to learn the available listener arguments.
0 commit comments