Skip to main content
Cookbook Content Download Manager

Publish a New Download with Download Manager and AI

A new Download Manager package with its file, category and access, checked as a draft and published on your yes.

Difficulty Beginner
Time ~5 min

Prerequisites

A site connected to WPVibe running Download Manager 3.3.80 or newer (tested on 3.3.80, free) on WordPress 6.9 or newer, with an administrator account, and the Packages, Files and Categories groups turned on in Downloads, Settings, AI Abilities.

The prompt
My WordPress site uses Download Manager. Publish [what the file is, for example our 2027 price list] as a new download. The file is [a public link to the file, or its name in my Media Library]. [Optional: put it in the category ..., and let only ... download it.]

1. Run discover_abilities with category wpdm-packages, then wpdm-files, then wpdm-categories. If the abilities this needs are not there, stop and tell me to install or update the free Download Manager plugin (3.3.80 or newer, on WordPress 6.9 or newer) and tick the Packages, Files and Categories groups in Downloads, Settings, AI Abilities, then save.
2. Run wpdm/list-packages with search set to a word from the title. If a package with the same or a very similar title exists, show it and ask whether to put a new version up there instead, and stop until I answer.
3. If I named a category, run wpdm/list-categories and use the one whose name or slug matches. If none matches, ask me before creating it with wpdm/create-category. If the category has access roles and I didn't say who may download, tell me the download will still be open to everyone unless I limit it too, and ask. If I named none, leave the package without one.
4. Run wpdm/create-package with status draft, the title, a description of two or three plain sentences, the version if I gave one, and categories set to the category's ID. Set access only if I said who may download it, as WordPress role slugs (for example subscriber), listing every role that should download: an administrator isn't included unless listed, and roles set on the download's category are added to these. Leave it out for everyone. Don't set a password, quota or expire date unless I asked.
5. Attach the file with wpdm/attach-file: a public link goes in source url (it must be the file itself, not a page about it); a file in my Media Library goes in source media_id (find its ID with rest_api GET /wp/v2/media?search=FILE_TITLE, using its title or name). If the link doesn't end in the file's name, pass source filename too, with the right extension. If the file is only on my computer, tell me to upload it in Media, Add New, and tell you its name, then wait. If wpdm/attach-file refuses the file, tell me its message as it is and stop. If the message says the extension does not match the contents, the link is probably a page about the file rather than the file itself: ask me for a direct link. If it says the type is not allowed, tell me the allowed types are set in Downloads, Settings, Basic, Allowed file types to upload. Don't guess which types the site allows. If the file came from my Media Library and the download is limited to some roles, tell me the Media Library copy stays public at its own address, so I should delete it in Media once the download works. Attach exactly one file: the free plugin serves only the first file of a package.
6. Run wpdm/get-package and check the title, version, the one file, the category and access. Tell me the draft's package ID, that it is a draft, and what you set. Ask me whether to publish it.
7. Only on my yes, run wpdm/update-package with status publish, then give me its permalink (the download page).
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Publish a New Download with Download Manager and AI” recipe from the WPVibe cookbook on my connected site.

You have a price list, a lead magnet or a new edition of your guide to share, and putting it up in Download Manager means a package, a file, a category, who can download it and a check that the button works. It is easy to put off, or to end up with a second copy of a download you already have.

The AI checks you don’t already have the download, creates the package as a draft, attaches your file from a link or your Media Library, files it in the right category and shows you the result. It publishes only when you say yes, and gives you the download page.

Give the AI a direct link to the file or its name in your Media Library: files on your computer go into Media, Add New first. The free plugin serves only the first file of a package, so put one file in each. The site accepts only the file types allowed in Download Manager’s settings (installers such as .exe are refused by default), and files fetched from a link up to 200 MB. New downloads are open to everyone unless you say who may download them.

Outcome

A published download with one file, its category and access set, and its download page link.