Hostinger AI Builder: How to create an image gallery in agentic mode

Create a dynamic photo gallery managed from the Data tab in Hostinger AI Builder agentic mode.

Updated 2 weeks ago

Create a dynamic image gallery for your Hostinger AI Builder agentic mode website, managed directly from the Data tab. This setup works well for portfolios, product showcases, or event photos, since your website updates automatically whenever you add or replace an image in the Data tab.

In the Hostinger AI Builder chat, use a specific prompt to generate the gallery structure and the backend collection.

  1. Open the Hostinger AI Builder chat interface.
  2. Enter a prompt that defines both the design and the data source, such as: “Create a photo gallery section on my homepage. Store the gallery images in a data collection called “Gallery”. Each entry should have an image field and an optional caption field. Display the images in a grid layout. The gallery should automatically show all images added to the Gallery collection”
Be specific about your preferred layout, such as grid or masonry, and the number of columns to get the best result.

Step 2 – Access the Data tab

Once Hostinger AI Builder builds your gallery, you must access the data to manage the content.

  1. Open your project in Hostinger AI Builder.
  2. Click the Data toggle at the top of the preview screen.
  3. Locate the Gallery collection in the left panel.
    Hostinger Horizons data tab with Test data selected and gallery collection highlighted
If the Data toggle is unavailable, re-send the prompt from Step 1 to ensure Hostinger AI Builder creates the collection correctly.

You can now populate your gallery without editing the website design.

  1. Select the Gallery collection and click Add record.
    Data panel showing gallery collection with highlighted New Record button and sidebar item

  2. Upload your file in the image field.
    Gallery form with Upload new file button highlighted

  3. Add a caption in the caption field if desired.
  4. Click Create.
    Create button highlighted in a new gallery record form

  5. Repeat these steps for each photo you wish to display.

Manage your existing records to keep your gallery up to date.

  1. Replace an image: Click the specific record, update the image field, and save the changes.
    Gallery record edit form with Remove file button highlighted in the image field

  2. Delete an image: Select the image and click “Delete selected”.
    Selected gallery record checkbox and Delete selected button in data table

Ensure you publish the changes if you want to see the images on the live website. Once done, your image gallery will be fully functional and easy to update.