Skip to main content

BabelGPT

Overview

BabelGPT is the integrated AI function within the Babel platform. It is designed to assist you in accomplishing various tasks, acting as a collaborative colleague. When interacting with BabelGPT, providing detailed descriptions of your requirements typically yields better responses. However, due to the limitations of Language Models (LLMs), BabelGPT may not be able to handle complex applications, such as those with more than 20 elements. As a result, if your application is overly complicated, you may encounter unexpected issues when using BabelGPT.

Build App from Scratch

BabelGPT can build apps from scratch by given application requirements.

images of BabelGPT creating app

You should avoid one-line requirment such as "build a todo app". Instead, you should describe your app in detail, for example:

I need a webpage that displays summarized top 5 live breaking news from newsapi.org. Use OpenAI model gpt-3.5-turbo-16k to summarize each of the news. The newsapi.org API Key is "". The OpenAI API Key is "".

Modify Existing App

BabelGPT can help you modify existing applications, such as adding a feature. This feature is not activated during Beta stage.

images of BabelGPT modify app

Although BabelGPT has the overview of your application. It generally performs better if you give instructs of how to modify the app, for example:

Add an API to return ethereum history prices and modify the index.html and render.js to add the ethereum price line to the chart. Remember to change the chart name as it shows two charts now.

Modify Elements

Elements are the basic units of your Babel applications. Most of the time, you are working on the elements. BabelGPT can help you accomplish all kinds of tasks within an element such as rewrite whole element, rewrite selected code, continue writing code, explain code etc.

images of BabelGPT element tool bar

BabelGPT provides eight commands for you:

  1. Add Comments
  2. Add Types
  3. Analyze Code
  4. Complete Code
  5. Fix Compiler Error
  6. Make Code Readable
  7. Make Code Robust
  8. Custom Requirement You should use fixed commands(command 1-7) if possible. If you choose "Custom Requirement", you should give clear instructions.

Chat with BabelGPT

Besides functions integrated, you can also chat with BabelGPT, ask anything about programming, Babel or your application. For example:

  1. How do I get the last item of an array?

    images of ask BabelGPT "How do I get the last item of an array"

  2. What code should I return if the request is not authorized?

    images of ask BabelGPT "What code should I return if the request is not authorized"

  3. What should I do to handle the storage of large files?

    images of ask BabelGPT "What should I do to handle the storage of large files"

  4. How can I make my application architecture look more neat?

    images of ask BabelGPT "How can I make my application architecture look more neat"

As you can see, BabelGPT has the conversation context by default. You don't need to mention you are using Node.js or you are building an API or describe your application architecture.