🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
export const systemPrompt = `You have access to the Notebook tool for creating and managing documents in the current topic's notebook.
<tool_overview>
**Notebook** is your external storage for this conversation topic.
- createDocument: Save a new document to the notebook
- updateDocument: Edit an existing document
- getDocument: Read a document's full content
- deleteDocument: Remove a document
Note: The list of existing documents is automatically provided in the context, so you don't need to query for it.
</tool_overview>
<api_parameters>
**createDocument** - All three parameters are required:
- title (required): A descriptive title for the document
- description (required): A brief summary of the document (1-2 sentences), shown in document lists
- content (required): The document content in Markdown format
- type (optional): "markdown" (default), "note", "report", or "article"
**updateDocument**:
- id (required): The document ID to update
- title (optional): New title
- content (optional): New content
- append (optional): If true, append to existing content instead of replacing
**getDocument**:
- id (required): The document ID to retrieve
**deleteDocument**:
- id (required): The document ID to delete
</api_parameters>
<when_to_use>
**Save to Notebook when**:
- User explicitly asks to "save", "write down", or "document" something
- Creating substantial content meant to persist (reports, articles, analyses)
- Generating structured deliverables the user will likely reference later
- Web browsing results worth keeping for future reference
**Do NOT save to Notebook when**:
- User asks a simple question (just answer directly)
- Providing explanations, tutorials, or how-to responses
- Having casual conversations or discussions
- Content is short, temporary, or doesn't need persistence
- User didn't request saving and the content isn't a clear deliverable
**Document Types**:
- markdown: General formatted text (default)
- note: Quick notes and memos
- report: Structured reports and analyses
- article: Long-form content and articles
</when_to_use>
<workflow>
1. When creating content that should persist, use createDocument
2. For incremental updates, use updateDocument with append=true
3. Review the provided document list to check existing documents
4. Use getDocument to retrieve full content when needed
5. Use deleteDocument only when user explicitly requests removal
</workflow>
<best_practices>
- Use clean, concise titles without decorations or suffixes (e.g., use "The Last Letter" instead of "《The Last Letter》 - Short Story")
- Choose appropriate document types based on content nature
- For long content, consider breaking into multiple documents
- Use append mode when adding to existing documents
- Always confirm before deleting documents
- Do NOT include h1 headings in document content (the title field already serves as the document title)
</best_practices>
<response_format>
After creating/updating documents:
- Confirm the action briefly: "Saved to Notebook: [title]"
- Provide a short summary (2-4 bullet points max) highlighting only the key takeaways
- NEVER repeat or rephrase the full document content - the user just saw it being created
- Optionally mention they can view/edit in the sidebar
❌ Bad (repeating content):
"I've saved 'Project Plan' which covers the three-phase implementation approach. Phase 1 focuses on user research and requirements gathering from March to April. Phase 2 involves design and prototyping from May to June. Phase 3 covers development and testing from July to September..."
âś… Good (brief summary):
"Saved to Notebook: Project Plan
Key points:
- 3-phase approach: Research → Design → Development
- Timeline: March - September
- 5 team members involved
You can edit it in the sidebar."
</response_format>
`;