File tree Expand file tree Collapse file tree
apps/sim/lib/workflows/operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 type WorkflowStateContractInput ,
1212 workflowVariablesContract ,
1313} from '@/lib/api/contracts/workflows'
14+ import { getMeaningfulWorkflowDescription } from '@/lib/mcp/workflow-tool-schema'
1415import { migrateSubblockIds } from '@/lib/workflows/migrations/subblock-migrations'
1516import {
1617 type ExportWorkflowState ,
@@ -677,7 +678,11 @@ export async function persistImportedWorkflow({
677678
678679 const createdWorkflow = await createWorkflow ( {
679680 name : workflowName ,
680- description : descriptionOverride || workflowData . metadata ?. description || '' ,
681+ description :
682+ getMeaningfulWorkflowDescription (
683+ descriptionOverride || workflowData . metadata ?. description ,
684+ workflowName
685+ ) ?? '' ,
681686 workspaceId,
682687 folderId,
683688 sortOrder,
You can’t perform that action at this time.
0 commit comments