# Install the messenger

> Add Summer AI Messenger to your website. Create an installation, add the snippet, configure branding and test visitor chat before connecting signed-in accounts.

Canonical: https://gosummer.ai/docs/install-messenger
Publisher: Summer AI

Summer AI's messenger brings website conversations into your support workflow. Start with public support and clinician links. Connect verified identity when you want patient-specific destinations.

## Choose your setup

| Setup | What your customer gets | What you supply |
| --- | --- | --- |
| Basic embed | Visitor support and public clinician, sign-in and care links | A website snippet and URLs in Summer AI |
| Verified identity | An account conversation with optional links to the patient's own clinician chat, plan or order | A small server endpoint and a Summer AI signing key |
| Connected tools | Additional reads and approved work across your systems | Separate integrations and scoped credentials |

You do not need to share clinical-system API keys just to link someone to their own care page.

## Create an installation

1. Sign in to Summer AI and select your company.
2. Open **Settings → Integrations → Summer AI Messenger → Set up messenger**.
3. Create an installation. Enter your support name and exact website origins, such as `https://www.example.com`. Add each origin separately; paths and wildcards are not accepted.
4. Add your clinician-chat destination, sign-in destination and public care/catalog page. These destinations are optional; Summer AI will not invent a missing URL.
5. Enable **Allow visitors without an account** for a basic embed. Enable customer messaging when your installation is ready to test.

**Inbox** in the company navigation opens website chats with conversations on the left and messages and a reply box on the right. Chats start with the longest unanswered wait first. Sort by newest activity, overdue replies or newest conversations, and filter by human help, agent work, approval-ready plans, waiting customers or resolved chats. The attention buttons show all matching chats across pages. Search all conversations by customer name or latest message, switch chats without losing a draft, and reply from the conversation. A staff reply pauses the assistant. Click **Send reply** (or press ⌘Enter) to send the message you wrote; Summer AI checks the selected conversation and permissions before sending. Agent plans keep their separate approval controls; **View case** opens the full support workspace. Other company installations use the same chat layout. Each thread shows the customer wait, separate assistant and human reply ages, help requests, and current plan progress. Recorded progress acknowledgments leave the waiting clock running. Open **Response history** for exact times; **Review plan** opens the existing approval workspace.

The installation belongs to the selected company and environment. Keep staging and production separate.

## Add the snippet

Replace `YOUR_INSTALLATION_UUID` with your installation ID. See [Find your installation ID](https://gosummer.ai/docs/install-messenger#find-your-installation-id). Put the configuration before the asynchronous loader.

```html
<script>
window.summerMessengerConfig = {
  installationId: "YOUR_INSTALLATION_UUID"
};
</script>
<script src="https://gosummer.ai/messenger/v1/loader.js" async></script>
```

The installation ID is public. The signing key is private and does not belong in this snippet.

## Find your installation ID

Each installation has its own ID, a UUID such as `4f6c1b2e-8d3a-4c7f-9e15-2a6b0d9c3e71`. Staging and production installations have different IDs.

- **In Summer AI:** [sign in](https://gosummer.ai/workspace) and select your company. Open **Settings → Integrations → Summer AI Messenger → Set up messenger**, then choose the installation. Its ID shows under the picker with a **Copy** button. The **Basic embed** and **Embed and identity integration** snippets on that page already contain it.
- **When you save a new installation:** the receipt shows the ID.
- **From the CLI:** after `summer login`, `summer messenger list --json -c COMPANY_ID -e staging` lists each installation with its `id`.
- **From a setup file:** `summer setup apply` reports each installation's ID in the `installation` field of its result. See [Set up from a project](https://gosummer.ai/docs/developer-platform#set-up-from-a-project).

Only company owners and administrators can open the messenger settings. If you cannot open them, ask one of them for the ID.

If your site uses Content Security Policy, allow the Summer AI host for the script, frame and connection requests the embed uses. Apply your application's normal nonce or hash to the inline configuration if your policy requires one; allowing the external loader alone does not allow that inline script. Test the embed with your actual production policy.

## Connect your accounts later

Add `getIdentityAssertion` when your backend can verify the current login. Follow [Connect signed-in accounts](https://gosummer.ai/docs/verified-identity). A visitor's name, email or date of birth is not proof of account ownership.

## Test before rollout

Use your staging installation and test accounts. Verify that the widget opens, messages arrive, configured links reach the right pages, and signed-out visitors see no account details. See the [testing checklist](https://gosummer.ai/docs/security-and-testing).

Messenger enablement, routine assistant replies and deeper operational actions have separate controls. Enabling the widget does not activate all of them. Your Summer AI deployment must have the messaging backend configured; contact your Summer AI administrator if setup reports that the backend is unavailable.


## Company branding and agent names

In **Customer messenger**, set **Company name** and **Company logo URL** for the chat header. Use a public HTTPS image. If the logo cannot load, the chat shows company initials.

**Agent identity** defaults to **Named support** with your company's AI employee: its name and photo appear beside chat replies. Summer AI adds an AI employee to every company. You can choose another AI employee, a suggested person, the default names **Alex M.** or **Emma R.**, or enter a custom name. Choose **AI assistant** to add the visible AI label; its default name is **Summer AI**. The selected name also appears while the assistant types. Human teammates keep the company label, and original automated-message records remain available to your team. The assistant answers truthfully when someone asks whether it is AI.

The UI, API, CLI and MCP share these installation settings:

```json
{
  "display_name": "Example Care",
  "logo_url": "https://example.com/logo.png",
  "identity": {
    "mode": "human",
    "name_style": "neutral",
    "custom_name": "Jamie L."
  }
}
```

Include these fields alongside your other installation settings. Use `"mode": "ai"` for the AI label and `"name_style": "female"` for the female default. In named-support mode, an empty `custom_name` with no `teammate_id` or `suggested_photo` saves your company's AI employee. The default name **Alex M.** is used only when the company has no AI employee. Omitting `identity` or `logo_url` during an update keeps the saved value. Changes use the current installation version and appear in configuration history.

Use `summer messenger update INSTALLATION_ID --company COMPANY_ID --environment production --expected-version N --from-file settings.json --json`, or call `messenger.installations.update` through the API or MCP. Keep the complete settings object in `settings.json`. Signing-key rotation preserves branding and identity.


## Chat colors

Set **Chat colors** in Customer messenger to match your company. **Accent color** changes the launcher, buttons, links, unread markers and focus outlines. **Customer message color** changes the customer’s message bubbles. The preview updates as you choose colors. Text and hover colors adjust automatically for readable contrast. **Reset chat colors** restores the original palette.

CLI, API and MCP use `presentation.colors` in the same installation settings:

```json
{
  "presentation": {
    "colors": { "accent": "#2457c5", "customer_bubble": "#e3ecff" }
  }
}
```

Use six-digit hex colors. Include your other presentation settings when updating this object. Each installation keeps its own palette and configuration history; key rotation keeps the selected colors.
