> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meetdarwin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Add chat buttons to your website

> Agent Studio → Buttons: make buttons for your pages, like Book a demo or Talk to sales, that open Darwin's chat and start the conversation. Copy the code and paste it on your site.

<div className="darwin-location"><strong>Find it in Darwin</strong> Agent Studio → Buttons <a href="https://app.meetdarwin.ai/admin/agent?tab=buttons">Open this screen ↗</a></div>

A chat button sits on your own page, like a **Book a demo** button in your hero. When a visitor clicks it, Darwin's chat opens right there and the conversation starts, so they never leave the page.

<Steps>
  <Step title="Start from a preset or add your own">
    Open **Agent Studio → Buttons**. Pick a starting point, such as **Book a demo** (1), or select **Add button** (2) for a blank one.

    <Frame>
      <img style={{ width: 623, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-presets.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=0cafad9388ace93412438ada303f9c1e" alt="Buttons for your website, with four presets: Book a demo, Talk to sales, Ask about pricing and See how it works. Book a demo is marked 1 and Add button is marked 2." width="1246" height="806" data-path="images/guides/studio/buttons-presets.webp" />
    </Frame>
  </Step>

  <Step title="Write the label and the message">
    **Button label** is what visitors read on the button. **Message sent as the visitor** is what the chat says for them when they click.

    <Frame>
      <img style={{ width: 553, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-words.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=c97e43e421a7d9ea6e6fb137d3fdc88b" alt="The Button label field set to Book a demo and the message field set to I'd like to book a demo." width="1106" height="190" data-path="images/guides/studio/buttons-words.webp" />
    </Frame>
  </Step>

  <Step title="Choose what a click does">
    Under **When clicked**:

    * **Send** sends the message as the visitor's first message, and the agent answers it.
    * **Fill in** types the message into the chat box, for the visitor to send or change.
    * **Agent first** has the agent speak first. Use the message to tell the agent what the visitor wants; the visitor doesn't see it.

    <Frame>
      <img style={{ width: 486, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-behavior.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=960942c1b562917e9b887683d6a4e0fd" alt="The When clicked choice: Send, Fill in and Agent first, with a line explaining the selected option." width="972" height="252" data-path="images/guides/studio/buttons-behavior.webp" />
    </Frame>
  </Step>

  <Step title="Style it to fit your page">
    Under **Start from**, choose **Brand**, **Soft**, **Outline** or **Text link**. Buttons take their colors from your chat; change any color under **Colors**.

    <Frame>
      <img style={{ width: 343, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-style.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=791bc8d52910963e608a1a2c3b16457a" alt="The Start from choice and the Colors fields: Background, Text, Border and Hover." width="686" height="528" data-path="images/guides/studio/buttons-style.webp" />
    </Frame>

    Then set the **Size**, **Width** and **Corners**. **Full width** fills the space you paste the button into.

    <Frame>
      <img style={{ width: 326, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-size.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=a8f32717953ba689d36d0d9e0d78cbf7" alt="Size, Width and Corners choices for the button." width="652" height="196" data-path="images/guides/studio/buttons-size.webp" />
    </Frame>
  </Step>

  <Step title="Copy the code">
    Select **Copy code**. Paste it where the button should appear, on any page that has your Darwin chat. If the chat can't load, the button opens the same chat on a Darwin page instead. Turn on **Add nofollow** if your site needs it.

    <Frame>
      <img style={{ width: 561, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-copy.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=8f1dded501756e2dc1864836a22ac596" alt="The Code for your website box with the Copy code button highlighted and the Add nofollow switch." width="1122" height="614" data-path="images/guides/studio/buttons-copy.webp" />
    </Frame>
  </Step>

  <Step title="Save">
    Select **Save changes**. Use **Try it** next to a button to see what a click does in the preview.

    <Frame>
      <img style={{ width: 659, maxWidth: "100%" }} src="https://mintcdn.com/meet-darwin/cfyypApC_g6Sd8eh/images/guides/studio/buttons-save.webp?fit=max&auto=format&n=cfyypApC_g6Sd8eh&q=85&s=3292c51ffa25c6d7e6c0d3be6f5f25d3" alt="The bar at the bottom of the editor with Save changes highlighted." width="1318" height="140" data-path="images/guides/studio/buttons-save.webp" />
    </Frame>
  </Step>
</Steps>

## Good to know

* Pasted buttons pick up a new message or click behavior as soon as you save. A new label or look needs the new code pasted over the old.
* If you delete a button, copies already on your site still open the chat but no longer start the conversation.
* The chat must be installed on the page. See [Install the chat on your website](/installation/install-widget).

<CardGroup cols={2}>
  <Card title="Make the chat look like your brand" icon="palette" href="/assistant/appearance">Buttons start from your chat's colors.</Card>
  <Card title="Read visitor conversations" icon="messages-square" href="/reporting/conversations">See the conversations your buttons start.</Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.