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

# How to add a ChatGPT AI support agent to Framer

> How to add your custom ChatGPT trained AI support agent to your Framer website.

You want to embed your custom trained AI support agent in your **Framer** website page. Here's how to add an AI support agent to Framer with SiteSpeakAI.

<Frame>
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/7ZQqK5-DB4c" title="How to add an AI chatbot to your Framer site" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Frame>

<Accordion title="Video transcript">
  In this tutorial, I'll guide you through the process of adding your custom ChatGPT AI support agent to your Framer website.

  Before you can add your agent to Framer, you need to create and train it. After you log in to SiteSpeak, you land on the Get Started page, which walks you through it in five quick steps. First, give your agent a name. This is the name your visitors will see when they chat with it. Click Save and Continue to create the agent. Next, add the website you want your agent to learn from. For this example I'll use snapwidget.com. Click Save and Continue, and SiteSpeak crawls the site to find pages it can train on. In a few seconds, it finds the main pages on the site. SiteSpeak selects those pages for you. Click Save and Continue to train your agent on them. SiteSpeak now trains your agent on that content automatically. Once it finishes, your agent is ready to answer questions about your site, and you can add it to your Framer website.

  First, we'll walk through how you can integrate your custom ChatGPT-trained AI support agent into your Framer site. Start by logging into your Framer account. Once you're on the dashboard, select the project you want to edit. Next, click on Settings to access the Site Settings for your project. Within the Site Settings, look over to the left sidebar and click on Custom Code. On the Custom Code page, click on the `<>` Custom Code item to bring up the Script Editor. Here, you'll want to scroll down to the End of `<body>` section to insert your code. Once you've done that, your AI support agent button will appear on your Framer website page. By clicking on this button, you'll be able to display the AI support agent dialogue, ready to assist your visitors.

  And that's it. You've successfully added a ChatGPT AI support agent to your Framer site.
</Accordion>

**Framer** is a website builder that's different from traditional drag-and-drop platforms like Wix or Squarespace. It's essentially a **design tool for websites**. Instead of just picking pre-made templates, you build your website using **code-like components** – think of them as building blocks you can customize with CSS (the language that controls how websites look). It's incredibly powerful for creating **interactive and visually stunning websites**, especially those with complex animations, micro-interactions, and unique layouts.

**Website URL:** [Framer](https://www.framer.com/)

## Add your AI support agent to your **Framer** website

### In SiteSpeakAI

Select your chatbot from the dropdown menu at the top, click on the **Install Agent** section in the sidebar, then click on the **Copy Code** button to copy your code snippet.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/espressodev/images/installing-your-chatbot/copy-code.png" alt="Copy code snippet" />

### In Framer

1. Log into your **Framer** account and on the dashboard, select the project to edit

<img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/1-Framer-Select-your-project.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=28efaf4560b5ba42d6941ddf1bdc86fd" alt="" width="1436" height="641" data-path="images/installing-your-chatbot/framer/1-Framer-Select-your-project.png" />

2. Click on **Settings** to open the Site Settings

<img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/2-Framer-Click-on-Settings.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=dfccc2faab818404ed7708485c82905e" alt="" width="1438" height="722" data-path="images/installing-your-chatbot/framer/2-Framer-Click-on-Settings.png" />

3. Under **Site Settings**, on the left side bar, click on **Custom Code**

<img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/3-Framer-Click-on-Custom-Code.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=b25bc148059756a2ce6dd33bda44fd4d" alt="" width="1440" height="723" data-path="images/installing-your-chatbot/framer/3-Framer-Click-on-Custom-Code.png" />

4. On the **Custom Code** page, click on the **`<>` Custom Code** item to open the Script Editor
   <img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/4-Framer-Click-on-the-Custom-Code-item.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=b60e32f06987a69e1c7202564940457a" alt="" width="1440" height="723" data-path="images/installing-your-chatbot/framer/4-Framer-Click-on-the-Custom-Code-item.png" />

5. Insert your snippet. You have a few options where to insert your snippet, i.e.

* Start of `<head>`
* End of `<head>`
* Start of `<body>`
* End of `<body>`

When done, click on **Save** and then click on **Publish**

<img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/5-Framer-Insert-snippet-and-click-on-Save.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=5cb63d6d732d13117ed7320c9f5177dc" alt="" width="1438" height="722" data-path="images/installing-your-chatbot/framer/5-Framer-Insert-snippet-and-click-on-Save.png" />

6. Your AI support agent button will now be displayed on your **Framer** website page
   <img src="https://mintcdn.com/espressodev/tIMMEz4lv2D3eTA7/images/installing-your-chatbot/framer/6-Framer-AI-support-agent-button.png?fit=max&auto=format&n=tIMMEz4lv2D3eTA7&q=85&s=7d7b874a23ad159e248e323f7608b195" alt="" width="1435" height="827" data-path="images/installing-your-chatbot/framer/6-Framer-AI-support-agent-button.png" />

7. If you click on the button it will display the AI support agent dialogue
   <img src="https://mintcdn.com/espressodev/M-R0dVKgYaQ73Jh2/images/installing-your-chatbot/framer/7-Framer-AI-support-agent-dialogue.png?fit=max&auto=format&n=M-R0dVKgYaQ73Jh2&q=85&s=50e2b885c05e2865093cea35cbeb38c9" alt="" width="1440" height="828" data-path="images/installing-your-chatbot/framer/7-Framer-AI-support-agent-dialogue.png" />

Your AI support agent has now been added to your **Framer** website and your visitors/customers can start interacting with it!

***

<Card title="Ready to automate your customer service with AI?" icon="bot" href="https://sitespeak.ai/register?utm_source=docs&utm_medium=cta&utm_campaign=primary-cta" arrow="true" cta="Create Your AI Agent">
  Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.
</Card>
