Skip to main content

Enable Weekly Email Notifications

Set up secure email notifications for your AI agent insights

Updated over a week ago

Overview

Lang.ai can send weekly email summaries of your AI agent insights directly to stakeholders in your organization. To enable this feature, a Snowflake administrator needs to create a secure email integration.

What is a Notification Integration?

A Snowflake Notification Integration is a secure mechanism that allows applications to send notifications through Snowflake's built-in communication channels. When you create an email notification integration:

  • Snowflake manages the email service: No external email providers or configurations needed

  • Built-in security: Snowflake handles authentication and ensures emails only go to authorized recipients

  • Centralized control: Administrators can manage and monitor all notification integrations from one place

  • No data exposure: The integration only grants permission to send notifications—it doesn't provide access to your data

This integration is designed with security in mind:

  • Restricted Recipients: Emails can only be sent to users within your Snowflake account

  • No External Access: It's not possible to send emails to addresses outside your Snowflake organization

  • Controlled Scope: The integration only grants permission to send email notifications, nothing else

Prerequisites

  • Snowflake administrator privileges (ACCOUNTADMIN role or equivalent)

  • Access to run SQL commands in your Snowflake account

Setup Instructions

To enable weekly email notifications, have a Snowflake administrator run the following SQL command:

Step 1: Create the notification integration

CREATE NOTIFICATION INTEGRATION IF NOT EXISTS LANGAI_APP_NOTIFICATION_INTEGRATION TYPE=EMAIL ENABLED=TRUE;

Step 2: Grant usage permissions to the Lang.ai application

-- Replace {APPLICATION_NAME} with your actual Lang.ai application name
-- You can find this by running: SHOW APPLICATIONS LIKE '%LANG%';
GRANT USAGE ON INTEGRATION LANGAI_APP_NOTIFICATION_INTEGRATION TO APPLICATION {APPLICATION_NAME};

To find your application name: Run SHOW APPLICATIONS LIKE '%LANG%'; and look for the Lang.ai application in the results. The name will typically be something like LANGAI_APP or LANG_AI_SNOWFLAKE_APP.

What Happens Next

Once the integration is created:

  1. Lang.ai will be able to send weekly email summaries of your agent insights

  2. You can configure which stakeholders receive these emails through the Lang.ai interface

  3. All recipients must be existing users in your Snowflake account

Troubleshooting

If you encounter issues:

  • Verify the command was run by a user with administrator privileges

  • Check that the integration was created successfully by running: SHOW INTEGRATIONS LIKE 'LANGAI_APP_NOTIFICATION_INTEGRATION';

  • Contact your Snowflake administrator if you need help with permissions

Questions?

Need help with setup or have questions about email notifications? Contact our support team.


Note: This feature requires the email integration to be created only once. Multiple Lang.ai agents can use the same integration to send notifications.

Did this answer your question?