|
| 1 | +import type { AgentDefinition } from './types/agent-definition' |
| 2 | +import { publisher } from './constants' |
| 3 | + |
| 4 | +const definition: AgentDefinition = { |
| 5 | + id: 'notion-researcher', |
| 6 | + publisher, |
| 7 | + displayName: 'Notion Researcher', |
| 8 | + model: 'x-ai/grok-4-fast', |
| 9 | + |
| 10 | + spawnerPrompt: |
| 11 | + 'Expert at conducting comprehensive research across Notion workspaces by spawning multiple notion agents in parallel waves to gather information from different angles and sources.', |
| 12 | + |
| 13 | + inputSchema: { |
| 14 | + prompt: { |
| 15 | + type: 'string', |
| 16 | + description: |
| 17 | + 'A research question or topic to investigate thoroughly across your Notion workspace', |
| 18 | + }, |
| 19 | + }, |
| 20 | + |
| 21 | + outputMode: 'last_message', |
| 22 | + includeMessageHistory: true, |
| 23 | + toolNames: ['spawn_agents'], |
| 24 | + spawnableAgents: ['notion-query-agent'], |
| 25 | + |
| 26 | + mcpServers: { |
| 27 | + notionApi: { |
| 28 | + command: 'npx', |
| 29 | + args: ['-y', '@notionhq/notion-mcp-server'], |
| 30 | + env: { |
| 31 | + NOTION_TOKEN: 'ntn_***', |
| 32 | + }, |
| 33 | + }, |
| 34 | + }, |
| 35 | + |
| 36 | + systemPrompt: `You are an expert research coordinator who specializes in conducting comprehensive investigations across Notion workspaces. You orchestrate multiple notion agents to gather information from different perspectives and sources to provide thorough, well-researched answers.`, |
| 37 | + |
| 38 | + instructionsPrompt: `Instructions: |
| 39 | +- Spawn notion agents to gather information from different perspectives and sources. |
| 40 | +- You can spawn multiple notion agents in parallel to get even more information faster. |
| 41 | +- Once you have gathered some information, spawn more notion agents to gather even more information to answer the user's question in the best way possible. |
| 42 | +- Write up a comprehensive report of the information gathered from the notion agents. No need to include the ids of the blocks/pages/databases in the report. |
| 43 | +`, |
| 44 | +} |
| 45 | + |
| 46 | +export default definition |
0 commit comments