MCPcopy Index your code
hub / github.com/simstudioai/sim / isDefaultWorkflowDescription

Function isDefaultWorkflowDescription

apps/sim/providers/utils.ts:55–66  ·  view source on GitHub ↗

* Checks if a workflow description is a default/placeholder description

(
  description: string | null | undefined,
  name?: string
)

Source from the content-addressed store, hash-verified

53 * Checks if a workflow description is a default/placeholder description
54 */
55function isDefaultWorkflowDescription(
56 description: string | null | undefined,
57 name?: string
58): boolean {
59 if (!description) return true
60 const normalizedDesc = description.toLowerCase().trim()
61 return (
62 description === name ||
63 normalizedDesc === 'new workflow' ||
64 normalizedDesc === 'your first workflow - start building here!'
65 )
66}
67
68/**
69 * Fetches workflow metadata (name and description) from the API

Callers 1

transformBlockToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected