RepoSnowflake (Arctic)Snowflake (Arctic)published Nov 11, 2026seen 1w

Snowflake-Labs/snowflake-agents-embed

TypeScript

Open original ↗

Captured source

source ↗

Snowflake-Labs/snowflake-agents-embed

Language: TypeScript

License: Apache-2.0

Stars: 0

Forks: 0

Open issues: 0

Created: 2026-11-11T04:55:42Z

Pushed: 2026-11-18T12:38:09Z

Default branch: main

Fork: no

Archived: no

README:

Snowflake Agents Embed

Snowflake Cortex agent chat, embedded in Microsoft Teams. The app is displayed as Snowflake Agents for Teams (Unofficial).

Maintainer: Snowflake Inc. (Snowflake Labs) License: [Apache-2.0](LICENSE)

This is an open-source Snowflake Labs sample. It is not an officially supported Snowflake product and is provided as-is, with no SLA or warranty. See [NOTICE](NOTICE). It calls public Cortex Agents APIs. It is not Snowflake CoWork (the first-party Snowsight UI) and is not the official Cortex Agents Teams integration.

This repository is Teams-only with plans to add support for other apps (Tableau, Salesforce, PowerBI etc.)

What it does

A Teams tab + bot that lets users chat with a named Cortex Agent and get streamed answers with thinking steps, inline citations, Vega-Lite charts and virtualized data tables, authenticated as the signed-in user (Entra SSO, then On-Behalf-Of exchange for a Snowflake token).

Teams tab (React SPA)
│ 1. Teams SSO → Entra JWT
│ 2. POST /token/exchange → encrypted edge session (OBO under the hood)
│ 3. POST /api/agent/run → edge attaches SPCS_PAT + user token
▼
Edge (Cloudflare Worker, or self-hosted Node)
▼
SPCS service (Hono): SSE relay · token exchange · Bot Framework webhook
▼
Snowflake Cortex Agents (:run, streaming SSE)

The browser never holds the service PAT or the user's Snowflake token. Details: [apps/teams/README.md](apps/teams/README.md) and [docs/authentication-patterns.md](docs/authentication-patterns.md).

Repo layout

npm workspaces monorepo (packages/*, Node 22+, see .nvmrc).

apps/teams/ Deploy assets: Native App (setup SQL, SPCS specs, Streamlit
wizard), Dockerfiles, env templates, scripts/
packages/
├── server/ SPCS backend (Hono): Bot Framework webhook, SSE relay, token exchange
├── tab/ Teams tab SPA (Vite, React); Entra SSO
├── teams-edge/ Edge: tab assets, /api/* proxy, /token/exchange, /token/link.
│ Cloudflare Worker adapter + self-hosted Node adapter
├── chat-core/ Shared React chat UI (source-only)
├── cortex-server/ Host-neutral Snowflake/Cortex server integration (source-only)
└── teams-manifest/ Teams app manifest generator + icons
docs/ Install guides and auth patterns
skills/ Cortex Code deploy skills (teams-deploy, teams-deploy-edge-node)
snowflake/superstore-360/ Sample Superstore data, semantic view and demo agent SQL

Deploying

Start at [docs/install-guide.md](docs/install-guide.md), then the Teams docs in [docs/teams/](docs/teams):

  • [teams-install.md](docs/teams/teams-install.md): standalone SPCS install (default), Teams app sideload,

verification, teardown, Pages-to-Worker cutover

  • [teams-troubleshooting.md](docs/teams/teams-troubleshooting.md): install and tab errors, diagnostics
  • [teams-private-connectivity.md](docs/teams/teams-private-connectivity.md): NETWORK_MODE hybrid / privatelink
  • [teams-native-app.md](docs/teams/teams-native-app.md): Native App install (Path B)

Scripts live in apps/teams/scripts/ (validate-env.sh, deploy-spcs.sh, set-edge-secrets.sh, deploy-tab.sh, smoke-test.sh, and more). They read only apps/teams/.env. A self-hosted Node edge is available via apps/teams/edge.Dockerfile when a Cloudflare tunnel is not allowed.

The teams-deploy and teams-deploy-edge-node skills under [skills/](skills) wrap these flows for Cortex Code.

Security notes

Tab SSO is the supported per-user authentication path; bot turns fail with a sign-in prompt rather than falling back to a shared PAT. Mint the service PAT with ROLE_RESTRICTION and keep per-user network policies restricted. See [PRIVACY.md](PRIVACY.md) and [TERMS.md](TERMS.md).