From 13051dbf3ace3a37d168d2b81027773410cde62a Mon Sep 17 00:00:00 2001 From: arkml Date: Tue, 9 Sep 2025 13:51:16 +0530 Subject: [PATCH] added a explain prompt to the copilot when you click on prebuilt cards --- .../app/projects/components/build-assistant-section.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/app/projects/components/build-assistant-section.tsx b/apps/rowboat/app/projects/components/build-assistant-section.tsx index 8f37a831..8e846b14 100644 --- a/apps/rowboat/app/projects/components/build-assistant-section.tsx +++ b/apps/rowboat/app/projects/components/build-assistant-section.tsx @@ -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