Add Entries with Their Secure Custom Fields with AI
Turn a pasted list into draft entries with every field checked, filled in and read back.
Prerequisites
A site connected to WPVibe running Secure Custom Fields 6.9.10 or newer (free, tested on 6.9.10) on WordPress 7.1 or newer (tested on 7.1.5), with an administrator account and Abilities API left on under SCF, Settings. A post type created in SCF, with a field group that has Show in REST API and Enable Abilities on, and a recent backup.
My WordPress site uses Secure Custom Fields (SCF). Add these [entries, for example villas] to my [post type] as drafts:
[paste a list or table, one entry per line, with its field values and terms]
If a reply from a read-only ability ends with a note starting --- TRUNCATED, run that ability again with max_length 100000. If it is still cut, stop and tell me. Never conclude that a group or field is missing from a cut reply. If a create or change is cut, do not run it again: read the result back.
1. Run discover_abilities with category acf-field-management and confirm acf/field-groups is there. If it is not, stop and check GET /wp/v2/plugins?_fields=plugin,name,status. If Advanced Custom Fields or ACF PRO is active, tell me this recipe is written for Secure Custom Fields and do not suggest installing SCF, because activating it deactivates them. If you cannot tell, do not suggest installing SCF until I confirm neither is active. Otherwise tell me to install or update the free Secure Custom Fields plugin (6.9.10 or newer, on WordPress 7.1 or newer) and check that Abilities API, Post Types & Taxonomies UI (for post types and taxonomies) and Options Pages UI (for options pages) are on under SCF, Settings. If it is there, run discover_abilities with category wordpress-content-discovery and find the acf/create- ability for my post type. If there is none, run scf/list-post-types. If my post type is not listed, stop and tell me this recipe needs a post type created in SCF. If it is listed, stop and tell me to turn on Enable Abilities and Show in REST API for it. If scf/list-post-types returns an error, stop, tell me which check could not run, and create nothing. Call rest_api for GET /wp/v2/types and, if entries have terms, GET /wp/v2/taxonomies, with fields set to all, and read rest_base to get POST_TYPE_REST_BASE and TAXONOMY_REST_BASE. If the rest_namespace of the post type or of a taxonomy I gave terms for is not wp/v2, stop and tell me this recipe needs the default namespace. If another post type's slug differs from mine only by a hyphen or underscore, or another taxonomy's slug differs from one I gave terms for in the same way, stop and tell me the two share one set of abilities, so entries or terms could land in the wrong one. If a taxonomy I gave terms for has the same rest_base as any post type, stop and tell me the post type owns that route, so its terms cannot be set here.
2. Run get_ability_info on the create ability and list its fields. Run acf/field-groups for each field's type, choices and whether it is required. If a column other than the title or a term has no field in the ability's inputs, stop and tell me to switch on Show in REST API and Enable Abilities in that field group's settings, because SCF can drop the value and still report success.
3. Tell me every value that does not fit: text in a number field, a value that is not one of a select or checkbox field's choices, a date or time not in the format the field's description gives (Ymd for a date picker), or a required field with no value. SCF can save an off-list choice, a badly formatted date or time, or a required field sent blank, so never send one until I have corrected it. Send a checkbox value as a list. Then check each title against existing entries (the post type's acf/list- ability with search and per_page 100 for published ones, GET /wp/v2/POST_TYPE_REST_BASE?status=draft,pending,future,private&per_page=100&search=ENTRY_TITLE&_fields=id,title,status for the rest) and list any that already exist; skip those unless I say otherwise. If a search returns 100 results with no exact match, tell me that title could not be checked and leave that entry out.
4. Show me a table of the first 10 entries exactly as you will save them, and wait for my yes.
5. Create only those 10 with the acf/create- ability, status draft. Never publish.
6. If entries have terms, find each term's ID with that taxonomy's acf/list- ability using search and per_page 100. If it has none, use GET /wp/v2/TAXONOMY_REST_BASE?search=TERM_NAME&per_page=100&_fields=id,name,parent. Use only an exact name match. If two terms match exactly, show me their parents and ask which. If a search returns 100 results with no exact match, tell me that term could not be checked and leave it off. Create a missing term only after I agree, with its acf/create- ability or, if it has none, with rest_api_write (or rest_api with method POST): POST /wp/v2/TAXONOMY_REST_BASE. Then set the terms with rest_api_write (or rest_api with method POST): POST /wp/v2/POST_TYPE_REST_BASE/ENTRY_ID with the body {"TAXONOMY_REST_BASE": TERM_IDS}, where TERM_IDS is a list of IDs, because the create ability does not list terms among its inputs.
7. Read every entry back with the acf/view- ability and confirm its fields and terms saved. Give me the list with an edit link for each (/wp-admin/post.php?post=ENTRY_ID&action=edit), and ask before the next 10.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Add Entries with Their Secure Custom Fields with AI” recipe from the WPVibe cookbook on my connected site.
You have a spreadsheet of villas, staff or events, and every row has to become an entry with its fields filled in. By hand that is one screen per row, and a mistyped value or a choice that does not exist is easy to miss.
The AI matches your columns to the fields, tells you every value that does not fit, and skips entries that already exist. SCF’s abilities can save an off-list choice, a badly formatted date or a required field sent blank, so the AI checks those itself before saving. You see the first 10 as a table, and after your yes they go in as drafts and are read back.
Nothing is published, and it works 10 entries at a time so you can spot-check each batch. If a field is missing from the AI’s list, turn on Show in REST API and Enable Abilities in its field group first, or the value can be dropped without an error.
Outcome
Your entries saved as drafts with their fields and terms confirmed, and an edit link for each.