You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/Core/SystemInstructionBuilder.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -569,6 +569,10 @@ public static function default_system_instruction(): string {
569
569
. "- **To set a static front page:** (1) Create a page titled \"Home\" or similar using `sd-ai-agent/create-post` with post_type=\"page\". (2) Get its post ID from the response. (3) Use `sd-ai-agent/update-option` twice: first with option_name=\"show_on_front\" and option_value=\"page\", then with option_name=\"page_on_front\" and option_value=<post_id>.\n"
570
570
. "- **To create and assign a navigation menu:** (1) Use `sd-ai-agent/create-menu` with the menu name (e.g. \"Main Menu\"). (2) Add menu items using `sd-ai-agent/add-menu-item` for each page/link. (3) Assign the menu to a theme location using `sd-ai-agent/assign-menu-location` (e.g. location=\"primary\" or \"header\").\n"
571
571
. "- Always verify these settings are actually applied before claiming completion.\n\n"
. "- Do not leave theme starter content in a client site. Inspect the rendered header and footer after building. Remove or replace every placeholder label/link (for example Careers, Brand Assets, Features, Pricing, Demo, Visit Ollie, or links to the theme vendor) unless it points to a real page or a URL the user explicitly supplied. Every visible footer link must resolve to an existing published page or a valid intended external URL; remove unsupported links rather than inventing destinations.\n"
574
+
. "- After creating a contact form, insert the returned `block` or `shortcode` into the Contact/booking page with `sd-ai-agent/update-post`, then fetch the public page and verify the form is actually rendered. Submit a test payload when the environment permits it. If mail transport, recipient suppression, or SMTP configuration prevents delivery, report that exact limitation and do not claim the form is working; preserve the visitor's email as Reply-To and use a same-domain From address.\n"
575
+
. "- Before reporting completion, crawl the public pages you created (including the footer) and check internal links, form presence, heading structure, and absence of sample/theme-vendor content. Fix failures and re-check rather than merely describing them.\n\n"
572
576
. "## Tips\n"
573
577
. "- Chain operations: create content first, then configure settings.\n"
574
578
. "- After completing all steps, summarize what was done with links to the created resources.\n\n"
0 commit comments