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
- Open the AI Chatbot from the left sidebar.
- Type your prompt using
@componentName
to refer to an existing control. - The AI will parse and apply updates immediately to the component.
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.
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
- Open the AI Chatbot from the left sidebar.
- Type your prompt using
@componentName
and desired action. - 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.
Make sure the action you’re requesting is compatible with the component. Some complex actions might require manual adjustments in the Actionflow editor.
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 Name | Description |
---|---|
JS Code | Executes custom JavaScript code |
Navigate To Screen | Moves the user to another screen |
Confirm | Displays a confirmation dialog |
Toast | Shows a toast notification |
Validate Screens | Triggers screen-level validations |
Connector Query | Executes a backend connector or data query |
Set Control Value | Programmatically 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
- Open the AI Chatbot from the left sidebar.
- Type your prompt with
@componentName
and specify the replacement component. - The AI will replace the specified component with the new one, and automatically update any relevant properties where necessary.
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 Name | Description |
---|---|
Tablegrid | Displays tabular data from a data source |
Container | Groups components for layout and styling |
Image Box | Displays images from URLs or uploads |
Button | Triggers actions on click |
Detail View | Shows detailed data view per row/item |
Dashboard | Container for charts, KPIs, metrics |
Tabbed Container | Displays grouped content in tab layout |
JSON Schema Form Control | Renders forms based on JSON schema |
Grouped Menu | Navigation 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
- Click on the component (e.g., Table Grid) where you want to bind data.
- Click on the top Ai assist icon on the component.
- 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.
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.