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/_tutorials/getting_started.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ When you're finished, you'll have this ⚡️[Getting Started with Slack app](ht
20
20
21
21
---
22
22
23
-
### Create an app
23
+
### Create an app {#create-an-app}
24
24
First thing's first: before you start developing with Bolt, you'll want to [create a Slack app](https://api.slack.com/apps/new).
25
25
26
26
> 💡 We recommend using a workspace where you won't disrupt real work getting done — [you can create a new one for free](https://slack.com/get-started#create).
@@ -35,7 +35,7 @@ Look around, add an app icon and description, and then let's start configuring y
35
35
36
36
---
37
37
38
-
### Tokens and installing apps
38
+
### Tokens and installing apps {#tokens-and-installing-apps}
39
39
Slack apps use [OAuth to manage access to Slack's APIs](https://api.slack.com/docs/oauth). When an app is installed, you'll receive a token that the app can use to call API methods.
40
40
41
41
There are three main token types available to a Slack app: user (`xoxp`), bot (`xoxb`), and app-level (`xapp`) tokens.
@@ -64,7 +64,7 @@ We're going to use bot and app-level tokens for this guide.
64
64
65
65
---
66
66
67
-
### Setting up your project
67
+
### Setting up your project {#setting-up-your-project}
68
68
With the initial configuration handled, it's time to set up a new Bolt project. This is where you'll write the code that handles the logic for your app.
69
69
70
70
If you don’t already have a project, let’s create a new one. Create an empty directory:
@@ -133,7 +133,7 @@ Your app should let you know that it's up and running. 🎉
133
133
134
134
---
135
135
136
-
### Setting up events
136
+
### Setting up events {#setting-up-events}
137
137
Your app behaves similarly to people on your team — it can post messages, add emoji reactions, and listen and respond to events.
138
138
139
139
To listen for events happening in a Slack workspace (like when a message is posted or when a reaction is posted to a message) you'll use the [Events API to subscribe to event types](https://api.slack.com/events-api).
@@ -154,7 +154,7 @@ If you want your bot to listen to messages from everywhere it is added to, choos
154
154
155
155
---
156
156
157
-
### Listening and responding to a message
157
+
### Listening and responding to a message {#listening-and-responding-to-a-message}
158
158
Your app is now ready for some logic. Let's start by using the `message()` method to attach a listener for messages.
159
159
160
160
The following example listens and responds to all messages in channels/DMs where your app has been added that contain the word "hello":
@@ -186,7 +186,7 @@ This is a basic example, but it gives you a place to start customizing your app
186
186
187
187
---
188
188
189
-
### Sending and responding to actions
189
+
### Sending and responding to actions {#sending-and-responding-to-actions}
190
190
191
191
To use features like buttons, select menus, datepickers, modals, and shortcuts, you’ll need to enable interactivity. Head over to **Interactivity & Shortcuts** in your app configuration.
192
192
@@ -288,7 +288,7 @@ You can see that we used `app.action()` to listen for the `action_id` that we na
288
288
289
289
---
290
290
291
-
### Next steps
291
+
### Next steps {#next-steps}
292
292
You just built your first [Bolt for Python app](https://github.com/slackapi/bolt-python/tree/main/examples/getting_started) with Socket Mode! 🎉
293
293
294
294
Now that you have a basic app up and running, you can start exploring how to make your Bolt app stand out. Here are some ideas about what to explore next:
Copy file name to clipboardExpand all lines: docs/_tutorials/getting_started_http.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ When you're finished, you'll have this ⚡️[Getting Started with Slack app](ht
18
18
19
19
---
20
20
21
-
### Create an app
21
+
### Create an app {#create-an-app}
22
22
First thing's first: before you start developing with Bolt, you'll want to [create a Slack app](https://api.slack.com/apps/new).
23
23
24
24
> 💡 We recommend using a workspace where you won't disrupt real work getting done — [you can create a new one for free](https://slack.com/get-started#create).
@@ -33,7 +33,7 @@ Look around, add an app icon and description, and then let's start configuring y
33
33
34
34
---
35
35
36
-
### Tokens and installing apps
36
+
### Tokens and installing apps {#tokens-and-installing-apps}
37
37
Slack apps use [OAuth to manage access to Slack's APIs](https://api.slack.com/docs/oauth). When an app is installed, you'll receive a token that the app can use to call API methods.
38
38
39
39
There are three main token types available to a Slack app: user (`xoxp`), bot (`xoxb`), and app-level (`xapp`) tokens.
@@ -57,7 +57,7 @@ For brevity, we're going to use bot tokens for this guide.
57
57
58
58
---
59
59
60
-
### Setting up your project
60
+
### Setting up your project {#setting-up-your-project}
61
61
With the initial configuration handled, it's time to set up a new Bolt project. This is where you'll write the code that handles the logic for your app.
62
62
63
63
If you don’t already have a project, let’s create a new one. Create an empty directory:
@@ -127,7 +127,7 @@ Your app should let you know that it's up and running. 🎉
127
127
128
128
---
129
129
130
-
### Setting up events over http
130
+
### Setting up events over HTTP {#setting-up-events}
131
131
Your app behaves similarly to people on your team — it can post messages, add emoji reactions, and listen and respond to events.
132
132
133
133
To listen for events happening in a Slack workspace (like when a message is posted or when a reaction is posted to a message) you'll use the [Events API to subscribe to event types](https://api.slack.com/events-api).
@@ -153,7 +153,7 @@ If you want your bot to listen to messages from everywhere it is added to, choos
153
153
154
154
---
155
155
156
-
### Listening and responding to a message
156
+
### Listening and responding to a message {#listening-and-responding-to-a-message}
157
157
Your app is now ready for some logic. Let's start by using the `message()` method to attach a listener for messages.
158
158
159
159
The following example listens and responds to all messages in channels/DMs where your app has been added that contain the word "hello":
@@ -187,7 +187,7 @@ This is a basic example, but it gives you a place to start customizing your app
187
187
188
188
---
189
189
190
-
### Sending and responding to actions
190
+
### Sending and responding to actions {#sending-and-responding-to-actions}
191
191
192
192
To use features like buttons, select menus, datepickers, modals, and shortcuts, you’ll need to enable interactivity. Similar to events, you'll need to specify a URL for Slack to send the action (such as *user clicked a button*).
193
193
@@ -293,7 +293,7 @@ You can see that we used `app.action()` to listen for the `action_id` that we na
293
293
294
294
---
295
295
296
-
### Next steps
296
+
### Next steps {#next-steps}
297
297
You just built your first [Bolt for Python app](https://github.com/slackapi/bolt-python/tree/main/examples/getting_started)! 🎉
298
298
299
299
Now that you have a basic app up and running, you can start exploring how to make your Bolt app stand out. Here are some ideas about what to explore next:
0 commit comments