Create Streamlit Application
Step 1: Generate Snowflake PAT Token¶
- Follow the instructions in the official Snowflake documentation: 👉 Generate a PAT Token
- Save this PAT token — you’ll need it later during configuration.
Step 2: Create Streamlit Application in Snowflake¶
- In your Snowflake account, open the left-hand navigation menu and click on Streamlit under Projects.
- Click on the Streamlit App button (top right).
-
In the dialog:
-
Set Database to
sales_intelligence
- Set Schema to
data
- Choose your Warehouse
- Click Create
Note: Ensure the database and schema match those used in the setup.
Step 3: Configure the Streamlit Application¶
-
Click on the Packages dropdown in the top-left corner. In the search field that appears, enter the following package names one by one and press Enter after each to install them into your environment:
urllib3
cryptography
posthog
requests
pyjwt
jproperties
-
Copy the contents from streamlit.py from the github repository and paste it into your new Streamlit App.
-
Replace the placeholders in the code with your actual values:
<your-trust3-server-base-url>
- Trust3 Native App Endpoint (e.g.,https://abcde-gk76548-demo.snowflakecomputing.app
)<your-snowflake-pat-token>
- PAT token generated in Step 1<your-trust3-ai-app-api-key>
- API key from Generate Trust3 Application API Key
-
Click the three dots icon on the top right corner of the app editor.
-
Go to App Settings > External Networks tab.
-
Enable the toggle for:
ALLOW_SNOWFLAKE_NATIVE_APPS_EAI
-
Run the application.
What Next?
-
Previous
-
Next