Skip to main content
All CollectionsSnowflake AI agentsUsing Lang
Troubleshooting Agent Creation Issues
Troubleshooting Agent Creation Issues

A guide to quickly diagnose and resolve AI agent setup problems

Updated over 3 weeks ago

πŸ’‘ If you receive an error, please contact your CSM to get dedicated support

When encountering issues with your Snowflake AI Agents, you have several ways to diagnose and resolve the problem:

1. Check Error Logs

You can quickly access error logs directly in the application:

  • Navigate to the "Logs" section in the left sidebar

  • Review the most recent errors related to agent creation

Common errors include permission issues or data processing failures.


2. Common Resolution Steps

If you encounter an "Agent Creation Failed" error:

  • 1. Check your Snowflake permissions:

    • Verify access to required tables. Learn more here.

  • 2. Validate your data format:

    • Confirm all required columns are present (id, text and creation_date)

    • Check for any data formatting issues

  • 3. Try creating the agent again

    • Delete the failed agent

    • Start fresh with the agent creation process

3. Share Error Information

If you need to contact support, make sure to share ALL events from the native app so that Lang.ai can provide any necessary operational support. You can examine the logs and events shared with Lang.ai using the event table configured for your account. See Snowflake's documentation for more details about event sharing.

Using Snowsight: If you have an existing Lang.ai app installation, you can easily enable events in Snowsight by going to Data Products -> Apps -> Snowflake AI agents -> Events and Logs. On the Events and Logstab, toggle the All events button in the Events and logs sharing section

Using SQL: The above event sharing can also be enabled using the following commands:

-- Set app name if it's different from the default.
SET LANGAI_APP_NAME = 'LANG_AI';

-- Enables event sharing for the Native app.
ALTER APPLICATION IDENTIFIER($LANGAI_APP_NAME) SET AUTHORIZE_TELEMETRY_EVENT_SHARING=true;

To ensure you're using the latest version of our application, follow these steps:

1) Open your Snowflake worksheet or console.

2) Run the following SQL query:

SHOW APPLICATIONS

3) In the results, locate the row for our application.

4) Check the label and patch columns to identify your installed version.

4. Contact Support

If you've tried the steps above and still need help:

  • Contact your CSM for dedicated support

  • Include your error logs and steps attempted

  • Mention any recent changes to your data or configuration

Need immediate assistance? Contact support@lang.ai

Did this answer your question?