> ## 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 an AI chatbot to Playcode

> How to add your custom trained AI chatbot to your Playcode website.

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

**Playcode** is an AI-powered platform for building, hosting, and running websites, web apps, and mobile apps through conversational prompts.

**Website URL**: [PlayCode](https://playcode.io)

## Add your AI support agent to your **Playcode** 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.

![Copy code snippet](https://mintlify.s3.us-west-1.amazonaws.com/espressodev/images/installing-your-chatbot/copy-code.png)

### In Playcode

1. Log into your **Playcode** account and on your dashboard select the project you want to edit.

![0-Playcode-dashboard-select-project](https://mintcdn.com/espressodev/Zn3taIBrRoGVdWhv/images/installing-your-chatbot/Playcode/0-Playcode-dashboard-select-project.png?fit=max\&auto=format\&n=Zn3taIBrRoGVdWhv\&q=85\&s=734f4b668bd709ddb72b7b98d7528ab8)

**Note**: Adding custom code to your **Playcode** website page is done via the Playcode AI chat option.

2. Create your AI prompt and add it to the AI chat box. Click on **Send** to instruct the Playcode AI agent to add your custom code to your website. After the process completes, click on **Publish** to publish your changes to your live website page.

![1-Playcode-Add-custom-code-to-website](https://mintcdn.com/espressodev/Zn3taIBrRoGVdWhv/images/installing-your-chatbot/Playcode/1-Playcode-Add-custom-code-to-website.png?fit=max\&auto=format\&n=Zn3taIBrRoGVdWhv\&q=85\&s=8f1400c74266968c31f9d89073e9a044)

3. Your AI support agent button will now be displayed on your **Playcode** website page

![2-Playcode-Chatbot-button](https://mintcdn.com/espressodev/Zn3taIBrRoGVdWhv/images/installing-your-chatbot/Playcode/2-Playcode-Chatbot-button.png?fit=max\&auto=format\&n=Zn3taIBrRoGVdWhv\&q=85\&s=229296fbe571a58d2c3b61041b4df2cb)

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

![3-Playcode-Chatbot-dialogue](https://mintcdn.com/espressodev/Zn3taIBrRoGVdWhv/images/installing-your-chatbot/Playcode/3-Playcode-Chatbot-dialogue.png?fit=max\&auto=format\&n=Zn3taIBrRoGVdWhv\&q=85\&s=af470c86a1073360516b8233603f8d52)

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

***

> [card] [Ready to automate your customer service with AI?](https://sitespeak.ai/register?utm_source=docs\&utm_medium=cta\&utm_campaign=primary-cta)
>
> Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.


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