---
updatedAt: 2025-07-15T08:35:28.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# GPT-4o App Template

# Introduction

This document describes our customizable ***GPT-4o*** app template that is designed for creating a bot app based on [OpenAI](https://openai.com/) ***[GPT-4o](https://openai.com/index/hello-gpt-4o/)*** technology.

> 🚧 Important: Before You Can Test
>
> To test this AI technology, obtaining an ***API key*** from the [OpenAI portal](https://openai.com/) is required. So, open [this](https://platform.openai.com/account/api-keys) link (or go to the **API Access** section of your OpenAI account dashboard) and either generate a new API key or manage your existing **API keys**.

<br />

> 👍 Video: How to create a new app with GPT-4o support or add this support to your existing mobile or web app.
>
> If interested, you can also check out this video to learn how to create mobile and web apps with **[GPT-4o](https://openai.com/index/hello-gpt-4o/)** using [Appery.io](https://appery.io/):

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/jb3_sArQ2Kc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

# Using *GPT-4o* App Template

No special knowledge or experience is required to use our ***GPT-4o*** app template — just follow the simple steps below to install the app and enjoy low-code development with [Appery.io](https://appery.io/)!

<Image align="center" className="border" width="30% " border={true} src="https://files.readme.io/9ee9478-Screen_Layout.png" />

> 📘 Important!
>
> Please rest assured that you are the creator and you are the only owner of this application (actually, like any other app created with [Appery.io](https://appery.io)).\
> For more details, you can check our ***Copyright, Trademark, and Content Ownership*** section [here](https://appery.io/terms-of-use).

## Creating App from Template

1. From the **[Apps](https://docs.appery.io/docs/general-platform-overview#apps-tab-managing-projects)** tab, click **Create new app**.
2. Select **GPT-4o**, enter the name for your project (for example, ***GTP-4o***), and click the **Create** button.

In a few moments, refresh the browser tab to see that the app will be created with the autogenerated name extension (you will also get an email from <mail@appery.io> notifying you that the project bundle import is completed)). If you like, you can now rename your project under its **[General](https://docs.appery.io/docs/general-platform-overview#general-project-tab)** tab or do [it](#renaming-app) later.

After the app is renamed, you can open it.\
The first thing you can see is our **[App Builder](https://docs.appery.io/docs/apperyio-visual-builder)** **[Educational Video Guide](https://docs.appery.io/docs/general-getting-started-ionic-5#apperyio-educational-video-guide)** page with the **[Project View](https://docs.appery.io/docs/apperyio-visual-builder#project-view)** section on the left where all the predefined project data can be found.

<Image align="center" className="border" border={true} src="https://files.readme.io/127a54d-2024-05-14_19-31-32.png" />

> 🚧 Note!
>
> If you are launching your project for the first time, please allow some time for the app preview to load.

Actually, the application is ready to be used and does not require any additional effort on your part so let's test the app at work and see what it's all about.\
Click the **TEST** button in the app **[Toolbar](https://docs.appery.io/docs/apperyio-visual-builder#toolbar)**; you will be redirected to the tab with the app preview.

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/04b5199-2023-02-14_15-57-27.jpg" />

## App Description

Once loaded, the application **GPT-4o Assistant** [page preview](https://docs.appery.io/docs/9-testing-your-app#app-preview-page) will launch.\
What is really good - as an app user, you require no special training to use the app and can right away start testing the service.

> 🚧 Important!
>
> To test this AI technology, obtaining an ***API key*** from the [OpenAI portal](https://openai.com/) is required. So, open [this](https://platform.openai.com/account/api-keys) link (or go to the **API Access** section of your OpenAI account dashboard) and either generate a new API key or manage your existing **API keys**.

<Image align="center" className="border" border={true} src="https://files.readme.io/6e7d7c7-image_2023_02_09T13_25_03_936Z_1.png" />

When done, copy and paste it into the ***API Key*** field and you are ready to test the template. Click the **TEST** button to begin.

<Image align="center" className="border" width="smart" border={true} src="https://files.readme.io/e5947a5-2024-05-14_19-44-52.png" />

<br />

> 👍 GPT-4o Screen Layout
>
> If you want the add the GPT-4o support to your existing mobile or web app , you can use the predefined [GPT-4o screen layout](https://docs.appery.io/docs/apperyio-screen-layouts#gpt-4o).

When your final app version is ready, you might like to proceed with exporting your app for\
[Android](https://docs.appery.io/docs/appexport-android#binary-app) or [iOS](https://docs.appery.io/docs/appexport-ios) with further installation it on a device.

> 👍 Selecting Build Type
>
> Before you can proceed with exporting your app, go to **Project view > Project > App settings > Android binary/iOS binary** to select the **Release** build type (**Debug** is the default type for both and can be used for testing purposes only):
>
> If the **[Release and Publish](https://docs.appery.io/docs/appexport-ios#release-and-publish-building)** type is selected under the **iOS binary** tab, building the release app version will be performed together with publishing it to the *[App Store](https://www.apple.com/app-store/)*.

<Image align="center" className="border" border={true} src="https://files.readme.io/1bea21b-2024-05-14_19-48-30.png" />

> 📘
>
> Please check this step-by-step [Appery.io YouTube](https://www.youtube.com/@apperyio) video to learn how you can develop an iOS mobile app with [Appery.io](https://appery.io) right in the browser using a Windows desktop.\
> Also, you will learn how to install it on an iPhone for testing and then publish it to the *[App Store](https://www.apple.com/app-store/)*:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/RsdhQes0A5Y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

> 📘 Important Note!
>
> Please, note that before you can export the app, the app certificates must be imported or automatically generated (in the case of Android).\
> You can check [this](https://docs.appery.io/docs/appexport-ios) document in case you need help with exporting your application for iOS.\
> [Here](https://docs.appery.io/docs/appexport-android#android-certificate-file), you will find information on generating certificates for Android.\
> Note as well that starting from *August 2021*, new apps are required to publish with the [Android App Bundle](https://developer.android.com/guide/app-bundle) (`.aab`) on Google Play.\
> Please read more [here](https://developer.android.com/guide/app-bundle).\
> You can also check this Appery.io Community video that shows how to create Android and iOS certificates:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/aMS4T0snEeA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

> 🚧 Managing Build Error ***The certificate file is not set***
>
> If this is your first app created with [Appery.io](https://appery.io)  you will most likely get the error signifying about missing certificates that will prevent you from successfully finishing the build process.\
> The error reads similarly for both binary types and indicates that you should set the corresponding certificate before starting a new build.\
> If this notification is what you see after starting your build, please check out the [this](https://docs.appery.io/docs/appexport-certificate-management) document about certificate management that explains how to add the needed certificate to your project:

1. After the needed certificates have been added to your app all you need to do is to wait for the bundle to be created.
2. Now, you need to select the format you prefer (you are also free to build both if you need) to start building your project:

<Image align="center" className="border" border={true} src="https://files.readme.io/1d6f960-2024-05-14_19-50-24.png" />

3. Once your project is generated, you will see the QR-Code that you can use to upload the application to your device (or save the file for further use):

<Image align="center" className="border" border={true} src="https://files.readme.io/3e07686-2024-05-14_20-49-01.png" />

4. Then, install the app on your device and enjoy the result of your customization efforts.

# Publishing App

Any app that you build in Appery.io can be [published](https://docs.appery.io/docs/publish) as a mobile web app. This means the app will be hosted on a server and can be accessed from any browser on a mobile device:

<Image align="center" className="border" border={true} src="https://files.readme.io/b532cf8-2024-05-14_19-52-47.png" />

<br />

Also, you are free to add the published app to any site of your choice as a widget.

Below is the sample code you can use for embedding the app [published on Appery.io](https://docs.appery.io/docs/publish#publishing-on-apperyio) as a widget:

```html
<script>
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src = 'https://app.appery.io/aio_chat_widget.js';
  script.onload = function() {
    window.aioChatWidget.init({
      frameUrl: "https://gpt4o.app.appery.io/",
      // buttonColor: "blue",
      // buttonTextColor: "red",
      // buttonImgUrl: "https://appery.io/app/resources/img/mobileframe/favicon-192x192.png",
      preload: true,
      // autoOpen: 5000,
      // position: "top_right",
    });
  }
  document.head.appendChild(script);
</script>
```

where:

* `frameUrl`: '', // the iframe url;
* `buttonColor`: '#4DC95B', // css color. The button color for the chat button (if set to default, the button image is used) and close button;
* `buttonTextColor`: '#FFFFFF', // css color. The button text color for the chat button (if set to default, the button image is used) and close button;
* `buttonImgUrl`: '', // custom image for the button, if not set, then the default `.svg` image is used;
* `preload`: false, // if set to true - add iframe `src` on init (load *frameUrl* immediately), otherwise, the iframe will be loaded only after opening;
* `autoOpen`: 0, // ms. If 0 - do not open;
* `position`: "bottom\_right" // bottom\_right, bottom\_left, top\_right, top\_left.