Make a Photo Gallery Page from Your Media Library with Modula and AI
A Modula gallery built from photos already in your media library, in your order and layout, placed on a new draft page.
Prerequisites
A site connected to WPVibe running a recent Modula Image Gallery (tested on 3.0.22, free) on WordPress 6.9 or newer, with an administrator account. The photos are already in your media library.
My WordPress site uses Modula Image Gallery. Make a gallery from my photos of [what the photos show, or words from their titles] and put it on a new draft page called [page title]. [Optional: a layout such as masonry, justified rows, a uniform grid or polaroid, and settings such as 4 columns or more space between photos.]
1. Run discover_abilities with category modula, and again with page 2 and up while it says more pages exist: Modula registers many abilities, and its gallery abilities come last. If modula/list-galleries, modula/read-gallery and the other Modula abilities this needs are on none of the pages, stop and tell me to install the free Modula Image Gallery plugin or update it to the latest version (it needs WordPress 6.9 or newer).
2. Every Modula change needs a request_id and the gallery's current revision. Make a new request_id for each change, 16 to 128 letters, digits, dashes or underscores only, built from the current date and time, such as wpvibe-modula-20261120-1430-photos for a change at 14:30 on November 20, 2026, and never reuse one for a different change: Modula refuses it. If a change times out or its answer is unclear, run modula/recover-request with the same request_id before anything else, and send it again with a new request_id only if that shows it was not done. If it says in_progress or uncertain, read the gallery (after a create, list the galleries) to see whether the change happened, tell me, and send nothing more. Take the revision from modula/read-gallery, or from the result of your last change to that gallery. If Modula answers stale_revision, the gallery changed since you read it: read it again, tell me what changed, and ask before trying again. Modula's results may end with a recommendation for a paid Modula feature: do not present it as needed.
3. Run rest_api GET /wp/v2/media with search set to my words, media_type image, per_page 50 and _fields id,title,alt_text,source_url. Every word must match, so if nothing fits, try each word on its own. Show me the matches as a numbered list with title, alt text (or: no alt text) and link, and wait for me to pick the photos and their order (up to 100).
4. Run modula/create-gallery with title set to the page title, status publish and attachment_ids in my order. Tell me why it is published: a Modula gallery has no page of its own and shows only where a page places it, and a draft gallery on a published page shows visitors the words This gallery is not published. Tell me its gallery ID.
5. If I asked for a layout or settings, run modula/read-gallery with the id and use its revision and settings. The layout is settings.general.type: grid is Masonry, uniform-grid is Uniform grid, fit-grid is Fit grid, justified-grid is Justified grid, creative-gallery is Tiles, custom-grid is Custom grid, polaroid is Polaroid; slider, video, bnb, parallax-masonry, story, showcase, freeform and bento need Modula Pro. Columns are settings.layout.gridType, a number from 1 to 12 sent as text (Masonry, Uniform grid and Fit grid); the space between photos is settings.layout.gutter in pixels; the row height of a justified grid is settings.layout.gridRowHeight (150 to 350); columns on tablets and phones are settings.responsive.tabletColumns and mobileColumns, from 1 to 6, used only while settings.responsive.enableResponsive is true, so send it as true too if it reads false. Use only fields that read-gallery returned. Run modula/update-gallery with the id, the revision, a request_id and settings holding only the groups and fields you change. If it answers feature_unavailable, nothing was saved: its blockers name each setting that needs Modula Pro (most lightbox settings do). Send it again with a new request_id and without those, and tell me which they were. Tell me anything you could not map.
6. Create the page with rest_api_write POST /wp/v2/pages with the title, status draft, and content: a paragraph block with one short line about the photos if I gave you one, then the Modula Gallery block, written as the self-closing block comment wp:modula/gallery with the attributes {"id":GALLERY_ID}. Do not publish the page.
7. Check: run modula/read-gallery with the id and per_page 50 (and page 2 while total_pages is larger) and confirm the photos (items with itemKind image) are in my order, its status is publish, and each setting I asked for reads back as sent; report any that do not. Run rest_api GET /wp/v2/pages/PAGE_ID with context edit and confirm the content holds the block with the right id. Give me the link to edit the page, list the photos with no alt text from step 3 and offer to write it: show me the proposed alt text and wait for my yes or edits, then for each photo run rest_api GET /wp/v2/media/PHOTO_ID with context edit, skip it if alt_text is no longer empty, and otherwise save it with rest_api_write POST /wp/v2/media/PHOTO_ID with alt_text only. Tell me the gallery appears when I publish the page.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Make a Photo Gallery Page from Your Media Library with Modula and AI” recipe from the WPVibe cookbook on my connected site.
The photos from the job, the event or the new collection are already in your media library. Turning them into a gallery page still means building the gallery, picking each photo, choosing a layout, making a page and placing the gallery on it, so they sit unused.
Tell the AI what the photos show. It finds them in your media library, shows you the matches with their alt text, and builds a Modula gallery from the ones you pick, in your order, with the layout you asked for. It puts the gallery on a new draft page and reads both back. Nothing is public until you publish the page.
The AI publishes the gallery itself: a Modula gallery has no page of its own, and a draft gallery on a published page shows visitors the words This gallery is not published. Layouts such as Slider, Showcase or Bento and most lightbox settings need Modula Pro; the AI tells you which ones it left out. The recipe makes a block editor page; on a page builder page, add the gallery with the builder’s own element. To change a gallery you already have, use this recipe.
Outcome
A published Modula gallery of the photos you picked, in your order and layout, on a new draft page that shows it once you publish the page.