Skip to main content
Version: 25.6

Create with AI

Microservices design using Artificial Intelligence (AI) allows for automatic generation from requests expressed in natural language. This functionality reduces the need for advanced technical knowledge and speeds up the development process by eliminating the need for manual programming.

The microservice code is generated according to the request made, but the creation process is completed in the Designer section, from where the microservice can be enabled for execution through the Workspaces module or from the end user's device.

ai_designer

Create new microservice

The steps to create a microservice through AI are as follows:

  1. Access Portal -> Microservices -> Create with AI.

  2. In the central panel, write the request in natural language with a maximum of 400 characters. At the bottom, Try something like this offers examples that can help create a request.

    try_this_prompts

  3. In the dropdown, choose the scope of execution: System Microservice or Session Microservice.

    choose-system-session-ms

  4. Click the arrow in the orange box to continue.

  5. If similar microservices exist, they will be offered as available alternatives. The user can click on each one of them to analyze their use in relation to the desired goal. By doing so, they will be redirected to the Marketplace section.

    If, after reviewing the alternatives, the user decides they need to create a new microservice, they should click on Create with AI.

    Agent

  6. A few seconds later, the AI will design the microservice.

    analog

    The Copy Code button allows you to copy the generated code to the clipboard, facilitating its use in testing if required.

    new-licence

    info

    This feature only generates microservices in PowerShell.

  7. Review the microservice code.

    expand-code

  8. The Improve the microservice box, located at the bottom right of the screen, allows the user to add information to optimize the microservice. With each improvement, a new version of the code is generated, which can be seen in the Created Microservices column at the top.

  9. Click on Create microservice.

    info

    If you click Create microservice again on an already existing microservice request, you will be asked for confirmation to verify if you want to create a new one. If so, another microservice will be generated with a number at the end to differentiate it from the original. In no case will the code or configuration of an already created microservice be overwritten.

    used_project

  10. Next, the user will be directed to the Designer section to edit the microservice configuration, if desired.

ia-ms-edit

  1. Click on Save.

  2. The microservice will appear in the list of the Designer and Marketplace sections.

info

By default, AI-generated microservices are created without any category and have the Flexxible Microservices License. This configuration can be modified in Designer.

warning

AI can also make mistakes. The execution of microservices designed with this method is the responsibility of the user.

My requests

The My requests column, located on the left of the screen, shows the microservice requests the user has made to the AI. Each user can only see theirs; they are not shared with the rest of the organization.

my_request

This functionality allows the request history to be visible at all times to the user who created it, so they can always return to them. It also allows for feedback on the result; for this, the user can click on the thumb-shaped buttons located at the top right of the screen.

feedback_ms

Delete a request

  1. Go to the column My Requests, located on the left side of the screen.

  2. Click on a request from the list to enter the code details.

  3. Click on the Delete icon located at the top right of the screen.

  4. Read the warning message.

    delete_project

  5. Click Cancel or Delete, as appropriate.

info

Deleting a request does not imply deleting the microservice created from it.

Created Microservices

On the far right of the screen, the Created Microservices column lists all the microservices created from a request. This panel allows identifying whether a request has resulted in one or more microservices, as well as accessing each of them directly for review.

  • When the AI designs the first version of a microservice, but it has not been created through the Create microservice button, the Created Microservices column shows a message like the one in the following image:

    ms_no_created

The orange arrow located in the box of each version allows loading the previous version's code.

  • When the AI designs the first version and you click Create microservice, the Created Microservices column shows the name of the microservice. Clicking on it will take you to its detail view in the Designer section.

    one_ms_created

  • When the AI designs and creates more than one version of a microservice, the Created Microservices column shows the word Multiple.

    multiple_ms_created

    Clicking on Multiple opens a modal window with a list of the microservices created from that request. Selecting one of them accesses its detail view in the Designer section.

    ms_related

Enable a Microservice

The process to enable or disable an AI-generated microservice is the same as that used for manually creating microservices.

Steps to enable a microservice from Designer:

  1. Access Portal -> Microservices -> Designer.

  2. Find the microservice in the list and click on it.

  3. Click the Enable button located at the top right of the screen.

    enabled-ms

  4. The microservice will appear marked with a green dot (indicating it is enabled) in the Marketplace section.

    enabled-marketplace

Steps to enable a Microservice from Marketplace:

  1. Access Portal -> Microservices -> Marketplace.
  2. Find the microservice in the list and click on it.
  3. Click the Enable button located at the top right of the screen.
  4. The microservice will appear marked with a green dot (indicating it is enabled).
info

Enabled microservices execute on demand from the Workspaces module: section Workspaces (System context) and section Sessions (Session context), according to defined configuration.

Enable a microservice for the end user

The process of enabling an AI-created microservice for execution by the end user is the same as for microservices designed manually.

Please consult the guide Enable Microservices for End Users.

info

Flexxible recommends checking the Privacy and Recipients tabs in the Designer section before enabling a microservice to ensure they have the desired configuration.