Skip to main content

AI-Powered Editing in DronaHQ

Once your app is generated (via prompt or image upload), DronaHQ’s AI can help you enhance and evolve it — directly from within the builder. You can update component properties, attach actions, or even replace components using conversational prompts.

This allows for an intuitive editing experience, helping you move fast without dragging through menus or settings.


Update Component Properties via Prompt

You can update properties of individual components using prompts and @mentions.

For example:

  • @submitBtn change label to Submit and background color to blue
  • Enable pagination in @tablegrid
  • Update the label for @jsonForm to Customer Details Form and make it bold

How to Use

  1. Open the AI Chatbot from the left sidebar.
  2. Type your prompt using @componentName to refer to an existing control.
  3. The AI will parse and apply updates immediately to the component.
caution

Make sure your component names are unique and recognizable. When you type @, DronaHQ will auto-suggest existing component IDs in context.

This method is ideal for making quick UI tweaks — like updating button styles, label text, visibility rules, or sizing.

note

Currently, only a limited set of controls are supported for updating component properties. This list will expand in future updates.


Add Actions to Components via Prompt

With AI-powered editing in DronaHQ, you can quickly add actions to components by typing simple prompts. These actions can trigger specific behaviors, such as validating a screen, run a query on DB connector , or showing confirmation popup.

For example:

  • On @loginForm submit click, insert form details into @formFeedbackDB
  • On @submitBtn button click, validate screen-1 and navigate to screen-2
  • On @inputField focus out, validate screen-1 and show toast on validation failure

How to Use

  1. Open the AI Chatbot from the left sidebar.
  2. Type your prompt using @componentName and desired action.
  3. The AI will automatically create and attach the specified action to the component.

Adding actions this way eliminates the need to navigate through menus or open the Actionflow editor — just type your requirements, and the AI will handle the rest.

caution

Make sure the action you’re requesting is compatible with the component. Some complex actions might require manual adjustments in the Actionflow editor.

note

Currently, only a limited set of actions are supported for generating Actionflows via prompts.

This feature is great for rapidly implementing behaviors like form submissions, redirects, and API integrations directly from your interface.

Supported Actions

Action NameDescription
JS CodeExecutes custom JavaScript code
Navigate To ScreenMoves the user to another screen
ConfirmDisplays a confirmation dialog
ToastShows a toast notification
Validate ScreensTriggers screen-level validations
Connector QueryExecutes a backend connector or data query
Set Control ValueProgrammatically updates a control’s value

Replace Components via Prompt

If you need to swap one component for another in your app, you can do this quickly via conversational prompts. This saves you from the hassle of manually deleting and adding new components, helping you keep your workflow efficient.

For example:

  • Replace @dropdown with form for capturing customer information
  • Replace @inputfield with Button control with purple background and label as Submit
  • Replace @submitBtn with Table

How to Use

  1. Open the AI Chatbot from the left sidebar.
  2. Type your prompt with @componentName and specify the replacement component.
  3. The AI will replace the specified component with the new one, and automatically update any relevant properties where necessary.
note

Currently, only a limited set of controls are supported that can be used to replace control with. This list will expand in future updates.

Supported Controls

Control NameDescription
TablegridDisplays tabular data from a data source
ContainerGroups components for layout and styling
Image BoxDisplays images from URLs or uploads
ButtonTriggers actions on click
Detail ViewShows detailed data view per row/item
DashboardContainer for charts, KPIs, metrics
Tabbed ContainerDisplays grouped content in tab layout
JSON Schema Form ControlRenders forms based on JSON schema
Grouped MenuNavigation menu with grouped sections

Adding Data Queries to Components via AI

At the moment, the DronaHQ AI Chatbot does not support directly bind data to components using data queries via prompt. However, you can still leverage AI assistant to bind data to your components by using a different approach.

How to Use

  1. Click on the component (e.g., Table Grid) where you want to bind data.
  2. Click on the top Ai assist icon on the component.
  3. Enter your prompt, such as "fetch all data from the @[DB Connector Name]".

This will guide the AI to generate the appropriate data query for you, helping you bind your data source to the component.

note

Currently, this is a workaround since direct data query binding via AI prompts is not yet supported. However, with AI Assist, you can still accomplish the task by interacting with the component individually.