> For the complete documentation index, see [llms.txt](https://docs.pandium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pandium.com/getting-started/pandium-integration-tutorial/pokemon-of-the-day-part-1/create-app-in-slack-to-get-credentials.md).

# Create App in Slack to get Credentials

Create a Slack app and configure OAuth, redirect URLs, and bot permissions so you can securely use its client ID and secret to connect Slack to your Pandium integration.

We will use the Slack Web API for this integration, so you will need to obtain credentials for it. These will be used to provision your integration on Pandium.

1. Within [this Slack Quickstart Guide](https://api.slack.com/start/quickstart) and follow the steps for:
   * [ ] Creating an app.
   * [ ] Requesting scopes: for *Bot Token Scopes* choose **chat:write** and **users:read**.

There is no need to install or authorize your app through Slack because Pandium will do that when you connect a tenant.

2. On your Slack app's *OAuth & Permissions* page go to the *Redirect URLs* section and add <https://api.sandbox.pandium.com/v0/author/callback/oauth2>
3. On the *Basic Information* page go to the *App Credentials* section and make note of the *Client ID* and *Client Secret*. These will be needed to provision your integration on Pandium.
4. Confirm that your app has the necessary bot configuration by navigating to the App Home page in your Slack app settings.
5. On the App Home page, ensure your bot user is configured:
   * [ ] Find the Your App's Presence in Slack section and verify a bot user exists. If no bot user exists, make sure to double check scopes and a redirect URL were added as part of steps 1 & 2.
   * [ ] If you wish to modify your bot Display Name and Default username for the App's bot, click Edit next to "App Display Name".<br>

     <figure><img src="https://4017407078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfJn-9R_dn6dvcGNcdk%2Fuploads%2FJh8TRjc1nidbCLCeaUDG%2Fimage.png?alt=media&amp;token=943b3781-e43a-43db-a36b-040ee84d6cde" alt="" width="504"><figcaption></figcaption></figure>

Now that you have Slack credentials we can use those to set up an integration on your Pandium Sandbox integration hub!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pandium.com/getting-started/pandium-integration-tutorial/pokemon-of-the-day-part-1/create-app-in-slack-to-get-credentials.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
