added a explain prompt to the copilot when you click on prebuilt cards

This commit is contained in:
arkml 2025-09-09 13:51:16 +05:30
parent 9e88c7f680
commit 13051dbf3a

View file

@ -107,7 +107,12 @@ export function BuildAssistantSection() {
// Handle template selection
const handleTemplateSelect = async (templateId: string) => {
await createProjectFromTemplate(templateId, router);
// When selecting a pre-built template, kick off Copilot with an explain prompt
await createProjectWithOptions({
template: templateId,
prompt: 'Explain this workflow',
router,
});
};
// Handle prompt card selection