| 786 | } |
| 787 | |
| 788 | function detectSectionIdFromPrompt(prompt) { |
| 789 | const normalized = prompt.toLowerCase(); |
| 790 | if (normalized.includes("design system") || normalized.includes("design-system")) return "design-system"; |
| 791 | if (normalized.includes("hero")) return "hero"; |
| 792 | if (normalized.includes("navigation") || normalized.includes(" nav ")) return "nav"; |
| 793 | if (normalized.includes("about")) return "about"; |
| 794 | if (normalized.includes("talk")) return "talks"; |
| 795 | if (normalized.includes("video")) return "videos"; |
| 796 | if (normalized.includes("contact")) return "contact"; |
| 797 | return null; |
| 798 | } |
| 799 | |
| 800 | const INTERACTIVE_FILL_CONTEXT = [ |
| 801 | "When users ask to fill Site Studio section content interactively:", |