How to use Back4app Agent

AI dev-environment

4min

This guide provides general understanding on how to use the AI Agent which is connected to a cloud-based developer machine, the developer environment . This isn't just a cloude server; it's a functional environment where the Agent can write, test, run code, and even interact with tools like Git.

With this structure, you can conceptualize, create, and deploy software, all through a conversational interface. Beyond just coding, the possibilities extend to software management, version control, and deployment, making it a versatile tool for both developers and those new to the software world.

Document image


What is the Development Environment?

The development environment provided by Back4App is a cloud space where the Agent can write, test, and run code. Think of it as a mini-computer running in the cloud, where AI can execute commands, create files, and more.

  • Base System: The environment runs on Alpine Linux, a lightweight Linux distribution.
  • Installed Packages: By default, it comes with essential packages like apk (Alpine's package manager), busybox, and more.
  • Ability to Install More: You can install additional software just asking the Agent. For example, during a chat, you can install node , python ,git and curl.

How Does the Agent Interact with the Development Environment?

The Agent can break a big task into small ones and execute the commands into the development environment reading each response of what is happening on the environment and making sure that all the steps will be concluded. This is the autonomous concept. It allows it to perform tasks like create web projects, running scripts, read from a git repo and send a PR and more. In the chat below, ChatGPT created a Node.js application, initialized a Git repository, and more, all within the development environment.



In the sample chat below, using ChatGPT Plugin interface, I've just created a simple nodeJS app, pushed it to github and then deployed on Back4app containers.



Document image

Document image

Document image