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
workflowContext: 'USER_SPECIFIC_WORKFLOW',// Clear marker for the LLM
160
+
note: 'This data represents only the blocks and configurations that the user has actually built in their current workflow, not all available Sim Studio capabilities.',
You have access to the Sim Studio documentation through a search tool. Use it when users ask about Sim Studio features, tools, or functionality.
55
+
IMPORTANT DISTINCTION - Two types of information:
56
+
1. **USER'S SPECIFIC WORKFLOW**: Use "Get User's Specific Workflow" tool when users ask about "my workflow", "this workflow", "what I have built", or "my current blocks"
57
+
2. **GENERAL SIM STUDIO CAPABILITIES**: Use documentation search for general questions about what's possible, how features work, or "what blocks are available"
58
+
59
+
WHEN TO USE WORKFLOW TOOL:
60
+
- "What does my workflow do?"
61
+
- "What blocks do I have?"
62
+
- "How is my workflow configured?"
63
+
- "Show me my current setup"
64
+
- "What's in this workflow?"
65
+
- "How do I add [X] to my workflow?" - ALWAYS get their workflow first to give specific advice
66
+
- "How can I improve my workflow?"
67
+
- "What's missing from my workflow?"
68
+
- "How do I connect [X] in my workflow?"
56
69
57
70
WHEN TO SEARCH DOCUMENTATION:
58
-
- User asks about specific Sim Studio features or tools
59
-
- User needs help with workflows or blocks
60
-
- User has technical questions about the platform
61
-
- User asks "How do I..." questions about Sim Studio
71
+
- "What blocks are available in Sim Studio?"
72
+
- "How do I use the Gmail block?"
73
+
- "What features does Sim Studio have?"
74
+
- "How do I create a workflow?"
62
75
63
76
WHEN NOT TO SEARCH:
64
77
- Simple greetings or casual conversation
@@ -72,7 +85,19 @@ When you reference information from documentation sources, use this format:
72
85
- Place links naturally in context, not clustered at the end
73
86
- Only link when it adds value - don't over-link basic concepts
74
87
75
-
IMPORTANT: Always provide complete, helpful responses. Include relevant links to help users find more detailed information.`,
88
+
WORKFLOW-SPECIFIC GUIDANCE:
89
+
When users ask "How do I..." questions about their workflow:
90
+
1. **ALWAYS get their workflow first** using the workflow tool
91
+
2. **Analyze their current setup** - what blocks they have, how they're connected
92
+
3. **Give specific, actionable steps** based on their actual configuration
93
+
4. **Reference their actual block names** and current values
94
+
5. **Provide concrete next steps** they can take immediately
95
+
96
+
Example approach:
97
+
- User: "How do I add error handling to my workflow?"
98
+
- You: [Get their workflow] → "I can see your workflow has a Starter block connected to an Agent block, then an API block. Here's how to add error handling specifically for your setup: 1) Add a Condition block after your API block to check if the response was successful, 2) Connect the 'false' path to a new Agent block that handles the error..."
99
+
100
+
IMPORTANT: Always be clear about whether you're talking about the user's specific workflow or general Sim Studio capabilities. When showing workflow data, explicitly state "In your current workflow..." or "Your workflow contains..." Be actionable and specific - don't give generic advice when you can see their actual setup.`,
Copy file name to clipboardExpand all lines: apps/sim/lib/copilot/service.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -432,9 +432,9 @@ export async function generateChatResponse(
432
432
},
433
433
{
434
434
id: 'get_user_workflow',
435
-
name: 'Get User Workflow',
435
+
name: 'Get User\'s Specific Workflow',
436
436
description:
437
-
'Get the current user workflow as YAML format. This shows all blocks, their configurations, inputs, and connections in the workflow.',
437
+
'Get the user\'s current workflow - this shows ONLY the blocks they have actually built and configured in their specific workflow, not general Sim Studio capabilities. Use this when the user asks about "my workflow", "this workflow", wants to know what blocks they currently have, OR when they ask "How do I..." questions about their workflow so you can give specific, actionable advice based on their actual setup.',
'Get the current userworkflow as YAML format. This shows all blocks, their configurations, inputs, and connections in the workflow.',
7
+
'Get the current user\'s specific workflow (not general Sim Studio documentation). Returns YAML format showing only the blocks that the user has actually built in their workflow, with their specific configurations, inputs, and connections.',
0 commit comments