start_workflow
Initiate automated processing of Apple Notes to extract tasks, prioritize them, and sync across productivity platforms like Google Tasks, Todoist, and Notion.
Instructions
Start the AiDD workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index-aidd-auth.ts:631-652 (handler)Main handler function that validates input with schema, authenticates backend client, and returns workflow started messageprivate async handleStartWorkflow(args: any) { const validated = StartWorkflowToolSchema.parse(args); // Pass user credentials to backend client if (this.credentials.accessToken) { // Backend client will use these credentials await this.backendClient.authenticate(); } return { content: [ { type: 'text', text: `🚀 AiDD Workflow Started ✅ Authenticated as: ${this.credentials.email} (${this.credentials.subscription}) 👤 User ID: ${this.credentials.userId} Ready to import notes. Use: import_notes()`, }, ], }; }
- src/index-aidd-auth.ts:42-47 (schema)Zod schema defining input parameters for the start_workflow tool: optional targetService and autoSyncconst StartWorkflowToolSchema = z.object({ targetService: z.enum(['google-tasks', 'microsoft-todo', 'trello', 'todoist', 'notion', 'ticktick', 'apple-reminders']) .optional() .describe('Target service for task sync'), autoSync: z.boolean().optional().default(false).describe('Automatically sync at the end'), });
- src/index-aidd-auth.ts:478-491 (registration)Tool registration in getAvailableTools(): defines name, description, and inputSchema for listTools responsename: 'start_workflow', description: 'Start the AiDD workflow for processing notes', inputSchema: { type: 'object', properties: { targetService: { type: 'string', enum: ['google-tasks', 'microsoft-todo', 'trello', 'todoist', 'notion', 'ticktick', 'apple-reminders'], description: 'Target service for task sync' }, autoSync: { type: 'boolean', description: 'Automatically sync at the end' }, }, }, },
- src/index-oauth.ts:422-433 (handler)Handler in OAuth variant: returns workflow start confirmation messageprivate async handleStartWorkflow(args: any) { return { content: [ { type: 'text', text: `🚀 Starting AiDD workflow... Authenticated as: ${this.userInfo.email} Ready to process notes with ${this.userInfo.subscription} features.`, }, ], }; }
- src/index-oauth.ts:213-225 (registration)Tool registration in OAuth variant getAvailableTools()name: 'start_workflow', description: 'Start the AiDD workflow', inputSchema: { type: 'object', properties: { targetService: { type: 'string', enum: ['google-tasks', 'microsoft-todo', 'trello', 'todoist'], description: 'Target service for sync', }, }, }, },