Design with AI

API Hub for Design HaloAI is an AI-powered feature that allows you to create, edit, or enhance OpenAPI and AsyncAPI definitions. By describing an API in natural language, you can automatically generate or update a complete API definition, streamlining the design process and reducing the need for manual editing. The APIs generated with HaloAI aim to align with the standardization rules defined in your organization.

Create a new API

To generate a new API with the help of AI features, perform the following steps:

  1. Select the Generate with HaloAI tile visible on API Hub for Design landing page.

    Alternatively, click Create New, and select Generate with HaloAI.

    AHDesign_screenshot_HaloAI_02.png
  2. Provide the details of the API you want to create by selecting the relevant specification and (optionally) project in the Generate API with HaloAI dialog. To improve accuracy, reference a template to help the AI better understand the type of definition you want to create, and generate a more aligned output.

    AHDesign_screenshot_HaloAI_03.png
  3. Enter a prompt describing your API. Based on this natural language description, HaloAI will generate a definition that you can then further refine, if necessary. For best results, provide a detailed and precise prompt.

    (Optional) Alternatively, select the try an example option to have HaloAI provide an example prompt you can use as a reference.

Edit an API

With HaloAI, you can also update your existing APIs by describing the desired enhancements in natural language.

Perform the following steps to edit an API:

AHDesign_screenshot_HaloAI_07.png
  1. Open the API in the Code Editor and click the Open HaloAI icon on the toolbar.

  2. Navigate to the Edit and Improve API with AI input available in the HaloAI tab.

  3. Enter a prompt detailing the updates you want to make to your API definition.

After HaloAI applies the requested modifications to your API definition, API Hub for Design revalidates the API against your organization's standardization rules and display an updated list of errors. You can preview the changes implemented by HaloAI in Diff Mode.

Enable or disable HaloAI

As an organization administrator, you can choose whether to enable HaloAI features for your organization. If you disable the feature, all HaloAI components are hidden from the application interface.

To configure this setting, perform the following steps:

AHDesign_screenshot_HaloAI_04.png
  1. Go to Organization Settings.

  2. In the AI Features section, toggle Enable AI features on or off.

Publication date: