> ## 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 Publii

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

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

**Publii** makes website creation simple and accessible for everyone, no matter your skill level. With an intuitive desktop interface and built-in privacy-first tools, Publii offers flexible and powerful options to build and manage blogs, portfolios, or documentation websites — quickly, securely, and completely hassle-free. It's the perfect tool for creators, authors, and businesses who value control and simplicity.

You can learn more at: [Publii](https://getpublii.com/)

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

**Please note**:

Publii is not an on-line (web based) website builder. It is installed on your computer as an application.

The default `server` setup is on your local computer but it can be setup to use **FTP** or **SFTP** to transfer the code to a host of your choice.

### 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://mintcdn.com/espressodev/uRHTfU4evieXXVDw/images/installing-your-chatbot/copy-code.png?fit=max&auto=format&n=uRHTfU4evieXXVDw&q=85&s=b2614ba1d9a160d4d501b1d1bca094a2" alt="Copy code snippet" width="3436" height="1916" data-path="images/installing-your-chatbot/copy-code.png" />

### In Publii

1. Start the **Publii** application and (if you have more than one site created on Publii) select the website from the dropdown list

![1 - Publii - Dashboard.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/LgqtRAoX4eU27HbFWvfpSxjokHcbAtpryyhABQuG.png)
...
![1b - Publii - Select website.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/vTE2wdJ5rKtXO775TZwOPVJW0affBw6QTjadzSeW.png)

2. Select **Tools & Plugins**

![2 - Publii - Select Tools & Plugins.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/R5j5UCZTs24xtsOZBFJWBZbQ0NBww4XjsqN6olka.png)

3. Select **Custom HTML**

![3 - Publii - Select Custom HTML.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/0avFVhGns4JA4Zy9jdrFe2AcObLRqXq5bBbeqM21.png)

4. Insert your snippet in the **Head** (or **Footer**) part of your website and click on **Save & Preview**

![4 - Publii - Insert snippet in Head part.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/Vm6WOu5rt2XR0017Zkb6gPkKiGy1LiCMjf89ZH7H.png)

5. Your AI support agent button will now be displayed on your Publii website

![5 - Publii - Chatbot button.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/Qq9Dkpcl5ZHF4Yx5BFDsB6ls5WmJdLy6npGca4a0.png)

6. If you click on the button it will display the AI support agent dialogue

![6 - Publii - Chatbot dialogue.png](https://nyc3.digitaloceanspaces.com/cdn.sitespeak.ai/uploads/help-center/images/BmahMfPWh8pDTxCOVHKEvjel6DGuZEYd7O4NGQ8L.png)

Your AI support agent is now added to your **Publii** website and your 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>
