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 GPT-4o technology.
Important: Before You Can Test
To test this AI technology, obtaining an API key from the OpenAI portal is required. So, open this 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.
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 using Appery.io:
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!
![Untitled.png 2192](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).
For more details, you can check our Copyright, Trademark, and Content Ownership section here.
Creating App from Template
- From the Apps tab, click Create new app.
- 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 [email protected] notifying you that the project bundle import is completed)). If you like, you can now rename your project under its General tab or do it later.
After the app is renamed, you can open it.
The first thing you can see is our App Builder Educational Video Guide page with the Project View section on the left where all the predefined project data can be found.
![2023-02-14_15-55-51.jpg](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; you will be redirected to the tab with the app preview.
![2023-02-14_15-57-27.jpg 484](https://files.readme.io/04b5199-2023-02-14_15-57-27.jpg)
App Description
Once loaded, the application GPT-4o Assistant page preview 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 is required. So, open this 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.
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.
![Untitled.png 599](https://files.readme.io/e5947a5-2024-05-14_19-44-52.png)
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.
When your final app version is ready, you might like to proceed with exporting your app for
Android or 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 type is selected under the iOS binary tab, building the release app version will be performed together with publishing it to the App Store.
![2023-02-16_17-24-28.jpg](https://files.readme.io/1bea21b-2024-05-14_19-48-30.png)
Please check this step-by-step Appery.io YouTube video to learn how you can develop an iOS mobile app with 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:
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 document in case you need help with exporting your application for iOS.
Here, 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 (.aab
) on Google Play.
Please read more here.
You can also check this Appery.io Community video that shows how to create Android and iOS certificates:
Managing Build Error The certificate file is not set
If this is your first app created with 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 document about certificate management that explains how to add the needed certificate to your project:
- After the needed certificates have been added to your app all you need to do is to wait for the bundle to be created.
- Now, you need to select the format you prefer (you are also free to build both if you need) to start building your project:
![2023-02-16_17-22-51.jpg](https://files.readme.io/1d6f960-2024-05-14_19-50-24.png)
- 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):
![2023-02-16_17-34-13.jpg](https://files.readme.io/3e07686-2024-05-14_20-49-01.png)
- 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 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:
![2023-02-16_17-27-55.jpg](https://files.readme.io/b532cf8-2024-05-14_19-52-47.png)
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 as a widget:
<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 iframesrc
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.
Updated about 1 month ago