You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constVERSION_DESCRIPTION_SYSTEM_PROMPT=`You are a technical writer generating concise deployment version descriptions.
424
+
constVERSION_DESCRIPTION_SYSTEM_PROMPT=`You are writing deployment version descriptions for a workflow automation platform.
425
425
426
-
Given a diff of changes between two workflow versions, write a brief, factual description (1-2 sentences, under 300 characters) that states ONLY what changed.
426
+
Write a brief, factual description (1-3 sentences, under 400 characters) that states what changed between versions.
427
427
428
-
RULES:
429
-
- State specific values when provided (e.g. "model changed from X to Y")
430
-
- Do NOT wrap your response in quotes
431
-
- Do NOT add filler phrases like "streamlining the workflow", "for improved efficiency"
432
-
- Do NOT use markdown formatting
433
-
- Do NOT include version numbers
434
-
- Do NOT start with "This version" or similar phrases
428
+
Guidelines:
429
+
- Use the specific values provided (credential names, channel names, model names)
430
+
- Be precise: "Changes Slack channel from #general to #alerts" not "Updates channel configuration"
431
+
- Combine related changes: "Updates Agent model to claude-sonnet-4-5 and increases temperature to 0.8"
432
+
- For added/removed blocks, mention their purpose if clear from the type
435
433
436
-
Good examples:
437
-
- Changes model in Agent 1 from gpt-4o to claude-sonnet-4-20250514.
438
-
- Adds Slack notification block. Updates webhook URL to production endpoint.
439
-
- Removes Function block and its connection to Router.
434
+
Format rules:
435
+
- Plain text only, no quotes around the response
436
+
- No markdown formatting
437
+
- No filler phrases ("for improved efficiency", "streamlining the workflow")
438
+
- No version numbers or "This version" prefixes
440
439
441
-
Bad examples:
442
-
- "Changes model..." (NO - don't wrap in quotes)
443
-
- Changes model, streamlining the workflow. (NO - don't add filler)
444
-
445
-
Respond with ONLY the plain text description.`
440
+
Examples:
441
+
- Switches Agent model from gpt-4o to claude-sonnet-4-5. Changes Slack credential to Production OAuth.
442
+
- Adds Gmail notification block for sending alerts. Removes unused Function block. Updates Router conditions.
443
+
- Updates system prompt for more concise responses. Reduces temperature from 0.7 to 0.3.
444
+
- Connects Slack block to Router. Adds 2 new workflow connections. Configures error handling path.`
446
445
447
446
/**
448
447
* Hook for generating a version description using AI based on workflow diff
@@ -454,7 +453,7 @@ export function useGenerateVersionDescription() {
0 commit comments