add endpoint/logic for creating a taskv2-workflow from a prompt (#3352)

This commit is contained in:
Jonathan Dobson
2025-09-03 16:55:15 -04:00
committed by GitHub
parent c4934153b6
commit 8b163ba371
3 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Given the user goal, come up with a title for it, and a block label.
MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing commas, no comments (//), no unnecessary quotes, etc.
Reply in JSON format with the following keys:
{
"title": str, // A descriptive and informative title for the goal. Use no more than 5 words
"block_label": str, // A label for the block. Use 1 word only. Based off of the "title".
}
User goal:
```
{{ user_goal }}
```