> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel AI SDKs & Samples

> AI Identity for B2B Vercel AI SDKs make it easy for developers to integrate with and secure AI agent workflows using Vercel AI.

## [Auth0 AI for Vercel AI SDK](https://github.com/auth0/auth0-ai-js/tree/main/packages/ai-vercel)

This SDK provides building blocks for using AI Identity for B2B with the Vercel AI SDK. It includes tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, building blocks to handle interrupts, and [OpenFGA-based](https://openfga.dev/) tool authorizers. It supports:

* Tools for implementing asynchronous user authentication
* Tools for getting access tokens for third-party connections
* [OpenFGA-based](https://openfga.dev/) tool authorizers

```bash wrap lines theme={null}
npm install @auth0/ai-vercel
```

## Sample applications

Checkout our sample applications for JavaScript/TypeScript built with frameworks like LangGraph and Vercel AI.

> **[Assistant0 (Next.js)](https://github.com/auth0-samples/auth0-assistant0/tree/main/ts-vercel-ai)**
>
> A fullstack AI personal assistant with pre-configured tools that demonstrate different AI Identity for B2B features like User Authentication, Calling APIs (Gmail, Google Calendar, etc) securely using Token Vault, Human-in-the-loop interactions using Asynchronous Authorization, and using Auth0 FGA for securing RAG tools.

> **[Agent0 (Fastify)](https://github.com/auth0-samples/agent0)**
>
> A full-stack AI personal assistant, powered by React and Fastify, that
> invokes your APIs using tool calls on a logged-in user's behalf.

> **[AI Samples](https://github.com/auth0-samples/auth0-ai-samples)**
>
> Explore our repository of standalone sample applications that showcase
> Auth0's authentication and authorization capabilities in generative AI
> applications. Each sample demonstrates a specific AI Identity for B2B feature.

> **[Auth0 AI SDK Samples](https://github.com/auth0/auth0-ai-js/tree/main/examples)**
>
> Explore example applications that accompany Auth0's JavaScript AI SDKs.
> These demonstrate recommended implementation patterns for the SDKs.

## Guides & Tutorials

Checkout our guides for Vercel AI in TypeScript.

> **[Check Google Calendar Availability](https://auth0.com/ai/docs/how-tos/check-google-calendar-availability.md)**

> **[List GitHub Repositories](https://auth0.com/ai/docs/how-tos/list-github-repositories.md)**

> **[List Slack Channels](https://auth0.com/ai/docs/how-tos/list-slack-channels.md)**

> **[Get Salesforce Opportunities](https://auth0.com/ai/docs/how-tos/get-salesforce-opportunities.md)**
