# AGENTS.md: up8x for AI agents

This file tells AI agents how to understand and navigate https://up8x.com. A shorter index is at https://up8x.com/llms.txt and full product details are at https://up8x.com/llms-full.txt.

## Summary

up8x is a sales pipeline for agencies selling to e-commerce businesses. Import prospect lists, move leads from cold to won, and get AI web research briefings, 0 to 100 lead scores and personalised cold emails for every prospect.

## Access model

- **Public, no auth:** `/`, `/sign-up`, `/sign-in`, plus `/llms.txt`, `/llms-full.txt`, `/agents.md`, `/sitemap.xml`, `/robots.txt`.
- **Signed in + active subscription:** everything under the app (table below). Unauthenticated requests redirect to `/sign-in`.
- **Admins only:** `/admin/*` (users and subscriptions).
- There is **no public REST API**. Use the MCP endpoint below with the user's API key, or the web UI with their session.

## MCP endpoint

`POST https://up8x.com/api/mcp` is a stateless MCP server (JSON-RPC 2.0 over Streamable HTTP, protocol 2025-06-18, plain JSON responses, no sessions). Send `Authorization: Bearer up8x_...`. The user creates a personal key at `/settings/api` and picks its access; the agent then acts as that user, with the same lead visibility as in the app. Requires an active plan. Rate limit: 120 requests per minute per key.

- **Read only:** `whoami` (call first: user, key access, teams and member ids, stages), `pipeline_summary`, `list_leads` (filters: stage, priority, owner, query, followUpDue, needsResearch, offset), `get_lead`, `find_duplicates`, `get_target`, `list_prospect_batches`, `get_prospect_batch`, `web_search` and `read_url` (OpenRouter web search, spends the user's AI credit).
- **Read and edit** adds: `add_lead`, `update_lead`, `update_lead_contact`, `set_lead_stage`, `log_activity`, `add_lead_note`, `set_follow_up`, `run_lead_research`, `save_lead_research`, `stage_prospects`, `accept_prospects`, `reject_prospects`.
- **Full access** adds: `send_lead_email` (a real email to the prospect), `assign_lead`, `share_lead`, `delete_lead`.

`tools/list` only returns the tools the key may call. Always call `find_duplicates` before `add_lead`. For lead finder work, stage businesses with `stage_prospects` for review instead of `add_lead`. Each change is logged on the lead's timeline and in the team audit log under the key's name. up8x's hosted Hermes agents use the same endpoint with their own restricted keys (no edits beyond research, early stages only, no email or delete).

Hermes config (`~/.hermes/config.yaml`):

```yaml
mcp_servers:
  up8x:
    url: "https://up8x.com/api/mcp"
    headers:
      Authorization: "Bearer up8x_..."
```

## Signing in

1. Open `https://up8x.com/sign-in`.
2. Fill **Email** and **Password**, then press **Sign in**.
3. On success you land on `/dashboard`. Without an active plan you are sent to `/billing`.

Never guess passwords, never create accounts or start paid subscriptions unless the user explicitly asked you to, and never bypass email verification.

## App pages

| Path | What it does |
| --- | --- |
| `/dashboard` | Open leads, hot deals, win rate, follow-ups due and recent activity. |
| `/pipeline` | Kanban board of leads by stage (drag and drop to change stage). |
| `/leads` | Searchable, filterable table of all leads. |
| `/leads/new` | Add a single lead. |
| `/leads/import` | Import leads from CSV (deduplicated by domain). |
| `/leads/find` | Lead finder wizard: save a target (industry, country, locations, platforms, exclusions) and see recent runs and which sources win deals. |
| `/leads/find/:targetId` | Run a source for a target (Google Maps, AI web search, a Hermes agent, CSV or Google Sheets; emailed leads arrive as their own batches) or schedule it to repeat. |
| `/leads/find/batch/:batchId` | Review a run's staged prospects (deduped, website/platform/ABN checked, scored), then add the chosen ones to the pipeline. |
| `/leads/export.csv` | Download leads as CSV. |
| `/leads/:id` | One lead: stage stepper, AI research briefing, activity timeline, outreach, attachments. |
| `/research` | AI prospect discovery and free form web research. |
| `/teams` | Teams: members, invites and the team audit log. |
| `/chat` | Team chat conversations. |
| `/notifications` | Your notifications. |
| `/settings/email` | Your personal lead email address (<alias>@ the inbound domain): mail from allowed senders is read by AI and staged in the lead finder as a batch (or added straight to the pipeline). Toggle it, pick the team, manage allowed senders, rotate the address. |
| `/settings/api` | Create and revoke personal API keys (read only, read and edit, or full access) that let outside AI agents use the MCP endpoint as you. |
| `/billing` | Subscription plan and Stripe billing portal. |

## Common tasks

- **Find a lead:** go to `/leads`, use the search box (matches name, domain, contact) and the stage filter.
- **Move a lead through the pipeline:** on `/leads/:id` click a stage in the stepper, or drag the card on `/pipeline`. Stages: New → Cold → Warm → Hot → Proposal → Won → Lost.
- **Research a lead:** on `/leads/:id` press the AI research button. Wait for the briefing; it includes sources, a 0 to 100 score and a draft email.
- **Send outreach:** on `/leads/:id` review and edit the drafted email, then send. Confirm the content with the user before sending; emails go to real people.
- **Import leads:** `/leads/import` accepts a CSV with a header row; duplicates by domain are skipped.
- **Find new prospects:** `/research`, describe the target market, then add results to the pipeline.

## Rules for agents

- Treat lead data as confidential business data. Do not copy it outside the user's task.
- Ask the user before any irreversible or outward facing action: sending email, deleting leads, changing plans, banning or deleting users.
- AI research runs count against the plan's monthly quota. Do not run research in bulk unless asked.
- Be gentle: no more than about one request per second, and do not crawl the signed-in app.

## Pricing

- **Starter**: $49/month. 500 leads, 50 AI research runs / month, Pipeline + dashboard, CSV import/export.
- **Pro**: $99/month. Unlimited leads, 500 AI research runs / month, AI prospect discovery, Email outreach + attachments, Hermes AI agents that research 24/7.
