> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/ai-agents/install-your-ai-agent/website-and-mobile-application.md).

# Website & Mobile Application

You can put your AI agent on your website, inside a mobile app, on a page BotPenguin hosts for you, or in any page that accepts an iFrame. Each option has its own section below. Pick the one you need. The agent then answers visitors around the clock and sends every chat to your BotPenguin Inbox.

### Prerequisites

* An AI agent that is set up. See Create your first AI Agent.
* For a website, a mobile app or an iFrame: access to the code of the place where you want the agent. If you are not a developer, you can send the code to one, or ask the support team.&#x20;
* The address of your website, or the bundle or package ID of your app, to verify the install.

### Key definitions

| Term                 | Meaning                                                                     |
| -------------------- | --------------------------------------------------------------------------- |
| Installation code    | A short piece of code that adds the agent to your website, app or page.     |
| Bundle or package ID | The unique name of your mobile app, for example `com.example.app`.          |
| Landing page         | A standalone page hosted by BotPenguin where visitors chat with your agent. |
| iFrame               | A way to show one web page inside another.                                  |
| Verify               | A check that the agent is installed where you said it is.                   |

### Open Website & Mobile App

Click **Website & Mobile App** under Channels in the AI Agent sidebar. The page lists your connected channels. Click **Connect another channel** to add a new one. In the guided setup, choose where to install and follow the section below.

![Click Connect another channel on Website & Mobile App](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/84VDa2AaUJI9MOOqh70e/images/installing-on-website-and-mobile-application-intro-step-1.png)

### Install on a website

1. Choose **Website** on the Install on step, then click Continue.

![Choose Website on the Install on step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/E9FN1gJd4ett6kSGl3HV/images/installing-on-website-and-mobile-application-website-step-1.png)

2. Choose the type of website you have: It's custom built, WordPress, Shopify, Wix, Squarespace or None / Not sure. This example uses **WordPress**. Click Continue.

![Choose your website type](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/kK7uvqxg7EFOeSSmM5d6/images/installing-on-website-and-mobile-application-website-step-2.png)

3. Under Get Agent Installation Code, click **Copy**. Paste the code into your website's HTML, just before the closing `</body>` tag. On WordPress, Shopify, Wix and Squarespace, use the place where the platform lets you add code to every page, such as the header or footer. Publish the change.

![Copy the installation code](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/wPkm3WTkH5KkOhiF9k2Z/images/installing-on-website-and-mobile-application-website-step-3.png)

4. Under Enter your website URL, type the address of the site. Click **Verify**. When the check passes, your agent is live. Click Finish.

![Enter your website address and click Verify](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/jgkjKrYqSSTt5QbbSAWy/images/installing-on-website-and-mobile-application-website-step-4.png)

Not a developer? Under Share Installation Code you can send the code to a developer. Under Ask Support Team to install you can raise a request for the BotPenguin team.

### Install in a mobile app

1. Choose **Mobile app** on the Install on step, then click Continue.

![Choose Mobile app on the Install on step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/vXz2Upkdyw3UnUTBYk95/images/installing-on-website-and-mobile-application-mobile-step-1.png)

2. Choose the type of app: iOS, Android, React Native or Other app. This example uses **iOS**. Click Continue.

![Choose your app type](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/2Hb9D53UBQONFLfxcJHf/images/installing-on-website-and-mobile-application-mobile-step-2.png)

3. Under Get Agent Installation Code, click **Copy** and add the code to your app. Under Enter your app's bundle or package ID, type the ID. Click **Verify**, then Finish.

![Copy the code, enter your app ID and click Verify](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/Ntc4gqWy96mM6sMgrStV/images/installing-on-website-and-mobile-application-mobile-step-3.png)

### Share a landing page

1. Choose **Landing page** on the Install on step, then click Continue.

![Choose Landing page on the Install on step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/ycy9HbICKpblRjpHm535/images/installing-on-website-and-mobile-application-landing-step-1.png)

2. A unique link to your landing page appears. Click **Preview** to see the page. Click **Copy URL** and share the link wherever visitors should chat with your agent. Click Finish.

![Preview the landing page and copy its URL](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/uWGas3MnNqxd8SLhR4Nr/images/installing-on-website-and-mobile-application-landing-step-2.png)

### Embed with an iFrame

1. Choose **iFrame** on the Install on step, then click Continue.

![Choose iFrame on the Install on step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/tWeOjbNafH4RJBpWKhvG/images/installing-on-website-and-mobile-application-iframe-step-1.png)

2. Under Get Agent Installation Code, click **Copy**. Paste the code into the HTML of the page where the agent should appear. Under Enter the URL of the page where you embedded it, type the address and click **Verify**. Click Finish.

![Copy the iFrame code, enter the page address and click Verify](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/fckyaMUNYkl5js7vLst5/images/installing-on-website-and-mobile-application-iframe-step-2.png)

### Common errors

<details>

<summary>Verify fails</summary>

Check that the code is pasted and published, and that it is not blocked by a speed or caching plugin. Check that the address you typed is the page where the code is. Then click Verify again.

</details>

<details>

<summary>Where should I paste the code?</summary>

Paste it just before the closing \`\` tag. You can also use the global header or footer area of your platform.

</details>

<details>

<summary>Do I need to know how to code?</summary>

Basic access to your website's backend is enough. Most platforms have a place to add code. You can also send the code to a developer or ask the support team.

</details>

<details>

<summary>The agent does not appear on my site</summary>

Clear your browser cache and reload the page. Check that the agent is switched on. Check that you did not paste the code on a page that is not live.

</details>

<details>

<summary>Can I use more than one option for the same agent?</summary>

Yes. Connect another channel and add the next option. Each one shows in Connected channels.

</details>

<details>

<summary>My landing page link does not open</summary>

Click Preview in the setup to check the page. Copy the URL again. Check that your agent is switched on.

</details>

### Support

Still not working? Write to us at <support@botpenguin.com>. We will reach out to you within 24 hours.
