# Setup & embed

Activate your agent and get the code to embed it in your product.

<Mermaid chart={`flowchart LR
    A["Enable agent"] --> B["Fill in details<br/>name, key, product"]
    B --> C["Copy snippet"]
    C --> D["Paste before &lt;/body&gt;"]
    D --> E["Agent live"]
    style E fill:#1842ef,stroke:#1842ef,color:#ffffff
`} />

**Path:** Agent Studio → Setup

Setup is where you activate your agent and get the code to embed it in your product.

## Agent status

Toggle **Agent status** to **Enabled** or **Disabled**. When disabled, the widget is hidden from all users — useful during maintenance or major configuration changes.

## Agent details

| Field | Purpose |
| :--- | :--- |
| **Internal Agent Name** | Name shown in the Foldspace dashboard (not user-facing) |
| **Agent Key** | Unique identifier used in the embed code |
| **Product Name** | The product the agent supports |
| **Product Description** | Context about your product given to the AI to ground its responses |

:::tip[Write a real Product Description]
A detailed, accurate Product Description is one of the most important things you can do to improve agent quality. The agent leans on it constantly, so describe what your product is, who uses it, and the vocabulary it uses.
:::

## Installation

Copy the code snippet and paste it into your product's HTML before the closing `</body>` tag. You can pass user attributes (name, email, subscription plan) via JavaScript to personalize responses.

For the code-level details, including identity verification and configuration options, see the developer [Setup guide](/start/install/).
