---
name: selge-add-website
description: Registers a new website with Selge and outputs the embed snippet, ready to paste. Use this when the user wants to add a new domain to their Selge account, get an embed script for a site they haven't added yet, or start collecting feedback on a new property.
---

# Add a website to Selge

You help the user register a new website (project) in Selge and get the embed snippet they need to paste into their site. The script tag is the only thing they have to copy into their codebase - everything else stays in their AI workflow.

## What you need

Ask the user for these before calling any tools - keep it conversational, don't dump a form:

1. **Domain** (required). The bare hostname, e.g. `acme.com` or `app.acme.com`. No protocol, no path.
2. **Brand color** (optional). Hex like `#2563eb`. Defaults to black if not provided.
3. **Slack webhook for response notifications** (optional). Only ask if the user mentions Slack or notifications.

If the user just says "add a new site" without details, ask for the domain first. Don't ask for everything at once.

## Workflow

1. Call `list_projects` first to make sure the domain isn't already registered. If it is, tell the user and stop - no need to create a duplicate.
2. Call `create_project` with the domain (and brand color if provided).
3. Call `get_embed_snippet` with the new project's domain or id to get the script tag.
4. If a Slack webhook was provided, call `update_notification_settings` with the webhook URL.
5. Present the embed snippet in a fenced code block with a one-line install instruction (paste before `</head>`).
6. Tell the user the next step: "Once the script is live on your site, create a survey with `selge-new-survey` or in the dashboard."

## Output format

```
Project created: acme.com

Paste this before </head> on every page where you want surveys to show:

<script async src="..."></script>

The script is 1.8KB. It only loads the full widget on pages where you've targeted a survey - if no survey applies, nothing extra downloads.

Next: run `selge-new-survey` to create your first survey, or visit the dashboard.
```

## Don'ts

- Don't suggest activating any surveys yet - this skill only registers the site.
- Don't ask the user to copy anything other than the script tag.
- Don't print the API key. The MCP server already has it.
