


Really low code! PromptAppGPT, the first natural language development framework based on ChatGPT: fully automatic compilation, operation, and interface generation
Recently, Zhang Changwang, a member of the CCF Theoretical Computer Science and Technology Committee, developed a rapid application development framework PromptAppGPT based on low-code prompts, which can realize rapid application development of natural language based on GPT.
PromptAppGPT includes functions such as: low-code prompt (Prompt) application development, GPT text generation, DALL-E image generation, online code editor compiler runner, automatic user interface generation, support for plug-in extensions, etc. .
Project website: https://www.php.cn/link/fac05328668f599efe18e76cdb284aab
Project code: https://github.com/mleoking/ PromptAppGPT
PromptAppGPT provides multi-task condition triggering, result verification and failure retry capabilities, which can turn manual generation tasks that originally require multiple steps into automatic completion.
At the same time, users no longer need to memorize and enter tedious prompt spells by themselves. They can easily complete the task by only entering the core necessary information of the task.
1. Project features
- Low code prompt (Prompt) rapid application development
- Support GPT3/4 executor For text generation
- Support Dalle executor for image generation
- Support the use of executor (plug-in) extensions
- Built-in online code editor, compiler and runner
- Automatically generate user interface
- Bilingual user interface in English and Chinese
2. Quick Start
2.1. Obtain the API key of OpenAI.
2.2. Visit the PromptAppGPT website and select network startup or download the program:
https://www.php.cn/link/fac05328668f599efe18e76cdb284aab
2.3. Set OpenAI key/OpenAI Api Proxy/OpenAI GPT model.
OpenAI Key: API key obtained from OpenAI.
OpenAI Api Proxy: You can access the proxy website of OpenAI API. For example, you can use https://api.openai-proxy.com in China. It is best to have a proxy website built by yourself.
OpenAI GPT model: gpt-4/gpt-3.5-turbo
2.4. Select and run an application.
2.5. Edit and compile the application.
3. APP Example
3.1. Travel Planning Master
APP code:
Automatically generated APP interface and running results:
Successfully generated a detailed Hainan travel plan
3.2. Intelligent image generator
APP code: (Contains two steps of using GPT to generate drawing Prompt and using Dalle to draw)
Using PromptAppGPT can make manual images that originally require two steps Build tasks become automated. At the same time, users do not need to enter cumbersome prompt spells themselves. Users only need to enter the drawing description they care about.
Automatically generated APP interface and running results:
App first uses GPT to generate the Paint Prompt image.
Then the App automatically calls Dalle to generate the picture based on the drawing prompt output by GPT.
The following figure shows the final image generation result image.
GPT helped expand the original simple description "a giant panda" into a lot of detailed English descriptions, such as the panda sitting on the bamboo leaves, in the forest, the panda has a round shape Ears and so on.
These expanded descriptions allow subsequent DALL-E drawings to contain more details and be more vivid.
3.3. Multi-language translation
APP code:
Automatically generated APP interface and operation results:
Successfully translated Chinese into English
4. Application development
PromptAppGPT application is developed based on YAML format for low-code development.
The following is a sample application code:
---author: Leoname: 旅游规划大师description: 旅游规划大师gptRound: singlefailedRetries: 2sysTask:userTask: - executor: gptprompt: |我想去 [$i{旅游目的地:@input}] 玩,请你以专业导游的身份,帮我做一份为期 [$i{旅游天数:@select#1/2/3/4/5/6/7}] 天的旅游攻略。另外,我希望整个流程不用太紧凑,我更偏向于安静的地方,可以简单的游玩逛逛。我的预算在 [$i{旅游预算(元):@select#1000/2000/3000/4000/5000/6000/7000}] 元左右。extra:
The author part is the name of the author; the name part is the name of the application; the description part is the description of the application; the gptRound part determines whether to use gpt for single Round (single) or multi-round (multiple) dialogue, for most applications, its value should be single; the failedRetries part sets the number of retries when it fails or the output is invalid.
The sysTask part is a collection of tasks separated by -, which sets the behavior of the executor (gpt). For many applications, this field can be left blank.
The userTask section contains user-defined tasks, separated by -. Each task must define the prompt and executor attributes, while the trigger, output and validator attributes are optional. The application cycles through the user's tasks in order, using the output of the previous task to match each task's trigger. The first task matched by a trigger is the currently running task.
Introduction to the author
Zhang Changwang, senior researcher, member of CCF Theoretical Computer Science and Technology Committee. Served as a member of the Senior Program Committee (SPC) of the 37th AAAI Artificial Intelligence Conference (AAAI-23).
He received his master's degree and PhD degree from University College London (UCL) in 2011 and 2015, respectively. From 2016 to 2017, he worked in LBS data mining at Alibaba, and from 2018 to 2022, he worked in advertising recommendation and user profiling at Tencent.
The current research direction is the research and application of information retrieval (search promotion), natural language processing, and big data mining.
Reference materials: https://github.com/mleoking/PromptAppGPT
The above is the detailed content of Really low code! PromptAppGPT, the first natural language development framework based on ChatGPT: fully automatic compilation, operation, and interface generation. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Deleted something important from your home screen and trying to get it back? You can put app icons back on the screen in a variety of ways. We have discussed all the methods you can follow and put the app icon back on the home screen. How to Undo Remove from Home Screen in iPhone As we mentioned before, there are several ways to restore this change on iPhone. Method 1 – Replace App Icon in App Library You can place an app icon on your home screen directly from the App Library. Step 1 – Swipe sideways to find all apps in the app library. Step 2 – Find the app icon you deleted earlier. Step 3 – Simply drag the app icon from the main library to the correct location on the home screen. This is the application diagram

The role and practical application of arrow symbols in PHP In PHP, the arrow symbol (->) is usually used to access the properties and methods of objects. Objects are one of the basic concepts of object-oriented programming (OOP) in PHP. In actual development, arrow symbols play an important role in operating objects. This article will introduce the role and practical application of arrow symbols, and provide specific code examples to help readers better understand. 1. The role of the arrow symbol to access the properties of an object. The arrow symbol can be used to access the properties of an object. When we instantiate a pair

The Linuxtee command is a very useful command line tool that can write output to a file or send output to another command without affecting existing output. In this article, we will explore in depth the various application scenarios of the Linuxtee command, from entry to proficiency. 1. Basic usage First, let’s take a look at the basic usage of the tee command. The syntax of tee command is as follows: tee[OPTION]...[FILE]...This command will read data from standard input and save the data to

The Go language is an open source programming language developed by Google and first released in 2007. It is designed to be a simple, easy-to-learn, efficient, and highly concurrency language, and is favored by more and more developers. This article will explore the advantages of Go language, introduce some application scenarios suitable for Go language, and give specific code examples. Advantages: Strong concurrency: Go language has built-in support for lightweight threads-goroutine, which can easily implement concurrent programming. Goroutin can be started by using the go keyword

The wide application of Linux in the field of cloud computing With the continuous development and popularization of cloud computing technology, Linux, as an open source operating system, plays an important role in the field of cloud computing. Due to its stability, security and flexibility, Linux systems are widely used in various cloud computing platforms and services, providing a solid foundation for the development of cloud computing technology. This article will introduce the wide range of applications of Linux in the field of cloud computing and give specific code examples. 1. Application virtualization technology of Linux in cloud computing platform Virtualization technology

MySQL timestamp is a very important data type, which can store date, time or date plus time. In the actual development process, rational use of timestamps can improve the efficiency of database operations and facilitate time-related queries and calculations. This article will discuss the functions, features, and application scenarios of MySQL timestamps, and explain them with specific code examples. 1. Functions and characteristics of MySQL timestamps There are two types of timestamps in MySQL, one is TIMESTAMP

What is CryptoGPT? Why is 3EX’s CryptoGPT said to be a new entrance to the currency circle? According to news on July 5, 3EXAI trading platform officially launched CryptoGPT, an innovative project based on AI technology and big data, aiming to provide comprehensive and intelligent information query and AI investment advice to global crypto investors. CryptoGPT has included the top 200 coins in CoinMarketCap and hundreds of high-quality project party information, and plans to continue to expand. Through CryptoGPT, users can obtain detailed transaction consulting reports and AI investment advice for free, realizing a full-stack closed loop from information consulting services to intelligent strategy creation and automatic execution of transactions. Currently, the service is free. Needed

1. First we click on the little white dot. 2. Click the device. 3. Click More. 4. Click Application Switcher. 5. Just close the application background.
