Skip to content

SlackToolkit

⚠️ DEPRECATION WARNING

This component is deprecated and will be removed in a future version of Nappai. Please migrate to the recommended alternative components.

SlackToolkit is a helper that lets you connect your Nappai dashboard to Slack.
It gives you a ready‑made set of tools that can post messages, upload files, and do other common Slack tasks without writing any code.

How it Works

When you add SlackToolkit to a workflow, Nappai creates a connection to the Slack API using the OAuth token you provide.
The component builds a SlackToolkit object (from the slack_sdk library) that contains several small helper functions.
These helpers are then available as outputs of the component, so you can use them in later steps of your workflow.

Inputs

Input Fields

  • description: Toolkit for Slack operations

Credential Requirement
This component needs a Slack bot API credential.

  1. Go to Nappai → Credentials and create a new credential of type Slack bot API.
  2. In the Slack app dashboard, copy the OAuth App token (e.g., <APP_OAUTH_TOKEN>) and paste it into the credential.
  3. Back in the component, select the credential you just created in the Credential field.
    The token is stored securely and is not shown in the component’s input list.

Outputs

  • BaseToolkit: A BaseToolkit object that contains all Slack helper tools.
    You can connect this output to other components that expect a toolkit, such as a “Send Slack Message” component.

Usage Example

  1. Add SlackToolkit to your workflow.
  2. Configure the credential as described above.
  3. Connect the BaseToolkit output to a component that sends a Slack message.
  4. Set the message text and channel in that component, then run the workflow.
    The message will appear in the specified Slack channel.

Tips and Best Practices

  • Keep your Slack OAuth token secret; never expose it in public workflows.
  • Use the credential feature so that the token is stored securely in Nappai.
  • Test the toolkit in a small workflow before adding it to a production process.
  • If you need more advanced Slack features, consider using the newer Slack components that replace this legacy toolkit.

Security Considerations

  • The OAuth token is stored in Nappai’s credential vault, which encrypts data at rest.
  • Only users with permission to view credentials can see the token.
  • When sharing a workflow, the token is not included; only the reference to the credential is shared.