The Brave Image Search action is used to query images through the Brave search engine. It allows users to retrieve images matching their specified search terms and list or visualize them within the application. It is particularly preferred in media, content production, e-commerce, and knowledge-based applications.
Technical Specifications
Search Process (Search Panel): The Brave Image Search action retrieves images matching the given query. The results returned usually contain multiple images and can be used in list form (Many).
Parameters:
settings (Object – required): These are the Brave API settings for the search. Brave settings defined via the Configuration Manager should be selected here.
query (String – required): The word or phrase to search for. (e.g., “sunset beach”, “modern office design”)
count (Int32 – required): Specifies how many results to return. If 0 is provided by default, no results are returned, so a positive value must be entered.
Data Source Compatibility: All parameters can be entered as fixed values, or they can be obtained from dynamic sources such as Form Input, Current, Action Result, Method Input via the Symbol Picker.
Web & Mobile Support: The Brave Image Search action works in both web and mobile applications.
Brave Image Search Application Steps
1. Defining the Action in UI Design
Open your project on the Kuika platform.
Go to the UI Design module and select the screen where the visual search will be performed.
Add a Text Input and a Button (e.g., “Search”) element.
Click on the button, select the OnClick → Brave Search → Brave Image Search action from the + ADD ACTION menu.
2. Configuring Parameters
settings: Select the Brave API setting you created in Configuration Manager.
query: Connect the value the user types into the Text Input (Symbol Picker → Components → Text Input).
count: Specify the number of results to return (e.g., 10).
Use Case: Image Search Application
In a content creation application, the user types a keyword and the application lists relevant images.
Steps:
In UI Design:
A Text Input for “Search Term”.
A ‘Search’ button.
A GalleryView element where images will be listed.
Add the Brave Image Search action to the “Search” button's OnClick event.
Connect the Text Input to the query parameter.
Enter 10 in the count parameter.
Display the returned results in the GalleryView element.
Brave Image Search Advanced Customizations
Dynamic Number Determination: You can let the user choose how many results they want to see by providing a Number Input.
Filtering Results: The returned image URLs can be filtered according to specific formats (e.g., only .jpg).
Transferring Results to Other Actions: The obtained images can be saved to other screens or a database using the Set Value action.
Conditional Display: If no results are found, you can show the user a “No results found” message.
Technical Risks and Controls
query cannot be empty. This is a required parameter; if left empty, no results will be returned.
If count = 0, no results will be returned. A number greater than or equal to 1 must be entered.
Settings must be configured correctly. The action will not work without the Brave API setting in Configuration Manager.
Result Format: The returned results are in JSON format, so the URL fields must be linked correctly to view them.