# Add Asks to Framer

> Add the Asks AI chatbot to a Framer site: paste the embed script into Site Settings → General → Custom Code at the end of the body, then publish.

To add the Asks AI chatbot to a Framer site, open **Site Settings → General**, scroll to **Custom Code**, paste your Asks snippet into the **End of `<body>` tag** box, and publish. Framer runs custom code only on the published site, not on the canvas or in preview, and custom code needs a paid Framer site plan.

## Before you start

- Your Framer site has a paid site plan.
- The Chat widget reads **Live** at [Channels → Chat widget](https://app.asks.app/channels/widget).

## Add the widget in Site Settings

<Steps>

<Step title="Copy your snippet">

Open [Channels → Chat widget → Deploy](https://app.asks.app/channels/widget/deploy). Under **Choose how to install**, keep **Code snippet** and **HTML**. Under **Configure your code snippet**, select **For website visitors without logins**, then select **Copy**:

```html
<script
  src="https://cdn.asks.app/embed.js"
  data-widget-key="YOUR_WIDGET_KEY"
  async
></script>
```

<Frame src="/images/get-started/onboarding-step-go-live.png" alt="Onboarding Put it on your site step with the Embed Code card showing the script tag and a Copy button, and the Installation status card watching for your site above the Email instructions to a developer button" caption="The same snippet appears in onboarding's last step and on the Deploy tab." />

</Step>

<Step title="Open Custom Code">

In your Framer project, open **Site Settings** from the gear icon, select the **General** tab, and scroll to **Custom Code**.

</Step>

<Step title="Paste the snippet at the end of the body">

Paste the snippet into **End of `<body>` tag**. Don't use the head box: the widget attaches to the page body, which doesn't exist yet when head scripts run.

</Step>

<Step title="Publish">

Select **Publish** at the top right (**Update** on a site that's already live). The snippet goes live with the publish.

</Step>

</Steps>

## Verify it works

Open the published site in a private window. The launcher appears in the bottom corner, and the Deploy tab's **Installation status** card reads "Widget detected on" followed by your domain. Send a test message: it lands in your [Inbox](https://app.asks.app/inbox), and the agent replies when it's on for the Chat widget at [AI agent → Deploy](https://app.asks.app/ai-agent/deploy).

<Frame src="/images/api/widget-identity-verification.png" alt="Chat widget Deploy tab scrolled to the Installation status card, which reads Widget detected on aurelia-skincare.com in green, between the server-side userHash code and the Identity verification (for users with logins) card" caption="Installation status turns green on the first page load with the snippet." />

<Frame src="/images/ai-agent/deploy.png" alt="Deploy AI Agent page with the AI Agent Status card active and the Deploy to Channels card listing Chat widget switched on and Active, then WhatsApp Business, Instagram, Facebook Messenger, and Telegram with their own switches" caption="The agent answers on your site when Chat widget is on here." />

## Troubleshooting

### The launcher doesn't show on the canvas or in preview

That's expected: Framer runs custom code on the published site only. Publish, then check the live URL.

### The widget shows on one page only

The snippet went into one page's own custom code in its page settings, which affects that page only. Move it to **Custom Code** in **Site Settings**.

### Framer won't publish the custom code

Custom code needs a paid site plan. Until the site has one, share the hosted [Chat Page](/channels/chat-page) link instead.

### The chat says "This chat isn't live yet"

Your workspace has no active plan or trial yet. Start one from [Plans & billing](/workspace/billing).

Framer steps checked in November 2026 against Framer Academy's lesson [Add Custom Code to your site](https://www.framer.com/academy/lessons/custom-code).

## Related

- Other site builders: [Webflow](/channels/widget/install/webflow), [Wix](/channels/widget/install/wix), [Squarespace](/channels/widget/install/squarespace), or [all install guides](/channels/widget/install).
- [Widget customization](/channels/widget-customization): colors, launcher, greeting, and languages.
- On asks.app: [Asks integrations](https://asks.app/integrations), [the AI chatbot for websites](https://asks.app/ai-chatbot-for-website), and [the shared inbox](https://asks.app/shared-inbox).
