Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2767 +/- ##
=======================================
Coverage 93.44% 93.44%
=======================================
Files 37 37
Lines 7677 7677
Branches 669 669
=======================================
Hits 7174 7174
Misses 498 498
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| First things first, take a few moments to set up the following: | ||
|
|
||
| * Make sure you have a development environment where you have permission to install apps. You can get a free sandbox with the [Slack developer program](https://api.slack.com/developer-program). |
There was a problem hiding this comment.
| * Make sure you have a development environment where you have permission to install apps. You can get a free sandbox with the [Slack developer program](https://api.slack.com/developer-program). | |
| * Make sure you have a development environment where you have permission to install apps. You can get a free sandbox with the [Slack Developer Program](https://api.slack.com/developer-program). |
|
|
||
|  | ||
|
|
||
| Select your provider as the Git Scope and rename the repo if you'd like. Next, click **Create**. |
There was a problem hiding this comment.
| Select your provider as the Git Scope and rename the repo if you'd like. Next, click **Create**. | |
| Select your provider as the Git Scope and rename the repo if you'd like. Click **Create**. |
|
|
||
| ## Create a Slack app | ||
|
|
||
| Create a new Slack app through [this link](https://api.slack.com/apps?new_app=1), then select **from a manifest**. Next, choose a workspace you have permission to install apps in. Click **Next**, then copy and paste the project manifest code here, replacing the placeholder text in the JSON tab. |
There was a problem hiding this comment.
| Create a new Slack app through [this link](https://api.slack.com/apps?new_app=1), then select **from a manifest**. Next, choose a workspace you have permission to install apps in. Click **Next**, then copy and paste the project manifest code here, replacing the placeholder text in the JSON tab. | |
| Create a new Slack app through [this link](https://api.slack.com/apps?new_app=1), then select **from a manifest**. Next, choose a workspace you have permission to install apps in. Click **Next**, then copy and paste the project manifest code here, replacing the placeholder text in the **JSON** tab. |
|
|
||
|  | ||
|
|
||
| Now it’ll work through the deployment process and give you updates on what it is doing. Be patient. Deployment is hard work! Once it's finished, you'll see a confirmation screen with a button to **Continue to Dashboard**. Click that button. Here you can see that your app has been deployed! Use this dashboard to keep tabs on build logs, deployment checks and more. |
There was a problem hiding this comment.
| Now it’ll work through the deployment process and give you updates on what it is doing. Be patient. Deployment is hard work! Once it's finished, you'll see a confirmation screen with a button to **Continue to Dashboard**. Click that button. Here you can see that your app has been deployed! Use this dashboard to keep tabs on build logs, deployment checks and more. | |
| The deployment process will kick off, and you'll receive progress updates. Be patient. Deployment is hard work! Once it's finished, you'll see a confirmation screen with a button to **Continue to Dashboard**. Click that button. Here you can see that your app has been deployed! Use this dashboard to keep tabs on build logs, deployment checks, and more. |
zimeg
left a comment
There was a problem hiding this comment.
@haleychaas This is a solid guide and an impressive example to showcase! Thanks so much for bringing this to public pages 📚 ✨
Before merging I left a note on another environment variable needed for a smooth starting experience that has all features of a Slack and Vercel AI app. I left a few other small comments but please feel free to publish when you're feeling good about things! Or let me know if I can share more setup details 👾
docs/english/_sidebar.json
Outdated
| "items": [ | ||
| "tools/bolt-js/deployments/aws-lambda", | ||
| "tools/bolt-js/deployments/heroku", | ||
| "tools/bolt-js/deployments/vercel/vercel" |
There was a problem hiding this comment.
| "tools/bolt-js/deployments/vercel/vercel" | |
| "tools/bolt-js/deployments/vercel" |
🪬 question: Can we shorten this path?
There was a problem hiding this comment.
that's a question for @lukegalbraithrussell I feel like we need it for some reason but I don't remember why
There was a problem hiding this comment.
tools/bolt-js/deployments/vercel is a folder path right now. you need this to specify that you want the vercel file within the vercel folder.
this looks redundant here, but as long as you name the file either 1. the same name as the folder (like you did) or 2. index, the actual URL will just be "/tools/bolt-js/deployments/vercel"
There was a problem hiding this comment.
🔏 suggestion: I forget if starting with "index.md" might help with the paths above, but might be nice to use for this nested page?
|
|
||
| Select your provider as the Git Scope and rename the repo if you'd like. Click **Create**. | ||
|
|
||
| Keep this browser tab open; we'll be back to it soon. Next, we'll need to add a couple of variables for our app. To obtain these, direct your attention to the Slack app settings page. |
There was a problem hiding this comment.
🤖 issue: We might want to add a section on gathering an AI Gateway API token and saving it as another variable called AI_GATEWAY_API_KEY with this step? I found this link to be useful:
🔗 https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
💰 note: This requires also saving debit card details for access to the free tier, but such is common for hosting I find. Unsure if that's needed to callout?
There was a problem hiding this comment.
@zimeg did you want to take another look with this section added?
|
|
||
| Once the deployment has completed, navigate back to the Slack [app settings](https://api.slack.com/apps) and open the **App Manifest** from the sidebar. | ||
|
|
||
| Update the manifest so that all of the `reference_url` and `url` fields use your domain. Click **Save** and verify the URL. |
There was a problem hiding this comment.
👁️🗨️ suggestion(non-blocking): Examples might be nice since paths are never obvious for me and these are different from Bolt defaults:
- Slash Commands URL: https://slack-agent-template-example.vercel.app/api/slack/events
- Event Subscriptions: https://slack-agent-template-example.vercel.app/api/slack/events
- Interactivity Request URL: https://slack-agent-template-example.vercel.app/api/slack/events
zimeg
left a comment
There was a problem hiding this comment.
@haleychaas LGTM and apologies for slow response!
Thanks for sharing a few more instruction for a clean experience - we might find improvement to .env setups soon but let's revist that as needed🤖 ✨
Summary
A tutorial on how to get started with Vercel hosting. Preview here.
Requirements (place an
xin each[ ])