Skip to content

Commit 1d4e86b

Browse files
authored
docs: add AI to quickstart (#1389)
1 parent 5f6196f commit 1d4e86b

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

docs/english/building-an-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ Now that you have a basic app up and running, you can start exploring how to mak
475475

476476
* Read through the concepts pages to learn about the different methods and features your Bolt app has access to.
477477

478-
* Explore the different events your bot can listen to with the [`app.event()`](/tools/bolt-python/concepts/event-listening) method. All of the events are listed [on the API docs site](/reference/events).
478+
* Explore the different events your bot can listen to with the [`app.event()`](/tools/bolt-python/concepts/event-listening) method. View the full events reference docs [here](/reference/events).
479479

480-
* Bolt allows you to [call Web API methods](/tools/bolt-python/concepts/web-api) with the client attached to your app. There are [over 200 methods](/reference/methods) on our API site.
480+
* Bolt allows you to [call Web API methods](/tools/bolt-python/concepts/web-api) with the client attached to your app. There are over 200 methods; view them [here](/reference/methods).
481481

482-
* Learn more about the different token types [on the API docs site](/authentication/tokens). Your app may need different tokens depending on the actions you want it to perform.
482+
* Learn more about the different token types in the [tokens guide](/authentication/tokens). Your app may need different tokens depending on the actions you want it to perform.

docs/english/getting-started.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,41 @@ This will open the following page:
279279

280280
On these pages you're free to make changes such as updating your app icon, configuring app features, and perhaps even distributing your app!
281281

282+
## Adding AI features {#ai-features}
283+
284+
Now that you're familiar with a basic app setup, try it out again, this time using the AI agent template!
285+
286+
<Tabs groupId="cli-or-terminal">
287+
<TabItem value="cli" label="Slack CLI">
288+
289+
Get started with the agent template:
290+
291+
```sh
292+
$ slack create ai-app --template slack-samples/bolt-python-assistant-template
293+
$ cd ai-app
294+
```
295+
296+
</TabItem>
297+
<TabItem value="terminal" label="Terminal">
298+
299+
Get started with the agent template:
300+
301+
```sh
302+
$ git clone https://github.com/slack-samples/bolt-python-assistant-template ai-app
303+
$ cd ai-app
304+
```
305+
306+
Using this method, be sure to set the app and bot tokens as we did in the [Running the app](#running-the-app) section above.
307+
308+
</TabItem>
309+
</Tabs>
310+
311+
Once the project is created, update the `.env.sample` file by setting the `OPENAI_API_KEY` with the value of your key and removing the `.sample` from the file name.
312+
313+
In the `ai` folder of this app, you'll find default instructions for the LLM and an OpenAI client setup.
314+
315+
The `listeners` include utilities intended for messaging with an LLM. Those are outlined in detail in the guide to [Using AI in apps](/tools/bolt-python/concepts/ai-apps) and [Sending messages](/tools/bolt-python/concepts/message-sending).
316+
282317
## Next steps {#next-steps}
283318

284319
Congrats once more on getting up and running with this quick start.

0 commit comments

Comments
 (0)