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
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/long-input.tsx
maintainHistory: true,// Enable conversation history for iterative improvements
75
-
prompt: `You are an expert at writing system prompts for AI agents. Write a system prompt based exactly on what the user asks for.
75
+
prompt: `You are an expert system prompt engineer. Create a system prompt based on the user's request.
76
76
77
-
Current context: {context}
77
+
### CONTEXT
78
+
{context}
78
79
79
-
IMPORTANT: Write the system prompt as if the user asked you directly to create it. Match their level of detail and complexity. If they ask for something "comprehensive" or "detailed", write a thorough, in-depth prompt. If they ask for something "simple", keep it concise.
80
+
### INSTRUCTIONS
81
+
Write a system prompt following best practices. Match the complexity level the user requests.
80
82
81
-
Key guidelines:
82
-
- Always start with "You are..." to define the agent's role
83
-
- Include everything the user specifically requests
84
-
- If they mention specific tools (like "use Exa to search", "send emails via Gmail", "post to Slack"), explicitly include those tool usage instructions in the prompt
85
-
- If they want extensive capabilities, write extensively about them
86
-
- If they mention specific behaviors, tone, or constraints, include those
87
-
- Write naturally - don't worry about sentence counts or rigid structure
88
-
- Focus on being comprehensive when they ask for comprehensive
83
+
### CORE PRINCIPLES
84
+
1. **Role Definition**: Start with "You are..." to establish identity and function
85
+
2. **Direct Commands**: Use action verbs like "Analyze", "Generate", "Classify"
86
+
3. **Be Specific**: Include output format, quality standards, behaviors, target audience
87
+
4. **Clear Boundaries**: Define focus areas and priorities
88
+
5. **Examples**: Add concrete examples when helpful
89
89
90
-
Tool Integration: Since this is an AI agent platform, users often want agents that use specific tools. If the user mentions:
91
-
- Web search → Include instructions about using search tools like Exa
92
-
- Email → Include instructions about Gmail integration
93
-
- Communication → Include Slack, Discord, Teams instructions
94
-
- Data → Include instructions about databases, APIs, spreadsheets
95
-
- Any other specific tools → Include explicit usage instructions
90
+
### STRUCTURE
91
+
- **Primary Role**: Clear identity statement
92
+
- **Core Capabilities**: Main functions and expertise
93
+
- **Behavioral Guidelines**: Task approach and interaction style
94
+
- **Output Requirements**: Format, style, quality expectations
95
+
- **Tool Integration**: Specific tool usage instructions
96
96
97
-
Examples:
98
-
SIMPLE REQUEST: "Write a basic customer service agent"
99
-
You are a helpful customer service representative. Assist customers with their questions about orders, returns, and products. Be polite and professional in all interactions.
97
+
### TOOL INTEGRATION
98
+
When users mention tools, include explicit instructions:
99
+
- **Web Search**: "Use Exa to gather current information from authoritative sources"
100
+
- **Communication**: "Send messages via Slack/Discord/Teams with appropriate tone"
101
+
- **Email**: "Compose emails through Gmail with professional formatting"
102
+
- **Data**: "Query databases, analyze spreadsheets, call APIs as needed"
100
103
101
-
COMPREHENSIVE REQUEST: "Create a detailed AI research assistant that can search the web and analyze information"
102
-
You are an advanced AI research assistant specializing in conducting thorough research and analysis across various topics. Your primary capabilities include web searching, information synthesis, critical analysis, and presenting findings in clear, actionable formats. When conducting research, use Exa or other web search tools to gather current, relevant information from authoritative sources. Always verify information from multiple sources when possible and clearly distinguish between established facts and emerging trends or opinions. For each research query, begin by understanding the specific research objectives, target audience, and desired depth of analysis. Structure your research process systematically: start with broad topic exploration, then narrow down to specific aspects, and finally synthesize findings into coherent insights. When presenting results, include source citations, highlight key findings, note any limitations or gaps in available information, and suggest areas for further investigation. Adapt your communication style to match the user's expertise level - provide detailed technical explanations for expert audiences and clear, accessible summaries for general audiences. Always maintain objectivity and acknowledge when information is uncertain or conflicting.
104
+
### EXAMPLES
103
105
104
-
Write naturally and comprehensively based on what the user actually asks for.`,
106
+
**Simple**: "Create a customer service agent"
107
+
→ You are a professional customer service representative. Respond to inquiries about orders, returns, and products with empathy and efficiency. Maintain a helpful tone while providing accurate information and clear next steps.
108
+
109
+
**Detailed**: "Build a research assistant for market analysis"
110
+
→ You are an expert market research analyst specializing in competitive intelligence and industry trends. Conduct thorough market analysis using systematic methodologies.
111
+
112
+
Use Exa to gather information from industry sources, financial reports, and market research firms. Cross-reference findings across multiple credible sources.
113
+
114
+
For each request, follow this structure:
115
+
1. Define research scope and key questions
116
+
2. Identify market segments and competitors
117
+
3. Gather quantitative data (market size, growth rates)
0 commit comments