# Deployment of Agents

> You're reading the Mindset v3 documentation. v3 is no longer sold; this is reference for existing customers. Mindset 4 docs are at /docs.

Easily embed agents into your platform with flexible deployment options tailored to your authentication needs.

## Authentication Method

Use this method when you **need to authenticate users** and capture specific details such as email addresses.\
It allows you to:

- Track user activity alongside their messages
- Associate conversations with logged-in users
- Support scenarios like learning and development platforms, where login is required

Note: This is the only way to use Agent Sessions to provision knowledge contexts programmatically.

## Anonymous Method

Use this method when **authentication is not needed** and users should remain anonymous.

- Implemented using the **three code snippets** provided in the Deployment Screen
- Generates only a `userUid`, enabling message tracking without storing any personally identifiable information
- Perfect for quick public deployments, such as embedding an agent on a **website landing page**

Note: This method should only be used when the knowledge contexts and underlying sources are public, as anyone who accesses the agent page could see the data.
