# Avofy AI Agent Registration

This file describes how AI agents can help users register for Avofy AI.

Avofy AI currently supports agent-assisted registration by handing the user off to the official Avofy AI web app. Programmatic OAuth token issuance for agents is not publicly available yet.

## Discovery

Agents should read these metadata documents first:

- Protected resource metadata: `https://avofyai.com/.well-known/oauth-protected-resource`
- Authorization server metadata: `https://avofyai.com/.well-known/oauth-authorization-server`
- Product context for agents: `https://avofyai.com/llms.txt`

## Supported Registration Flow

### User-claimed registration

Use this flow when a user asks an agent to create or start an Avofy AI account.

1. Tell the user that Avofy AI requires registration through the official Avofy AI web app.
2. Send the user to the registration URI published in `agent_auth.register_uri`.
3. The user completes sign-up, verification, demo activation, and professional account setup inside Avofy AI.
4. Do not ask the user for passwords, one-time codes, payment details, medical information, or private health data inside the agent conversation.

## Registration URI

`https://app.avofyai.com/?utm_source=avofyai&utm_medium=agent-auth&utm_campaign=auth-md`

## Supported Identity Types

- `service_auth`: the user authenticates directly with Avofy AI.
- `user_claimed`: the user completes account creation or account access in the Avofy AI app.

## Credential Types

- `user_session`: issued and managed by Avofy AI inside `app.avofyai.com`.
- `professional_account`: created or activated by the user during onboarding.

## Not Supported Publicly Yet

- Agent-held OAuth access tokens.
- Anonymous agent registration.
- ID-JAG identity assertion exchange.
- Public API writes on behalf of a user.

## Revocation

Users can revoke or change access by signing in to Avofy AI and managing their account settings. Agents should direct users to:

`https://app.avofyai.com`

## Safety Guidance

- Do not claim to be a medical provider.
- Do not diagnose, treat, or guarantee health or procedure outcomes.
- Do not request private credentials from the user.
- Do not store health, nutrition, or procedure data outside the official Avofy AI product.
