Skip to main content
All CollectionsSnowflake AI agentsUsing Lang
Connecting the Slack integration
Connecting the Slack integration

Bring transparency by sending real-time insights directly to your team

Updated over a week ago

This guide will walk you through the process of connecting our Slack integration to deliver insights directly to your chosen Slack channel. By enabling this feature, you'll bring transparency to your team and keep everyone aligned on customer-driven priorities in real-time.

Enabling the Slack Integration

A) If you installed the app via UI

  1. Log in to your Snowflake account and navigate to Data Products > Apps. Click on the Snowflake AI Agents app.

  2. Find the "Connections" section.

  3. Locate the Slack integration and click on "Connect".

  4. Click on "Launch app" to run the app. Make sure to do this to make sure the app has been reloaded and it has the network access required for the integration.

B) If the app was installed via SQL script

Run the following script to enable the Slack integration:

-- IMPORTANT: Ensure this matches the exact name used during installation
SET LANGAI_APP_NAME = 'LANGAI_APP';

-- Set up network rule to allow access to Slack
CREATE OR REPLACE NETWORK RULE SLACK_EXTERNAL_ACCESS_NETWORK_RULE
MODE = EGRESS
TYPE = HOST_PORT
VALUE_LIST = ('slack.com');

-- Create external access integration for Slack
-- This enables the app to send insights via Slack
CREATE OR REPLACE EXTERNAL ACCESS INTEGRATION SLACK_EXTERNAL_ACCESS_INTEGRATION
ALLOWED_NETWORK_RULES = (SLACK_EXTERNAL_ACCESS_NETWORK_RULE)
ENABLED = true;

-- Grant USAGE privilege on the external access integration to the app
GRANT USAGE ON INTEGRATION SLACK_EXTERNAL_ACCESS_INTEGRATION TO APPLICATION IDENTIFIER($LANGAI_APP_NAME);

-- Activate the Slack external access integration
SET ACTIVATE_SLACK_PROCEDURE = CONCAT($LANGAI_APP_NAME, '.CONFIG.ACTIVATE_SLACK_EXTERNAL_ACCESS');
CALL IDENTIFIER($ACTIVATE_SLACK_PROCEDURE)();

Check the full installation guide to learn more.

Using the Slack Integration

1. Connect Slack

Once the Slack integration is enabled, the next step is to connect it by going to the Settings section inside the Lang.ai Native App. Click on "Connect Slack" to link your Slack account to your Lang.ai app.

2. Connect your AI Agent to a specific channel

Once Slack is connected, go to your agent settings to setup Slack notifications.

Troubleshooting

If you encounter any issues while setting up the Slack integration, please check the following:

  1. Ensure you have the necessary permissions in Snowflake so it can connect to Slack

  2. Verify that the Slack app is properly installed in your workspace (e.g. permissions).

  3. Double-check that there wasn't an error when running the agent.

If problems persist, please contact your CSM for assistance.

Did this answer your question?